modify plivo Application - Java Message

Java examples for Message:Plivo

Description

modify 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.response.GenericResponse;


public class ModifyApplication {


  public static void main(String[] args) {

    GenericResponse response = null;//from  w  w  w. j  a v a  2s  . com
    RestAPI restApi = new RestAPI("<AUTH_ID>", "<AUTH_TOKEN>", "v1");
    LinkedHashMap<String,String> parmas = new LinkedHashMap<String,String>();
    parmas.put("app_id","123");
    parmas.put("name", "madhu");
    try
    {
      response = restApi.modifyApplication(parmas);
      System.out.println(response.message);
    }
    catch (PlivoException e) {
      System.out.println(response.error);
        }
  }
}

Related Tutorials