获取用户信息

获取用户信息

post

获取用户信息接口,根据获取的访问令牌,可以获取用户基本信息,用户用户信息的校验以及账户的绑定。 步骤: 1、打开授权页面获取授权码 2、三方平台通过授权码换取访问令牌 3、根据访问令牌获取用户信息进行账号绑定

Header parameters
tracestringRequiredExample: {{mock_trace}}
companystringRequiredExample: {{company}}
Body
accessTokenstringRequired
Responses
200
成功
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

成功

{
  "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