Sites

Catalog


POST Create new site

Request path:

https://probe.aiursoft.com/Sites/CreateNewSite

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&NewSiteName=yourNewSiteName 

Request form:

Name Required Type
AccessToken Required Text
NewSiteName 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 my sites

Request path:

https://probe.aiursoft.com/Sites/ViewMySitesTry

Request example:

https://probe.aiursoft.com/Sites/ViewMySites?AccessToken=yourAccessToken

Request arguments:

Name Required Type
AccessToken Required Text

Possible Response:

{
  "AppId": "an example string.",
  "Sites": [
    {
      "AppId": "an example string.",
      "SiteName": "an example string.",
      "CreationTime": "2019-09-19T03:51:22.0503228Z"
    }
  ],
  "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 View site detail

Request path:

https://probe.aiursoft.com/Sites/ViewSiteDetailTry

Request example:

https://probe.aiursoft.com/Sites/ViewSiteDetail?SiteName=yourSiteName&AccessToken=yourAccessToken

Request arguments:

Name Required Type
SiteName Not required Text
AccessToken Not required Text

Possible Response:

{
  "AppId": "an example string.",
  "Site": {
    "AppId": "an example string.",
    "SiteName": "an example string.",
    "CreationTime": "2019-09-19T03:51:22.0606226Z"
  },
  "Size": 0,
  "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 Delete site

Request path:

https://probe.aiursoft.com/Sites/DeleteSite

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&SiteName=yourSiteName 

Request form:

Name Required Type
AccessToken Required Text
SiteName 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 app

Request path:

https://probe.aiursoft.com/Sites/DeleteApp

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&AppId=yourAppId 

Request form:

Name Required Type
AccessToken Required Text
AppId Required Text

Possible Response:

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

Possible Response:

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