API

Catalog


GET All user granted

Request path:

https://gateway.aiursoft.com/API/AllUserGranted

Request example:

https://gateway.aiursoft.com/API/AllUserGranted?PageSize=0&PageNumber=0&AccessToken=yourAccessToken

Try

Request arguments:

Name Required Type
PageSize Required Number
PageNumber Required Number
AccessToken Required Text

Possible Response:

{
  "totalCount": 0,
  "currentPage": 0,
  "currentPageSize": 0,
  "items": [
    {
      "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": "2020-04-08T21:00:41.5921679Z",
        "emailConfirmed": true,
        "email": "an example string."
      },
      "appID": "an example string.",
      "grantTime": "2020-04-08T21:00:41.5923504Z",
      "gatewayUserId": "an example string."
    },
    {
      "userInfo": null,
      "appID": "an example string.",
      "grantTime": "2020-04-08T21:00:41.5926733Z",
      "gatewayUserId": "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://gateway.aiursoft.com/API/DropGrants

Request example:

https://gateway.aiursoft.com/API/DropGrants?accessToken=youraccessToken

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!"
}