UNPKG

zapier-platform-cli

Version:

The CLI for managing integrations in Zapier Developer Platform.

35 lines (30 loc) 631 B
const perform = async (z, bundle) => { const response = await z.request({ method: 'POST', url: 'https://auth-json-server.zapier-staging.com/recipes', body: { name: bundle.inputData.name, }, }); return response.data; }; module.exports = { key: 'recipe', noun: 'Recipe', display: { label: 'Create Recipe', description: 'Creates a recipe.', }, operation: { inputFields: [ { key: 'name', required: true }, { key: 'directions', required: false }, { key: 'style', required: false }, ], perform, sample: { id: 1, name: 'Test', }, }, };