User

Catalog


GET Change profile

Request path:

https://api.aiursoft.com/User/ChangeProfileTry

Request example:

https://api.aiursoft.com/User/ChangeProfile?NewNickName=yourNewNickName&NewIconFilePathName=yourNewIconFilePathName&NewBio=yourNewBio&AccessToken=yourAccessToken&OpenId=yourOpenId

Request arguments:

Name Required Type
NewNickName Required Text
NewIconFilePathName Required Text
NewBio Not required Text
AccessToken Required Text
OpenId 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 Change password

Request path:

https://api.aiursoft.com/User/ChangePasswordTry

Request example:

https://api.aiursoft.com/User/ChangePassword?OldPassword=yourOldPassword&NewPassword=yourNewPassword&AccessToken=yourAccessToken&OpenId=yourOpenId

Request arguments:

Name Required Type
OldPassword Required Text
NewPassword Required Text
AccessToken Required Text
OpenId 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 View phone number

Request path:

https://api.aiursoft.com/User/ViewPhoneNumberTry

Request example:

https://api.aiursoft.com/User/ViewPhoneNumber?AccessToken=yourAccessToken&OpenId=yourOpenId

Request arguments:

Name Required Type
AccessToken Required Text
OpenId Required Text

Possible Response:

{
  "Value": "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 Set phone number

Request path:

https://api.aiursoft.com/User/SetPhoneNumberTry

Request example:

https://api.aiursoft.com/User/SetPhoneNumber?Phone=yourPhone&AccessToken=yourAccessToken&OpenId=yourOpenId

Request arguments:

Name Required Type
Phone Not required Text
AccessToken Required Text
OpenId 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 View all emails

Request path:

https://api.aiursoft.com/User/ViewAllEmailsTry

Request example:

https://api.aiursoft.com/User/ViewAllEmails?AccessToken=yourAccessToken&OpenId=yourOpenId

Request arguments:

Name Required Type
AccessToken Required Text
OpenId Required Text

Possible Response:

{
  "Items": [
    {
      "Id": 0,
      "EmailAddress": "an example string.",
      "Validated": true
    }
  ],
  "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 Bind new email

Request path:

https://api.aiursoft.com/User/BindNewEmail

Request content type:

application/x-www-form-urlencoded

Form content example:

NewEmail=yourNewEmail&AccessToken=yourAccessToken&OpenId=yourOpenId 

Request form:

Name Required Type
NewEmail Required Text
AccessToken Required Text
OpenId Required Text

Possible Response:

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

Possible Response:

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

POST Delete email

Request path:

https://api.aiursoft.com/User/DeleteEmail

Request content type:

application/x-www-form-urlencoded

Form content example:

ThatEmail=yourThatEmail&AccessToken=yourAccessToken&OpenId=yourOpenId 

Request form:

Name Required Type
ThatEmail Required Text
AccessToken Required Text
OpenId Required Text

Possible Response:

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

Possible Response:

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

POST Send confirmation email

Request path:

https://api.aiursoft.com/User/SendConfirmationEmail

Request content type:

application/x-www-form-urlencoded

Form content example:

Email=yourEmail&AccessToken=yourAccessToken&OpenId=yourOpenId 

Request form:

Name Required Type
Email Required Text
AccessToken Required Text
OpenId Required Text

Possible Response:

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

Possible Response:

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

POST Set primary email

Request path:

https://api.aiursoft.com/User/SetPrimaryEmail

Request content type:

application/x-www-form-urlencoded

Form content example:

Email=yourEmail&AccessToken=yourAccessToken&OpenId=yourOpenId 

Request form:

Name Required Type
Email Required Text
AccessToken Required Text
OpenId 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 View granted apps

Request path:

https://api.aiursoft.com/User/ViewGrantedAppsTry

Request example:

https://api.aiursoft.com/User/ViewGrantedApps?AccessToken=yourAccessToken&OpenId=yourOpenId

Request arguments:

Name Required Type
AccessToken Required Text
OpenId Required Text

Possible Response:

{
  "Items": [
    {
      "UserInfo": null,
      "AppID": "an example string.",
      "GrantTime": "2019-09-19T03:51:20.1067795Z",
      "APIUserId": "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 Drop granted apps

Request path:

https://api.aiursoft.com/User/DropGrantedAppsTry

Request example:

https://api.aiursoft.com/User/DropGrantedApps?AppIdToDrop=yourAppIdToDrop&AccessToken=yourAccessToken&OpenId=yourOpenId

Request arguments:

Name Required Type
AppIdToDrop Required Text
AccessToken Required Text
OpenId Required Text

Possible Response:

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

Possible Response:

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