生产环境HOST:https://digitalman.h5no1.com
测试环境HOST:https://test.digitalman.h5no1.com
对接数字人开放平台,获取到开放平台接口所需token。
接口地址 /open/platform/auth/getRabbitToken
请求方式 POST
consumes ["application/json"]
produces ["application/json"]
接口描述 获取开放平台接口访问Token
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
appKey | 应用实例Key | param | true | string | |
appSecrect | 应用实例秘钥 | param | true | string |
https://test.digitalman.h5no1.com/open/platform/auth/getRabbitToken
{
"appKey":"xxx",
"appSecret":"xxxxxxx"
}
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
code | 状态码 | body | true | string | |
showMsg | 错误描述 | body | true | string | |
errorMsg | 错误描述 对开放者 | body | true | string | |
data | 响应数据 | body | true | object | Token数据 |
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
expireIn | 令牌过期时间,单位:秒 | body | true | long | |
rabbitToken | 开放平台访问token | body | true | string |
状态码 | 说明 | schema |
---|---|---|
0 | OK | |
1000885001 | AppSecret错误 | |
1000885000 | AppKey不存在 |
{
"code": "0",
"showMsg": null,
"errorMsg": null,
"requestId":"16922526314039707",
"data": {
"rabbitToken": "9d51299d-8d07-49a5-bdb5-67bb1fd1c260",
"expireIn": "604800"
}
}