获取隐私协议接口v2(重定向)
鉴权
- 无需鉴权
请求
- GET
- /api/init/v2/agreement/redirect
根据类型重定向到隐私协议页面
请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| clientId | query | string | 是 | none |
| countryCode | query | string | 否 | none |
| sdkLang | query | string | 否 | none |
| type | query | string | 是 | none |
type 枚举
- terms-of-service: 用户协议
- privacy-policy: 隐私协议
返回
302 重定向到协议 url,例如
// 国内
https://xdsdk-6.xd.cn/api/init/v2/agreement/redirect?clientId=d4bjgwom9zk84wk&type=terms-of-service
https://xdsdk-6.xd.cn/api/init/v2/agreement/redirect?clientId=d4bjgwom9zk84wk&type=privacy-policy
// 海外
https://xdsdk-intnl-6.xd.com/api/init/v2/agreement/redirect?clientId=hn5RcJei2JxCYlS0&type=terms-of-service
https://xdsdk-intnl-6.xd.com/api/init/v2/agreement/redirect?clientId=hn5RcJei2JxCYlS0&type=privacy-policy