Template:Json MessageListSince Block - Java

From Updox API
Revision as of 14:49, 3 December 2013 by Frank (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();
       messageData.put("dateSince","2013-03-19");
       messageData.put("dateTo", "2013-03-20");
       messageData.put("start","0");
       messageData.put("count","2");
       messageData.put("location","I");
       messageData.put("listUnreadOnly","true");
       Map<String,String> authData = new HashMap();
       authData.put("applicationId", "updox");
       authData.put("applicationPassword", "password");
       authData.put("accountId", "updox_acct");
       authData.put("userId", "updox_user");
       messageData.put("auth", authData);
       return messageData;
   }