Template:Json bulkFaxSend Block - Java

From Updox API
Jump to: navigation, search
   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;
   }