Difference between revisions of "Template:Json Practice Block - Java"

From Updox API
Jump to: navigation, search
Line 1: Line 1:
 +
    private Map<String,Object> BuildMessage() throws Exception
 +
    {
 
         Map<String,Object> messageData = new HashMap();
 
         Map<String,Object> messageData = new HashMap();
 
         messageData.put("accountId","NewPracticeId"); <span style="color:green">//required</span>
 
         messageData.put("accountId","NewPracticeId"); <span style="color:green">//required</span>
Line 15: Line 17:
 
    
 
    
 
{{Json_Auth_Block_-_Application_-_Java}}
 
{{Json_Auth_Block_-_Application_-_Java}}
 +
 
 +
        return messageData;
 +
    }

Revision as of 18:41, 19 November 2013

   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;
   }