Get Bound Social Account List API
Used to get the social accounts bound to the user. On success, the social account list is returned; on failure, error information is returned.
Request Description
Request Headers
| Parameter Name | Name | Required | Type | Description |
|---|---|---|---|---|
| X-operating-sys-version | Caller operating system version | Yes | String | windows10.1.1 |
| X-device-fingerprint | Caller device fingerprint | Yes | String | 156aysdna213sc50 |
| X-device-ip | Caller IP | No | String | 192.168.1.2 |
| X-agent | User-Agent information | Yes | String | Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15(KHTML, like Gecko) Mobile/15E148/HuaWei-AnyOffice/2.6.1802.0010/com.huawei.cloudlink.workplace |
| X-L | Used for internationalization language setting | No | String | zh |
| X-client-id | Application authorization ID | Yes | String | nTo1eRIub60vPb54WeE6aojPwYwImtl4 |
| Authorization | IDtoken returned by the user login API. Format is Bearer {id_token} | Yes | String | Bearer eyJraWQiOiI1ZWZhN2ZmZDA2Z... |
Request Parameters
None
Response Example
Success Example
HTTP/1.1 200 OK
json
{
"social": [
{
"id": "20210516130247432-C84E-E5EA8CFE7",
"userId": "20210515202200788-094F-074FB1341",
"socialType": "weixin",
"social_uid": "001GKgGa15HGZA0aOxIa1bFktp1GKgG4_social_uid",
"socialNickname": null,
"socialHeadImage": null,
"socialAccountDetails": null,
"createdAt": "2021-05-16 13:02:48.513",
"updatedAt": "2021-05-16 13:02:48.513"
}
]
}Error Example
HTTP/1.1 400 Bad Request
json
{
"error_code": "SDK.COMMON.1007",
"error_msg": "state_token parameter error"
}Response Parameters
| Parameter Name | Name | Type | Description |
|---|---|---|---|
| social | Social information list | List | Social information list |
| id | System ID | String | System ID automatically generated by IDaaS |
| userId | User ID | String | User ID |
| socialType | Social type | String | Social type |
| social_uid | Social ID | String | Social ID (corresponding to the third-party ID, WeChat: openId) |
| socialNickname | Nickname | String | Nickname |
| socialHeadImage | Avatar | String | Avatar |
| socialAccountDetails | Description | String | Description |
| createdAt | Creation time | String | Creation time |
| updatedAt | Update time | String | Update time |