Modify plivo account - Java Message

Java examples for Message:Plivo

Description

Modify plivo account

Demo Code


import java.util.LinkedHashMap;

import com.plivo.sdk.client.RestAPI;
import com.plivo.sdk.exception.PlivoException;
import com.plivo.sdk.response.account.Account;
import com.plivo.sdk.response.response.GenericResponse;
import com.plivo.sdk.xml.elements.Response;


public class ModifySubAccountDetail {


  public static void main(String[] args) {
    GenericResponse response = null;/* w ww .j  av a2s . c om*/

    RestAPI restApi = new RestAPI("<AUTH_ID>", "<AUTH_TOKEN>", "v1");
    LinkedHashMap<String,String> parmas = new LinkedHashMap<String,String>();
    parmas.put("city", "Blore");
    parmas.put("name","Madhulika");
    
    try {
      response = restApi.modifyAccount(parmas);
      System.out.println(response.message);
    } 
    catch (PlivoException e) {
      System.out.println(e.getMessage());
    }

}
}

Related Tutorials