Template:Json bulkFaxSend Block - Java

From Updox API
Revision as of 09:38, 1 July 2015 by Ggolden (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;
   }