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

From Updox API
Jump to: navigation, search
(Created page with " private Map<String,Object> BuildMessage() throws Exception { Map<String,Object> messageData = new HashMap(); List<String> recipientFaxNumbers = new Arr...")
 

Latest revision as of 09:38, 1 July 2015

   private Map<String,Object> BuildMessage() throws Exception
   {
       Map<String,Object> messageData = new HashMap();
       List<String> recipientFaxNumbers = new ArrayList<String>();
       recipientFaxNumbers.add("123-456-7890");
       messageData.put("recipientFaxNumbers",recipientFaxNumbers);
       messageData.put("fromName","Us");
       messageData.put("fromFaxNumber","123-456-7890");
       messageData.put("faxContent","Base64EncodedFaxContent");
 
       authData.put("applicationId", "vendorId");
       authData.put("applicationPassword", "vendorPassword");
       authData.put("accountId", "accountId");
 
       return messageData;
   }