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
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": "2022-05-27T06:35:57.4930174Z",
"emailConfirmed": true,
"email": "an example string."
},
"appId": "an example string.",
"grantTime": "2022-05-27T06:35:57.4931878Z",
"gatewayUserId": "an example string."
},
{
"userInfo": null,
"appId": "an example string.",
"grantTime": "2022-05-27T06:35:57.4934311Z",
"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!"
}