User Info
Get User Information API, based on the obtained access token, can retrieve basic user information, verify user information, and bind accounts.
Steps:
1. Open the authorization page to obtain the authorization code
2. The third-party platform exchanges the authorization code for an access token
3. Obtain user information based on the access token for account binding
Header parameters
tracestringRequiredExample:
{{mock_trace}}
companystringRequiredExample:
{{company}}
Body
accessTokenstringRequired
Responses
200
Success
application/json
Responseobject
post
POST /cats-gateway-auth2/auth2/user HTTP/1.1
Host: prepc-real.headline.net
trace: text
company: text
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"accessToken": "6f60d5e7-9b31-429c-84f1-a0a927d40961"
}
200
Success
{
"msg": "Success",
"fail": false,
"trace": "x-25h47h2-l48dy-ssxh0o1-88471-1678261704",
"code": "0",
"data": {
"thirdUserId": "666666660,12345678901234567890,123456789012340,666666660",
"accountId": 0,
"thirdLoginSource": "telegram,google,facebook,telegram,3",
"customerNo": "86021063",
"email": null
},
"bizCode": "",
"tm": 76220395,
"msgParams": null,
"ok": true
}
Last updated