1.1. 获取中继号码列表

请求地址

  • GET /v1/spNumbers

请求参数

参数 类型 是否可空 描述
timestamp Long false 时间戳(例:当前秒数,1533092860)
sign String false 签名:身份认证签名(DigestUtils.sha1Hex(email&secretKey&timestamp))
email String false 邮箱

响应参数

参数 类型 是否可空 描述
code String false 返回码
message String false 返回消息
visible boolean false 是否可见(暂不使用)
data Array true 结果数组
data[].id int false 中继号码id
data[].name String false 号码名称
data[].number String false 中继号码

请求示例

$ curl 'http://localhost:8080/api/v1/spNumbers?&email=1@test.cn&timestamp=1542189114&sign=123' -i -X GET -H 'Content-Type: application/json'

响应示例

``` HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 Content-Length: 522

{ "code": 200, "message": "OK", "visible": false, "exception": null, "data": [ { "id": 25, "name": "测试1", "number": "01012121212" }, { "id": 26, "name": "测试2", "number": "01012121213" } ], "extra": null } ```**

results matching ""

    No results matching ""