关联账号,将社交账号绑定到主账号
POST
/api/v2/users/identity/link
请求参数
Header 参数
Authorization
string
token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
identifier
string
身份源标识
userId
string
用户 ID
userIdInIdp
string
必需
type
string
类型,自定义
示例
{
"identifier": "string",
"userId": "string",
"userIdInIdp": "string",
"type": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/users/identity/link' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 200,
"message": "绑定成功"
}
修改于 2022-01-18 12:17:30