| 属性 | 数据类型 | 说明 |
|---|---|---|
| err_no | int64 | 错误码 |
| err_tips | string | 错误信息 |
| 详细错误号 | 描述 |
|---|---|
| 0 | 请求成功 |
| -1 | 系统错误 |
| 40015 | appid 错误 |
| 40017 | secret 错误 |
| 40020 | grant_type 不是 client_credential |
| 其它 | 参数为空 |
curl --location --request POST '/api/apps/v2/token' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"appid": "ttabc*****",
"secret": "d428***********",
"grant_type": "client_credential"
}'{
"err_no": 0,
"err_tips": "success",
"data": {
"access_token": "0801121***********",
"expires_in": 7200
}
}