获取平台访问凭证
请求地址
环境
HTTPS请求地址
国内沙盒环境
https://cnopenapi.autox3.com/openapi/api-v1/auth
国内生产环境
https://cnopengateway.autox3.com/openapi/api-v1/auth
其他国家环境
略
请求参数
名称
是否必填
长度
类型
说明
appKey
是
64
String
授权key
appSecret
是
64
String
授权密钥
请求命令(以curl命令为例)示例如下:
curl 'https://openapi.autox3.com/openapi/api-v1/auth' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"appKey": "AK02522A2B2726FB0","appSecret": "84336629F874E793035255E12E88DAE87556274D860432BBB21A93951B9F98E"}'
应答参数
名称
子项
是否必填
长度
类型
说明
示例值
status
是
--
Integer
请参考本页"公共参数-->错误编码"部分
0
errorInfo
是
--
String
错误信息
network error
data
是
--
Object
接口返回值json串,具体见业务响应参数
expiresIn
是
--
Integer
过期时间,单位:秒,目前开放平台默认过期时间为7天
529200
accessToken
是
--
String
开放平台访问凭证
0354980F3F116
示例如下:
{
"data":{
"expiresIn":529200,
"accessToken":"0354980F3F1162CFD25C4BD3DE69E6D686D60722"
},
"errorInfo":null,
"status":0
}
最后更新于
这有帮助吗?