Difference between revisions of "Template:Json User Block - Java"
From Updox API
Line 2: | Line 2: | ||
{ | { | ||
Map<String,Object> messageData = new HashMap(); | 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"); | |
− | + | ||
− | + | ||
− | messageData.put(" | + | |
− | messageData.put(" | + | |
− | messageData.put(" | + | |
− | + | ||
− | + | ||
− | + | ||
− | messageData.put(" | + | |
{{Json_Auth_Block_-_Account_-_Java}} | {{Json_Auth_Block_-_Account_-_Java}} |
Revision as of 09:36, 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; }