Customer Identity (CIAM)

Get User's Bound Social Account List

Used to retrieve the social accounts that a user has bound. If the call is successful, it returns a list of social accounts; if it fails, it returns failure information.

This is a post-login interface and requires adding authentication information to the header: Authorization.

# Request Description

GET https://{your_domain}/api/v2/sdk/social

# Request Headers

Parameter Chinese Name Required Type Example
X-operating-sys-version Client Operating System Version Yes String windows10.1.1
X-device-fingerprint Client Device Fingerprint Yes String 156aysdna213sc50
X-device-ip Client IP Address 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)
X-L For Internationalization Language Setting No String zh
X-client-id Application Authorization ID Yes String nTo1eRIub60vPb54WeE6aojPwYwImtl4
Authorization Authorization Information Yes String Bearer {id_token}
content-type Content Format Type Yes String application/json

# Request Example

None

# Request Parameters

None

# Response Example

Success Example:
HTTP/1.1 200 OK
Content-Type: application/json
{
  "social": [
    {
      "id": "20210111142024468-ADFB-B41D22CEV",
      "userId": "20210111142020284-114D-7DF343948",
      "socialType": "weixin",
      "socialUid": "odVLG0-NK05w0000g1BCAnbC4WdM",
      "socialChannelId": "oKfHI1BJdxUEFCAakTeoYIlC22lw",
      "socialNickname": "云云",
      "socialHeadImage": "https://thirdwx.qlogo.cn/mmopen/vi_32/pP0UibPF2OL0oJPw/132",
      "socialAccountDetails": null,
      "idpId": "20211109143455927-43EC-A3622E9F5",
      "createdAt": "2021-01-10 14:20:24.468",
      "updatedAt": "2021-01-10 14:20:24.468"
    }
  ]
}


Error Example:
HTTP/1.1 400 Bad Request
{
    "error_code": "IDAAS.SDK.PARAM.0016",
    "error_msg": "IdToken is invalid or expired"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

# Response Parameters

Parameter Name Chinese Name Type Description
social Social Information Collection LIst Social Information Collection
id System ID String System ID automatically generated by IDaaS
userId User ID String User ID
socialType Social Type String Social Type, WeChat: weixin
socialUid Social ID String Corresponding third-party ID, WeChat: unionId
socialChannelId Social Channel ID String Corresponds to WeChat: openId, other social identity sources are the same as socialUid
socialNickname Nickname String Nickname
socialHeadImage Avatar String Avatar
socialAccountDetails Description String Description
idpId Identity Provider ID String Identity Provider ID
createdAt Creation Time String Creation Time
updatedAt Modification Time String Modification Time

# Error Codes

Status Code Error Code Error Message Action
400 IDAAS.SDK.PARAM.0001 Device information is incomplete Please check if the input device information is complete
设备信息不完整
400 IDAAS.SDK.PARAM.0002 clientId cannot be empty Please check if the input clientId is empty
clientId不能为空
400 IDAAS.SDK.PARAM.0003 The app is not registered, please register the app first Please check if the input clientId is correct
应用未注册,请先注册应用
400 IDAAS.SDK.PARAM.0015 IdToken cannot be empty Please check if the input IdToken is empty
IdToken不能为空
400 IDAAS.SDK.PARAM.0016 IdToken is invalid or expired Please try again after obtaining a new IdToken
IdToken无效或已过期

I am ready. Please paste the Markdown content you need translated.