Installation
Install the SDK using npm.0.4.1 version (a.k.a. legacy) already installed, you may have to first uninstall it before installing the new version.
For features in beta, install the beta branch:
Getting started
Authentication
To make the API requests, you need to create aClient and provide it with authentication credentials, which you can find on the Overview page of the Plivo console.
We recommend that you store your credentials in the PLIVO_AUTH_ID and the PLIVO_AUTH_TOKEN environment variables, to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and it will automatically fetch them from the environment variables:
Client.
The basics
The SDK uses consistent interfaces to create, retrieve, update, delete, and list resources. The pattern is:client.resources.list() would list the first 20 resources by default (the first page, with limit as 20, and offset as 0). Use limit and offset to get more page of resources.