Last updated 7 months ago
获取用户信息接口,根据获取的访问令牌,可以获取用户基本信息,用户用户信息的校验以及账户的绑定。 步骤: 1、打开授权页面获取授权码 2、三方平台通过授权码换取访问令牌 3、根据访问令牌获取用户信息进行账号绑定
/auth2/user
{{mock_trace}}
{{company}}
curl -L \ --request POST \ --url 'https://prepc-real.headline.net/cats-gateway-auth2/auth2/user' \ --header 'trace: text' \ --header 'company: text' \ --header 'Content-Type: application/json' \ --data '{ "accessToken": "6f60d5e7-9b31-429c-84f1-a0a927d40961" }'
{ "msg": "Success", "fail": false, "trace": "x-25h47h2-l48dy-ssxh0o1-88471-1678261704", "code": "0", "bizCode": "", "tm": 76220395, "msgParams": null, "ok": true, "data": { "thirdUserId": "666666660,12345678901234567890,123456789012340,666666660", "accountId": 0, "thirdLoginSource": "telegram,google,facebook,telegram,3", "customerNo": "86021063", "email": null } }