This method creates a new channel's trigger.
Arguments
This method has the URL https://kazzola.com/api/internetchannel/trigger
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 |
Weather |
Required |
Name of trigger.
|
link |
https://sample.com/trigger-image.png |
Optional |
External web service URL.
|
fields |
JSON Array |
Required |
Array of Fields
|
nameField |
tweet |
Required |
Name of Field
|
formControl |
0 |
Required |
Enumeration of control to be fetched.
|
required |
1 |
Required |
If field is required or not in json request.
|
orderBy |
1 |
Required |
Order of fields in which to display them. e.g 1, 2 or 3.
|
display |
1 |
Required |
Whether to show field or not on UI. 1=show, 0=don't
|
value |
My value |
Required |
Default field value. Empty strings if not.
|
Example Input
{
"registerationId": "76-346f10fa-cdf1-4b83-a5f0-67fb3e62875a",
"name": "Get Tweets",
"link": "https://harissol.com//wp-content/themes/sydney/images/kazola.png",
"defaultMessage": "Message is {{tweet}}",
"fields": [
{
"nameField": "tweet",
"formControl": 0,
"required": 1,
"orderBy": 1,
"displayName": "Tweet",
"display": 1,
"value": ""}
]
,
"outputParameters": [
{
"value": "{{tweet}}"
}
]
}
Response
{
"code": 200,
"message": "Success",
"id": "76-2062299b-56c7-4a76-ac96-cc916a7bcd57"
}