Get Details of Single plivo Application - Java Message

Java examples for Message:Plivo

Description

Get Details of Single plivo Application

Demo Code


import java.util.LinkedHashMap;

import com.plivo.sdk.client.RestAPI;
import com.plivo.sdk.exception.PlivoException;
import com.plivo.sdk.response.application.Application;


public class DetailsofSingleApplication {


  public static void main(String[] args) {

    Application response = null;/*from  w w w.  ja va2  s . co  m*/
    RestAPI restApi = new RestAPI("<AUTH_ID>", "<AUTH_TOKEN>", "v1");
    LinkedHashMap<String,String> parmas = new LinkedHashMap<String,String>();
    parmas.put("app_id","123");
    try
    {
      response = restApi.getApplication(parmas);
                        System.out.println("application details fetched for:" +response.applicationID);
      
    }
    catch (PlivoException e) {
    e.printStackTrace(); // logger to be added
    }
  }

}

Related Tutorials