Sarv Transactional Email API Documentation - Node.js
request 2.0+ (install it with
npm -g install request)
Getting the Library
Installing from the zip release
Download the latest release
Unpack the zip file
Move the file (sarv.js) somewhere in your project.
Using the Library
Now that you have a copy of the library in your project, you're ready to start using it. All uses of the SarvTES API start by including the library and instantiating the Sarv class.
var sarv = require('./sarv.js'); var sarv_client = new sarv.Sarv('owner_id', 'token', 'SarvTES_APP_DOMAIN');
After that, you're ready to start making calls.