tropo-webapi v15.13.0
Tropo WebAPI Node.js Library
A Node.js module for the Tropo WebAPI.
Installation
To get started you will first need to have Node.js installed. Howtonode has a good write-up on installing Node.js on Windows, Ubuntu and OSX.
If you have Node.js installed, and are using the Node Package Manager (npm), just do:
~$ npm install tropo-webapi -g
If you install with npm, then you can reference the tropo Node library in your node.js scripts like this:
If you do not have npm installed, then you will then want to create a directory for your project, you may want to use a convention like this:
Add this declaration to your server.js starting file
Running
You may then run your script from within the project directory with:
Sample Usage
Generate a JSON Doc
Respond to a Tropo WebAPI Session
Samples
You may run the included samples from within the tropo-webapi-node directory as follows:
We have also included several examples for the Express.js Node framework. This may be run from within the tropo-webapi-node library as follows: