Difference between revisions of "Template:Json MuMeasuresGet Block - Java"
From Updox API
(One intermediate revision by one user not shown) | |||
Line 2: | Line 2: | ||
{ | { | ||
Map<String,Object> messageData = new HashMap(); | Map<String,Object> messageData = new HashMap(); | ||
− | |||
List<String> measures = new ArrayList(); | List<String> measures = new ArrayList(); | ||
measures.add("core:17"); | measures.add("core:17"); | ||
− | |||
messageData.put("measureIds", measures); | messageData.put("measureIds", measures); | ||
+ | final long beginning = 1449073961000; | ||
+ | final long ending = 1455073961000; | ||
+ | messageData.put("beginning", beginning); | ||
+ | messageData.put("ending", ending); | ||
{{Json_Auth_Block_-_User_-_Java}} | {{Json_Auth_Block_-_User_-_Java}} | ||
− | |||
return messageData; | return messageData; | ||
} | } |
Latest revision as of 11:43, 2 December 2015
private Map<String,Object> BuildMessage() throws Exception { Map<String,Object> messageData = new HashMap(); List<String> measures = new ArrayList(); measures.add("core:17"); messageData.put("measureIds", measures); final long beginning = 1449073961000; final long ending = 1455073961000; messageData.put("beginning", beginning); messageData.put("ending", ending); 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); return messageData; }