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

From Updox API
Jump to: navigation, search
 
(4 intermediate revisions by one user not shown)
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>
         messageData.put("name","NewPracticeName"); <span style="color:green">//required</span>
+
         messageData.put("name","Family Practice"); <span style="color:green">//required</span>
         messageData.put("address1", "");
+
         messageData.put("address1", "94 N. High St");
         messageData.put("address2", "");
+
         messageData.put("address2", "Suite 100");
         messageData.put("city", "");
+
         messageData.put("city", "Dublin");
         messageData.put("state", "");
+
         messageData.put("state", "OH");
         messageData.put("postal", "");
+
         messageData.put("postal", "43017");
         messageData.put("phone", "");
+
         messageData.put("phone", "6147988170");
         messageData.put("fax", "");
+
         messageData.put("fax", "6144074411");
         messageData.put("directAddress", "");
+
         messageData.put("directAddress", "practice_direct");
         messageData.put("timeZone", "");
+
        messageData.put("directDomain", "new_practice");
         messageData.put("websiteAddress", "");
+
         messageData.put("timeZone", "America/Chicago");
 +
         messageData.put("websiteAddress", "practice_website");
 
         messageData.put("active","true"); <span style="color:green">//recommended, defaults to "false"</span>
 
         messageData.put("active","true"); <span style="color:green">//recommended, defaults to "false"</span>
 
+
       
 
{{Json_Auth_Block_-_Application_-_Java}}
 
{{Json_Auth_Block_-_Application_-_Java}}
 +
       
 +
        return messageData;
 +
    }

Latest revision as of 21:46, 11 December 2015

   private Map<String,Object> BuildMessage() throws Exception
   {
       Map<String,Object> messageData = new HashMap();
       messageData.put("accountId","NewPracticeId"); //required
       messageData.put("name","Family Practice"); //required
       messageData.put("address1", "94 N. High St");
       messageData.put("address2", "Suite 100");
       messageData.put("city", "Dublin");
       messageData.put("state", "OH");
       messageData.put("postal", "43017");
       messageData.put("phone", "6147988170");
       messageData.put("fax", "6144074411");
       messageData.put("directAddress", "practice_direct");
       messageData.put("directDomain", "new_practice");
       messageData.put("timeZone", "America/Chicago");
       messageData.put("websiteAddress", "practice_website");
       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;
   }