This method creates a new channel's trigger.
Arguments
This method has the URL https://kazzola.com/api/internetchannel/action
and follows the Kazola Web API calling conventions.
Argument |
Example |
Required |
Description |
registerationId |
xx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
Required |
Channel's Registeration Id.
|
name |
Tweet |
Required |
Name of action.
|
link |
https://sample.com/action-image.png |
Optional |
External web service URL.
|
fields |
JSON Array |
Required |
Array of Fields
|
settings |
JSON Array |
Required |
Array of Settings
|
Example Input
{
"registerationId": "76-1e78e701-d44d-4d93-935e-18ea24eb0d6b",
"name": "Doc Test Action",
"link": "https://sample.com/action-image.png",
"fields": [
{
"nameField": "name",
"formControl": 0,
"required": 1,
"orderBy": 1,
"displayName": "",
"display": 0,
"value": ""
}
],
"setting": [
{
"nameField": "hostName",
"formControl": 0,
"required": 1,
"orderBy": 1,
"displayName": "Incoming Server",
"display": 1,
"value": ""
}
],
}
Response
{
"code": 200,
"message": "Success",
"id": "76-2062299b-56c7-4a76-ac96-cc916a7bcd57"
}