订阅消息

请求URL

  • {{url}}/api/message/sub

请求方式

  • get

Header

字段名
示例值
必选
类型
说明

x-api-key

{{x-api-key}}

string

x-api-secret

{{x-api-secret}}

string

请求参数示例


成功返回示例

{
  "code": 0,
  "data": {
    "count": null,
    "list": [
      {
        "email": 1,
        "msg_type": "package-expire",
        "phone": 1,
        "uid": 2
      },
      {
        "email": 1,
        "msg_type": "traffic-exceed",
        "phone": 1,
        "uid": 2
      },
      {
        "email": 1,
        "msg_type": "cc-switch",
        "phone": 1,
        "uid": 2
      },
      {
        "email": 1,
        "msg_type": "bandwidth-exceed",
        "phone": 1,
        "uid": 2
      },
      {
        "email": 1,
        "msg_type": "connection-exceed",
        "phone": 1,
        "uid": 2
      },
      {
        "email": 1,
        "msg_type": "cert-expire",
        "phone": 1,
        "uid": 2
      }
    ]
  },
  "msg": "获取订阅成功"
}

成功返回示例的参数说明

参数名
类型
说明

code

string

data

object

count

object

list

array

list.email

string

list.msg_type

string

package-expire(套餐到期),traffic-exceed(流量超限)、announcement(公告)

list.phone

string

list.uid

string

msg

string

Last updated