[TOC]
简要描述
获取用户token接口
请求URL
https://ggtools.thinkerx.com/open-api/token
请求方式
POST
参数
content_type: application/json
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| app_key | 是 | string | 平台签发key |
| timestamp | 是 | string | 时间戳,精确到秒 |
| account | 是 | string | 用户标识,为以下两种情况中的一种,从柜柜官网获取对接密钥只能使用第一种 1. 登录柜柜使用的电话号码 2. 外部平台对接可使用平台唯一用户标识(只针对平台对接使用) |
返回示例
{
"status": 1,
"msg": "请求成功",
"data": {
"token": "token",
"token_expire": 43200,
"refresh_token": "refresh_token",
"refresh_token_expire": 4320000
}
}返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 请求状态,1:成功,0:失败 |
| msg | string | 状态说明 |
| data | object | 数据 |
| token | string | token值 |
| token_expire | integer | token 有效时长(无固定值,以接口返回数值为准) |
| refresh_token | string | refresh_token |
| refresh_token_expire | integer | refresh_token 有效时长(无固定值,以接口返回数值为准) |
