简要描述:
请求URL:
https://api.chuangcache.com/config/setTokenInfo请求方式:
请求参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| access_token | 是 | string | 密钥 |
| domain_id | 是 | string | 加速域名ID |
| token_control | 是 | string | 状态 [ 0(关闭)、1(开启)] |
| encrypt_key | 是 | string | 密钥,当token_control为0时,该参数不是必须的 |
请求示例
curl -i -X POST https://api.chuangcache.com/config/setTokenInfo -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" -d '{"access_token": "ACCESS_TOKEN", "domain_id": 2, "token_control": 1, "encrypt_key": "token2017"}'
响应示例
{
"status": 1,
"info": "操作成功",
"data": true
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 接口返回码 |
| info | string | 接口返回信息 |
| data | bool | 接口返回数据 true成功 false 失败 |