Difference between revisions of "Template:Json MuMeasuresGet Block - Java"
From Updox API
Line 2: | Line 2: | ||
{ | { | ||
Map<String,Object> messageData = new HashMap(); | Map<String,Object> messageData = new HashMap(); | ||
+ | Map<String,Object> authData = new HashMap(); | ||
List<String> measures = new ArrayList(); | List<String> measures = new ArrayList(); | ||
measures.add("core:17"); | measures.add("core:17"); | ||
Line 8: | Line 9: | ||
{{Json_Auth_Block_-_User_-_Java}} | {{Json_Auth_Block_-_User_-_Java}} | ||
− | + | ||
+ | messageData.put("auth",authData); | ||
return messageData; | return messageData; | ||
} | } |
Revision as of 13:33, 27 May 2014
private Map<String,Object> BuildMessage() throws Exception { Map<String,Object> messageData = new HashMap(); Map<String,Object> authData = new HashMap(); List<String> measures = new ArrayList(); measures.add("core:17"); messageData.put("measureIds", measures); Map<String,Object> authData = new HashMap(); authData.put("applicationId", "vendorId"); authData.put("applicationPassword", "vendorPassword"); authData.put("accountId", "accountId"); authData.put("userId", "userId"); messageData.put("auth", authData); messageData.put("auth",authData); return messageData; }