Socket
Socket
Sign inDemoInstall

plivo-meteor

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    plivo-meteor

npm wrapper for Plivo, an open source telephony and SMS framework


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
2.67 kB
Created
Weekly downloads
 

Readme

Source

Meteor wrapper for Plivo, the telephony framework

This smart package wraps the npm package for Plivo, an open source telephony and SMS application prototyping framework.

This uses version 0.1.0 of the Plivo Node.js package and the new meteor 0.6.0 npm bindings.

To get started, replace AUTH_ID, AUTH_TOKEN with your Plivo credentials and use some of the examples below:

####Send an SMS text message


  plivo = Plivo.RestAPI({
    authId: AUTH_ID,
    authToken: AUTH_TOKEN,
  });

  var params = {
      'src': 'xxxxxxxxxx', // Caller Id
      'dst' : 'xxxxxxxxxx', // User Number to Call
      'text' : "Hi, message from Plivo",
      'type' : "sms",
  };

  plivo.send_message(params, function (status, response) {
      console.log('Status: ', status);
      console.log('API Response:\n', response);
  });


####Place a phone call, and respond with instructions from the given URL


  plivo = Plivo.RestAPI({
    authId: AUTH_ID,
    authToken: AUTH_TOKEN,
  });
  
  var params = {};
  params.from = "xxxxxxxxxx";
  params.to = "xxxxxxxxxx";
  params.answer_url = "http://somesite.com/answer_url.xml";

  plivo.make_call(params, function (status, response) {
      console.log('Status: ', status);
      console.log('API Response:\n', response);
  });


For more examples, check out the official Plivo node.js quickstart repo.

FAQs

Last updated on 17 Oct 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc