chong

Created 用户单词同步 (markdown)

  1 +###接口地址
  2 +````
  3 +/event/statistic/synchronize/word
  4 +````
  5 +###请求方式
  6 +````
  7 +POST请求
  8 +````
  9 +###URL参数
  10 +access_token
  11 +last_update_time 默认0
  12 +###POST内容
  13 +````
  14 +[
  15 + {
  16 + "key": "phrase",
  17 + "count": 1,
  18 + "segmentation": {
  19 + "userId": 7,
  20 + "phrase": "Don't speak to unfamiliar persons.",
  21 + "template": 101
  22 + },
  23 + "timestamp": 1399459252,
  24 + "sum": 0
  25 + },
  26 + {
  27 + "key": "word",
  28 + "count": 1,
  29 + "segmentation": {
  30 + "userId": 7,
  31 + "word": "Dont",
  32 + "template": 101
  33 + },
  34 + "timestamp": 1399459252,
  35 + "sum": 0
  36 + },
  37 + {
  38 + "key": "word",
  39 + "count": 1,
  40 + "segmentation": {
  41 + "userId": 7,
  42 + "word": "speak",
  43 + "template": 101
  44 + },
  45 + "timestamp": 1399459252,
  46 + "sum": 0
  47 + }
  48 +]
  49 +````
  50 +
  51 +###返回值
  52 +有返回值
  53 +```json
  54 +{
  55 + updateTime: "请求用户单词统计的最后更新时间",
  56 + wordList:[
  57 + {
  58 + word: "apple",
  59 + template: 101,
  60 + count: 3
  61 + },
  62 + {
  63 + word: "desk",
  64 + template: 101,
  65 + count: 1
  66 + }
  67 + ],
  68 + phraseList: [
  69 + {
  70 + phrase: ”anredapple”,
  71 + template: 101,
  72 + count: 3
  73 + },
  74 + {
  75 + phrase: ”anewdesk”,
  76 + template: 101,
  77 + count: 1
  78 + }
  79 + ]
  80 +}
  81 +```
  82 +无返回值
  83 +```java
  84 +httpcode:404
  85 +```