Channel

Catalog


GET View my channels

Request path:

https://stargate.aiursoft.com/Channel/ViewMyChannelsTry

Request example:

https://stargate.aiursoft.com/Channel/ViewMyChannels?AccessToken=yourAccessToken

Request arguments:

Name Required Type
AccessToken Required Text

Possible Response:

{
  "AppId": "an example string.",
  "Channel": [
    {
      "Id": 0,
      "Description": "an example string.",
      "ConnectKey": "an example string.",
      "CreateTime": "2019-09-19T03:51:22.500573Z",
      "LifeTime": 0.0,
      "AppId": "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!"
}

GET Validate channel

Request path:

https://stargate.aiursoft.com/Channel/ValidateChannelTry

Request example:

https://stargate.aiursoft.com/Channel/ValidateChannel?Id=0&Key=yourKey

Request arguments:

Name Required Type
Id Required Number
Key Not 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 Create channel

Request path:

https://stargate.aiursoft.com/Channel/CreateChannel

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&Description=yourDescription 

Request form:

Name Required Type
AccessToken Required Text
Description Not required Text

Possible Response:

{
  "ChannelId": 0,
  "ConnectKey": "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 Delete channel

Request path:

https://stargate.aiursoft.com/Channel/DeleteChannel

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&ChannelId=0 

Request form:

Name Required Type
AccessToken Required Text
ChannelId Required Number

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://stargate.aiursoft.com/Channel/DeleteApp

Request content type:

application/x-www-form-urlencoded

Form content example:

AppId=yourAppId&AccessToken=yourAccessToken 

Request form:

Name Required Type
AppId Required Text
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!"
}