Account

Catalog


POST Password auth

Request path:

https://api.aiursoft.com/Account/PasswordAuth

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&Email=yourEmail&Password=yourPassword 

Request form:

Name Required Type
AccessToken Required Text
Email Required Text
Password Required Text

Possible Response:

{
  "Value": 0,
  "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!"
}

POST App register

Request path:

https://api.aiursoft.com/Account/AppRegister

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&Email=yourEmail&Password=yourPassword&ConfirmPassword=yourConfirmPassword 

Request form:

Name Required Type
AccessToken Required Text
Email Required Text
Password Required Text
ConfirmPassword Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

GET Code to open id

Request path:

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

Request example:

https://api.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://api.aiursoft.com/Account/UserInfoTry

Request example:

https://api.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-08-25T21:00:40.0904247Z",
    "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!"
}