用户单词同步.md 1.43 KB

###接口地址

/event/statistic/synchronize/word 

###请求方式

POST请求

###URL参数 access_token last_update_time 默认0 ###POST内容

[
    {
        "key": "phrase",
        "count": 1,
        "segmentation": {
            "userId": 7,
            "phrase": "Don't speak to unfamiliar persons.",
            "template": 101
        },
        "timestamp": 1399459252,
        "sum": 0
    },
    {
        "key": "word",
        "count": 1,
        "segmentation": {
            "userId": 7,
            "word": "Dont",
            "template": 101
        },
        "timestamp": 1399459252,
        "sum": 0
    },
    {
        "key": "word",
        "count": 1,
        "segmentation": {
            "userId": 7,
            "word": "speak",
            "template": 101
        },
        "timestamp": 1399459252,
        "sum": 0
    }
]

###返回值 有返回值

{
    "updateTime": "请求用户单词统计的最后更新时间",
    "wordList": [
        {
            "word": "apple",
            "template": 101,
            "count": 3
        },
        {
            "word": "desk",
            "template": 101,
            "count": 1
        }
    ],
    "phraseList": [
        {
            "phrase": "anredapple",
            "template": 101,
            "count": 3
        },
        {
            "phrase": "anewdesk",
            "template": 101,
            "count": 1
        }
    ]
}