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.",
        "HeadImgFileKey": 0,
        "PreferedLanguage": "an example string.",
        "AccountCreateTime": "2019-07-18T21:00:37.1421108Z",
        "EmailConfirmed": true,
        "Email": "an example string."
      },
      "AppID": "an example string.",
      "GrantTime": "2019-07-18T21:00:37.1423545Z",
      "APIUserId": "an example string."
    },
    {
      "UserInfo": null,
      "AppID": "an example string.",
      "GrantTime": "2019-07-18T21:00:37.1425571Z",
      "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!"
}