Prerequisites
- Salesforce Developer Account.
- Java SDK >=1.6 version
- Apache Ant >=1.6 version
- Force.com Migration Tool plugin for Ant
Installation
- Checkout or download the plivo-salesforce library from GitHub.
- Unzip Force.com Migration Tool plugin for Ant and copy the ant-salesforce.jar into the plivo-salesforce directory you cloned in Step 1.
- 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.
- Open your command line to the install folder, then deploy using Ant:
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.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 countriesMethods
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
| Method | Description | Mandatory Parameters |
|---|---|---|
| getPricing(parameters) | Get Pricing details for a specific country | country_iso |