查询客户绑定的授权码
-
请求地址:
GET /customers/{name}/sns
,GET /customers/{group_name}/{name}/sns
-
接口概述:
查询(指定客户组下的)指定客户所绑定的授权码。
-
请求参数:
地址参数
参数名 参数类型 参数说明 必需 备注 name string 客户名 是 group_name string 客户组名 否 -
请求体:
无
-
请求示例:
查询指定客户绑定的授权码:
GET /bitanswer/api/customers/{name}/sns HTTP/1.1 Host: back-office-api.bitanswer.cn bitkey: ••••••
查询指定客户组下的指定客户绑定的授权码:
GET /bitanswer/api/customers/{group_name}/{name}/sns HTTP/1.1 Host: back-office-api.bitanswer.cn bitkey: ••••••
-
响应示例:
{ "status": 0, "data": { "total": 1, "items": [ { "sn": "xxxxx", "activeDate": "2023-08-29 17:19:55", "status": 0, "updateTime": "2023-10-31 15:26:54", "regDate": "2023-08-29 17:19:41", "type": "CLOUD", "concurrentNumber": 1, "usersNumber": 2, "transferVolume": 0, "transferNumber": 0, "namedUser": true } ] } }
客户批量绑定授权码
-
请求地址:
POST /customers/{name}/sns
,POST /customers/{group_name}/{name}/sns
-
接口概述:
为(指定客户组下的)指定客户批量绑定授权码。
-
请求参数:
地址参数
参数名 参数类型 参数说明 必需 备注 name string 客户名 是 group_name string 客户组名 否 -
请求体:
参数名 参数类型 参数说明 必需 备注 sn string 授权码 是 请求体以数组形式输入。
-
请求示例:
为指定客户批量绑定授权码:
POST /bitanswer/api/customers/{name}/sns HTTP/1.1 Host: back-office-api.bitanswer.cn bitkey: •••••• [ {"sn":"xxxxx1"}, {"sn":"xxxxx2"} ]
为指定客户组下的指定客户批量绑定授权码:
POST /bitanswer/api/customers/{group_name}/{name}/sns HTTP/1.1 Host: back-office-api.bitanswer.cn bitkey: •••••• [ {"sn":"xxxxx1"}, {"sn":"xxxxx2"} ]
-
响应示例:
{ "status": 0, "data": { "total": 2, "items": [ { "sn": "xxxxx1", "activeDate": "2024-08-14 13:35:59", "status": 0, "startDate": "2005-12-31 01:02:03", "endDate": "2035-12-31 01:02:03", "updateTime": "2024-08-14 13:36:00", "regDate": "2024-08-09 17:16:46", "volumeNumber": 1, "expirationDays": 0, "usageNumber": 65536, "concurrentNumber": 1, "usersNumber": 2, "maxOfflineMinutes": 1000000000, "transferVolume": 0, "transferNumber": 0 }, { "sn": "xxxxx2", "activeDate": "2024-08-13 17:38:51", "status": 0, "startDate": "2005-12-31 01:02:03", "endDate": "2035-12-31 01:02:03", "updateTime": "2024-08-13 17:38:52", "regDate": "2024-08-09 16:56:47", "volumeNumber": 1, "expirationDays": 0, "usageNumber": 65536, "concurrentNumber": 0, "usersNumber": 10, "maxOfflineMinutes": 1000000000, "transferVolume": 50, "transferNumber": 50 } ] } }