查询订阅列表
接口功能
查询企业用户消息订阅列表
请求地址
https://open.ys7.com/api/component/saas/subscription/list
请求方式
POST
参数列表
参数名 | 类型 | 描述 | 是否必填 |
---|---|---|---|
accessToken | String | 开放平台授权获取的访问令牌 | Y |
请求报文
POST https://open.ys7.com/api/component/saas/subscription/list HTTP/1.1 Host: open.ys7.com content-type: application/x-www-form-urlencoded accessToken=at.cz71shznbdnxcyr9difaessc60n4sopj-2o91xv6z4l-07q8ulf-fotospidq
返回数据
{ "code": "saas-200", "msg": "操作成功!", "data": [ { "id": 123, "saasUserId": 12345, "msgType": 10001, "appKey": "", "publicKey": "xxxxx", "postUrl": "http://ip:port", "isEnable": 1, "remarks": "xxxxx" } ] }
参数说明
参数名 | 类型 | 描述 | 是否必须 |
---|---|---|---|
code | int | 状态码-200表示成功 | Y |
msg | String | 具体错误描述信息 | Y |
id | Long | 订阅信息唯一识别号 | Y |
saasUserId | Long | 生成的saas用户id | Y |
msgType | Long | 订阅的消息类型 | Y |
appKey | String | 用户的appkey | Y |
publicKey | String | 消息加密的公钥,企业用户需要用该公钥对推送的消息内容(body)进行解密后, 会获得明文的json字符串,即为推送消息的具体内容 |
Y |
postUrl | String | 企业用户提供的消息推送地址,往企业用户推送消息的格式,应为公网可以访问的web地址 | Y |
isEnable | Int | 是否启用,1启用,0不启用 | Y |
remarks | String | 备注信息 | N |