UNPKG

zapier-platform-cli

Version:

The CLI for apps in the Zapier Developer Platform.

23 lines (21 loc) 413 B
const listExample = (z, bundle) => { const httpOptions = { headers: { 'my-header': process.env.MY_SECRET_VALUE } }; const response = z.request('http://example.com/api/v2/recipes.json', httpOptions); return response.then(res => res.json); }; const App = { // ... triggers: { example: { // ... operation: { // ... perform: listExample } } } };