Account

Catalog


GET Code to open id

Request path:

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

Request example:

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

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/UserInfoTry

Request example:

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

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": "2019-11-18T21:00:42.7281493Z",
    "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!"
}