Template:Json Practice Block - Java

From Updox API
Revision as of 18:41, 19 November 2013 by Thenate (Talk | contribs)

Jump to: navigation, search
   private Map<String,Object> BuildMessage() throws Exception
   {
       Map<String,Object> messageData = new HashMap();
       messageData.put("accountId","NewPracticeId"); //required
       messageData.put("name","NewPracticeName"); //required
       messageData.put("address1", "");
       messageData.put("address2", "");
       messageData.put("city", "");
       messageData.put("state", "");
       messageData.put("postal", "");
       messageData.put("phone", "");
       messageData.put("fax", "");
       messageData.put("directAddress", "");
       messageData.put("timeZone", "");
       messageData.put("websiteAddress", "");
       messageData.put("active","true"); //recommended, defaults to "false"
 
       Map<String,String> authData = new HashMap();
       authData.put("applicationId", "vendorId");
       authData.put("applicationPassword", "vendorPassword");
       messageData.put("auth", authData);
 
       return messageData;
   }