Skip to main content
The Plivo Salesforce Helper library simplifies the process of making Plivo API Calls and generating Plivo XML.

Prerequisites

  1. Salesforce Developer Account.
  2. Java SDK >=1.6 version
  3. Apache Ant >=1.6 version
  4. Force.com Migration Tool plugin for Ant

Installation

  1. Checkout or download the plivo-salesforce library from GitHub.
  2. Unzip Force.com Migration Tool plugin for Ant and copy the ant-salesforce.jar into the plivo-salesforce directory you cloned in Step 1.
  3. Edit install/build.properties to insert your Salesforce username and password. Since you will be using the API to access Salesforce, remember to append your Security Token to your password.
  4. Open your command line to the install folder, then deploy using Ant:
This will upload our helper library to your Salesforce Organization and give you access to all of Plivo’s functionality with simple, easy to use Apex classes.

Using the library

Getting started with the Plivo API couldn’t be easier.

Initializing the PlivoRestApi class

Send an SMS

The snippet below shows how you can send an sms.
Check out this Getting Started page or the full Message API documentation for more details.

Make an Outbound Phone Call

You can make outbound phone calls to landlines, mobiles, and SIP endpoints (e.g., softphones), in any of our 200+ coverage countries
Check out this Getting Started page or the full Call API documentation for more details.

Methods

Below are all the methods that are present in PlivoRestApi class.

Account API](/api/account/)

Application API

Call API

Conference API

Endpoint API

Message API

Number & PhoneNumber API

Pricing API

MethodDescriptionMandatory Parameters
getPricing(parameters)Get Pricing details for a specific countrycountry_iso

Recording API

Examples

Take a look at the Salesforce Integration examples on GitHub.

Reporting Issues

Please report issues or submit patches using the Github Issue Tracker or Customer Plivo Support.

License

The Plivo Salesforce Helper Library is written by the Plivo Team and distributed under the MIT License.