xiezefan
9/16/2014 - 4:04 AM

POST /service/{serviceId}/{clientServiceId}/push 对特定ClientService进行推送

POST /service/{serviceId}/{clientServiceId}/push 对特定ClientService进行推送

// push ding to all
{
   "audience" : "all",
   "type": "DING"
}
// push text by push token
{
   "audience" : {
     "push_token":["4df99d44-23d0-454a-b7c6-d734da0aa8e7", "4df99d44-23d0-454a-b7c6-d734da0aa8e7"]
   },
   "type": "TEXT",
   "text":{
     "ticker":"深圳明天阵雨",
     "content":"每天深圳有大到暴雨转狂暴雨,风太大,带伞也没有,所以无须带雨伞。"
   }
}
// push article to all
{
   "audience" : "all",
   "type": "ARTICLE",
   "article":{
     "title":"深圳明天下雨",
     "ticker":"深圳明天暴雨",
     "summary":"每天深圳有大到暴雨转狂暴雨,风太大,带伞也没有,所以无须带雨伞。",
     "cover_pic":"http://a.36krcnd.com/photo/2014/4c096554b77e6d8a2b9f7c754322edc3.jpg",
     "link":"http://www.36kr.com/p/215315.html"
   }
}