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

From Updox API
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
     {
 
     {
 
         Map<String,Object> messageData = new HashMap();
 
         Map<String,Object> messageData = new HashMap();
         List<String> recipientFaxNumbers = new ArrayList<String>();
+
         messageData.put("loginId","newLoginId");
         recipientFaxNumbers.add("123-456-7890");
+
        messageData.put("loginPassword","password");
         messageData.put("recipientFaxNumbers",recipientFaxNumbers);
+
        messageData.put("firstName", "Ima");  <span style="color:green">// required</span>
         messageData.put("fromName","Us");
+
        messageData.put("middleName", "Joy");
         messageData.put("fromFaxNumber","123-456-7890");
+
        messageData.put("lastName", "Usertino"); <span style="color:green">// required</span>
         messageData.put("faxContent","Base64EncodedFaxContent");
+
        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("timeZone", "America/Chicago");
 +
        messageData.put("active","true"); <span style="color:green">// recommended, defaults to "false"</span>
 +
        messageData.put("provider", "false");
 +
         messageData.put("directAddress", "practiceuser");
 
    
 
    
 
{{Json_Auth_Block_-_Account_-_Java}}
 
{{Json_Auth_Block_-_Account_-_Java}}

Latest revision as of 09:40, 1 July 2015

   private Map<String,Object> BuildMessage() throws Exception
   {
       Map<String,Object> messageData = new HashMap();
       messageData.put("loginId","newLoginId");
       messageData.put("loginPassword","password");
       messageData.put("firstName", "Ima");  // required
       messageData.put("middleName", "Joy");
       messageData.put("lastName", "Usertino"); // 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("timeZone", "America/Chicago");
       messageData.put("active","true"); // recommended, defaults to "false"
       messageData.put("provider", "false");
       messageData.put("directAddress", "practiceuser");
 
       authData.put("applicationId", "vendorId");
       authData.put("applicationPassword", "vendorPassword");
       authData.put("accountId", "accountId");
 
       return messageData;
   }