Account

Catalog


GET Code to open id

Request path:

https://gateway.aiursoft.com/Account/CodeToOpenId

Request example:

https://gateway.aiursoft.com/Account/CodeToOpenId?AccessToken=yourAccessToken&Code=0

Try

Request arguments:

Name Required Type
AccessToken Required Text
Code Required Number

Possible Response:

{
  "openId": "an example string.",
  "scope": "an example string.",
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

GET User info

Request path:

https://gateway.aiursoft.com/Account/UserInfo

Request example:

https://gateway.aiursoft.com/Account/UserInfo?AccessToken=yourAccessToken&OpenId=yourOpenId

Try

Request arguments:

Name Required Type
AccessToken Required Text
OpenId Required Text

Possible Response:

{
  "user": {
    "id": "an example string.",
    "bio": "an example string.",
    "nickName": "an example string.",
    "sex": "an example string.",
    "iconFilePath": "an example string.",
    "preferedLanguage": "an example string.",
    "accountCreateTime": "2020-01-28T21:00:35.8125168Z",
    "emailConfirmed": true,
    "email": "an example string."
  },
  "code": 0,
  "message": "an example string."
}

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}