Employee Identity (EIAM)
Unbind Social Account (By Social Type)
API
Used for social account unbinding operations. A success message is returned upon successful call, and a failure message is returned upon failed call.
# Request Description
Request URL https://{your_domain}/api/v2/sdk/social/unbind
Request Method POST
Content-Type application/json
# Request Header Parameters
| Parameter | Chinese Name | Required | Type | Example |
|---|---|---|---|---|
| X-operating-sys-version | Caller OS 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 | For internationalization language setting | No | String | zh |
| X-client-id | Application Authorization ID | Yes | String | nTo1eRIub60vPb54WeE6aojPwYwImtl4 |
| Authorization | The ID token returned by the user login API. Format is Bearer {id_token} | Yes | String | Bearer eyJraWQiOiI1ZWZhN2ZmZDA2Z... |
# Request Body Example
{
"social_uid": "001GKgGa15HGZA0aOxIa1bFktp1GKgG4",
"social_type": "weixin"
}
1
2
3
4
2
3
4
# Request Parameters
| Parameter | Chinese Name | Required | Type | Description |
|---|---|---|---|---|
| social_uid | Social Uid | Yes | String | The user uid returned by the social source during social authentication |
| social_type | Social Type | Yes | String | weixin : WeChat, WeChat Mini Program wechat_work : WeChat Work qq : QQ google : Google weibo : Weibo facebook : Facebook alipay : Alipay douyin: Douyin |
# Response Example
Success Example:
HTTP/1.1 200 OK
Error Example:
HTTP/1.1 400 Bad Request
{
"error_code": "SDK.COMMON.1007",
"error_msg": "state_token parameter error"
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# Response Parameters
None
