获取三方账号的信息
GET
https://open.teambition.com/api/user/thirdAccount/info
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.teambition.com/api/user/thirdAccount/info' \
--header 'Authorization: Bearer <appAccessToken>' \
--header 'X-Tenant-Id: 50c32af35a87e6b2...' \
--header 'X-Tenant-Type: organization' \
--header 'Content-Type: application/json' \
--data-raw '{
"refer": "sit",
"openId": "25"
}'
响应示例响应示例
{
"code": 200,
"errorMessage": "",
"result": {
"created": "2020-03-31T05:30:57.493Z",
"extra": null,
"id": "5e82d5916d8282...",
"lastSyncTime": "0001-01-01T00:00:00.000Z",
"openId": "$:LWCP_v1:$rl5CG...",
"phone": "",
"refer": "xxx",
"refreshAt": "0001-01-01T00:00:00.000Z",
"refreshToken": "",
"showname": "小王",
"token": "52c1d5b16d73326491...",
"updated": "2020-03-31T05:33:38.681Z",
"userId": "5be2a7f6d..."
}
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
默认值:
{{Authorization}}
X-Tenant-Id
string
企业 ID
默认值:
{{X-Tenant-Id}}
X-Tenant-Type
string
可选
默认值:
organization
Body 参数application/json
返回响应
修改于 2023-01-06 07:08:35