meteor-plivo 
Plivo NodeJS client API port for Meteor to create powerful Voice and SMS applications.
Supported versions:
Add Settings to Access PlivoAPI object globally into Meteor.settings.plivo
. In example:
1{ 2 "plivo": { 3 "authToken": "some token", 4 "authId": "some id" 5 } 6}
Install:
$ meteor add cortezcristian:meteor-plivo
Then you can use PlivoAPI object globally:
1var params = { 2 from: 'your number here', 3 to: 'recipients number', 4 answer_url: 'http://your-server.com/answer_url' 5}; 6 7PlivoAPI.make_call(params, function(status, response) { 8 if (status >= 200 && status < 300) { 9 console.log('Successfully made call request.'); 10 console.log('Response:', response); 11 } else { 12 console.log('Oops! Something went wrong.'); 13 console.log('Status:', status); 14 console.log('Response:', response); 15 } 16});
Or create a new instance yourserlf.
1import { Plivo, PlivoResponse } from 'meteor/cortezcristian:meteor-plivo'; 2 3var api = Plivo.RestAPI({ /* config here */ }); 4 5var response = PlivoResponse(); // new response