API

Catalog


GET All user granted

Request path:

https://api.aiursoft.com/API/AllUserGrantedTry

Request example:

https://api.aiursoft.com/API/AllUserGranted?accessToken=youraccessToken

Request arguments:

Name Required Type
accessToken Required Text

Possible Response:

{
  "AppId": "an example string.",
  "Grants": [
    {
      "UserInfo": {
        "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-09-19T03:51:20.0497875Z",
        "EmailConfirmed": true,
        "Email": "an example string."
      },
      "AppID": "an example string.",
      "GrantTime": "2019-09-19T03:51:20.0501221Z",
      "APIUserId": "an example string."
    },
    {
      "UserInfo": null,
      "AppID": "an example string.",
      "GrantTime": "2019-09-19T03:51:20.0509106Z",
      "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!"
}

POST Drop grants

Request path:

https://api.aiursoft.com/API/DropGrants

Request content type:

application/x-www-form-urlencoded

Form content example:

accessToken=youraccessToken 

Request form:

Name Required Type
accessToken Required Text

Possible Response:

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

Possible Response:

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