Corvisa REST API client for Node
Documentation for the REST API can be found at https://code.corvisacloud.com/restapi.html. This API is using promises.
Installation
$ npm install corvisa
Documentation
Create a client using your API key:
var Corvisa = ; var corvisa = "YOUR_API_KEY" "YOUR_API_SECRET"
Options can be passed as a second argument to the constructor:
var corvisa = "YOUR_API_KEY" "YOUR_API_SECRET" // Default phone number for sending sms from: "+15554447001" // Endpoint for the Rest API endpoint: "https://api.us1.corvisa.io";
SMS
Send a single sms using:
corvisa
Or a batch of SMS using:
corvisa
Voice Applications
Create a client for an application using client.application
:
var app = client;
Schedule a call:
app;
Direct REST call
// POST request to https://api.us1.corvisa.io/method_namecorvisa; // GET request to https://api.us1.corvisa.io/method_namecorvisa;