服务相关接口

来自BitKeep_Wiki
跳转至: 导航搜索

短信接口[编辑]

内网短信接口 http://10.35.57.101:50123/SMS/text 请求方方法:POST 参数:

   countryCode 国家码
   phone       电话号码
   text        内容


 curl -X POST \
 http://10.35.57.101:50123/SMS/text \
 -H 'cache-control: no-cache' \
 -H 'content-type: application/json' \
 -d '   {
     "countryCode":"86",
     "phone": "15811034679",
     "text": "test"
  }'

邮件接口[编辑]

内网短信接口 http://10.35.57.101:50131/mail/send 请求方方法:POST 参数:

   mail        邮箱地址
   title       标题
   content     内容



 curl -X POST \
 http://10.35.57.101:50131/mail/send \
 -H 'cache-control: no-cache' \
 -H 'content-type: application/json' \
 -d '   {
     "mail":"exampe@domain.com",
     "title": "标题",
     "content": "内容"
  }'



push推送接口(只推送不计入消息系统)[编辑]

内网推送接口 http://10.35.54.46:8894/sendMessage 请求方方法:POST 参数:

   uids        用户id
   title       标题
   content     内容
   url         跳转url



curl -X POST \
 http://10.35.54.46:8894/sendMessage \
 -H 'Content-Type: application/json' \
 -H 'Postman-Token: 692f0f86-b3ef-42ba-8a65-4b8a16f8e95d' \
 -H 'cache-control: no-cache' \
 -d '{
     "uids":"10070",
     "title": "标题",
     "content": "内容",
     "url": "12123"
  }'


app内部通知接口[编辑]

内网推送接口 http://10.35.54.46:8891/appMessage 请求方方法:POST 参数:

   uids        用户id
   title       标题
   content     内容



curl -X POST \

 http://10.35.54.46:8891/appMessage \
 -H 'Content-Type: application/json' \
 -H 'Postman-Token: 26bc938b-f687-4ec9-8fd4-c4d8186a6423' \
 -H 'cache-control: no-cache' \
 -d '	{
     "uids":"10070",
     "title": "标题",
     "content": "内容"
  }'