UNPKG

zapier-platform-cli

Version:

The CLI for apps in the Zapier Developer Platform.

26 lines (24 loc) 655 B
const recipeListRequest = { url: 'http://example.com/recipes', }; const App = { //... triggers: { new_recipe: { key: 'new_recipe', // uniquely identifies the trigger noun: 'Recipe', // user-friendly word that is used to refer to the resource // `display` controls the presentation in the Zapier Editor display: { label: 'New Recipe', helpText: 'Triggers when a new recipe is added.' }, // `operation` implements the API call used to fetch the data operation: { perform: recipeListRequest } }, another_trigger: { // Another trigger definition... } } };