UNPKG

@zenvia/sdk

Version:

This SDK for [Node.js](https://nodejs.org/) was created based on the [Zenvia](https://www.zenvia.com/) [API](https://zenvia.github.io/zenvia-openapi-spec/).

19 lines (15 loc) 353 B
/** * Example to list templates. * * Run: * ZENVIA_API_TOKEN=your-api-token node template-list.js */ const { Client } = require('../dist'); const client = new Client('GKkj0dSHDN60yLdkZzVyj4-osKlMQXQj-5d4'); client.listTemplates() .then(response => { console.log('Response:', response); }) .catch(error => { console.log('Error:', error); });