Difference between revisions of "Template:Json DateRange Block - Java"
From Updox API
(Created page with " private Map<String,Object> BuildMessage() throws Exception { String dateFrom = "2015-12-11"; // required String dateTo = "2015-12-13"; // required f...") |
|||
Line 2: | Line 2: | ||
{ | { | ||
String dateFrom = "2015-12-11"; // required | String dateFrom = "2015-12-11"; // required | ||
− | String dateTo = "2015-12-13"; | + | String dateTo = "2015-12-13"; // required for date range |
Map<String,Object> messageData = new HashMap(); | Map<String,Object> messageData = new HashMap(); |
Revision as of 20:50, 11 December 2015
private Map<String,Object> BuildMessage() throws Exception { String dateFrom = "2015-12-11"; // required String dateTo = "2015-12-13"; // required for date range
Map<String,Object> messageData = new HashMap(); messageData.put("dateFrom", dateFrom); messageData.put("dateTo", dateTo); // required for date range Map<String,String> authData = new HashMap(); authData.put("applicationId", "vendorId"); authData.put("applicationPassword", "vendorPassword"); messageData.put("auth", authData); return messageData; }