使用场景:
获取免登录的重定向地址,进行免登陆跳转。
接口地址 /open/platform/digital/third/getRedirectUrl
请求方式 POST
consumes ["application/json"]
produces ["application/json"]
接口描述 hearer必须携带rabbitToken
请求参数
查询条件
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
thirdId | 第三方账户id(保证唯一就行) | param | true | string |
|
thirdUrl | 第三方域名,内嵌ifream形式必传。 | param | false | string |
|
请求示例
https://https://test.digitalman.h5no1.com/open/platform/digital/third/getRedirectUrl
{
"thirdId":"thirdId1",
"thirdUrl":"https://demo.xxx.com"
}
响应参数
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
code | 状态码 | body | true | string |
|
showMsg | 错误描述 | body | true | string |
|
errorMsg | 错误描述 对开放者 | body | true | string |
|
data | 响应数据 | body | true | object | 重定向URL数据 |
重定向URL数据
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
redirectUrl | 组装好的重定向地址,需要第三方重定向到该地址上 | body | true | String |
|
响应状态
状态码 | 说明 | schema |
0 | OK |
|
201 | Created |
|
401 | Unauthorized |
|
403 | Token无效 |
|
404 | Not Found |
|
响应示例
{
"code": "0",
"showMsg": null,
"errorMsg": null,
"requestId":"16922526314039707",
"data": {
"redirectUrl": "https://demo.xxx.com/open/platform/digital/third/login?ticket=xxxxx"
}
}
搜索
复制