Sign in

PostRecipe

This method creates a new channel's trigger.

Arguments

This method has the URL https://kazzola.com/api/internetchannel/getrecipe and follows the Kazola Web API calling conventions.

Argument Example Required Description
triggerId xx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Required

Id of trigger.

actionId xx-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Required

Id of action.

name Send Email Optional

External web service URL.

status 0 Required

Array of Fields

recipeTrigger JSON Array Required

Array of trigger

recipeAction JSON Array Required

Array of action

Example Input

 {
    "triggerId": "77-a6b920dc-0c3a-4eac-9d13-092e405c457b",
    "actionId": "78-88b19f93-f3e9-45d4-9aaf-17497c7e3455",
    "name": "Today's Weather send by Email",
    "status": 0,
    "recipeTrigger": {
      "location": "Islamabad",
      "time": "15:45"
    },
    "recipeAction": {
      "to": "demo1@kazzola.com",
      "toName": "Work Matec Demo 1",
      "cc": "",
      "ccName": "",
      "subject": "Today's Weather",
      "body": "{{weather}} today! With a high of {{temp_max}}C and a low of {{temp_min}}C. Currently temperature is  {{temperature}}C currently.",
      "from": "demo@kazzola.com",
      "fromName": "Work Matec Demo",
      "host": "mail.crowfoot.arvixe.com",
      "port": 25,
      "enableSsl": 0,
      "password": "t@rget"
    },
    "userId": "a5399ae3-018d-4cb6-bc1e-ad30fc4a9407",
    "userName": "John Taylor",
    "id": "81-a5e053c4-6243-40e3-a940-80cd3d17b648",
    "_action": 0,
    "_ot": 81,
    "_tc": 1456396362524,
    "_tu": 1456998890072,
    "updateDate": 1456964725349,
    "_rid": "9Q95AJpfQQCMFgAAAAAAAA==",
    "_self": "dbs/9Q95AA==/colls/9Q95AJpfQQA=/docs/9Q95AJpfQQCMFgAAAAAAAA==/",
    "_etag": "\"0000d606-0000-0000-0000-56d809ea0000\"",
    "_ts": 1456998890,
    "_attachments": "attachments/"
  }

Response

{
  "code": 200,
  "message": "Success",
  "id": "76-2062299b-56c7-4a76-ac96-cc916a7bcd57"
}