Difference between revisions of "Template:Json MessageMark Block - Java"

From Updox API
Jump to: navigation, search
(Created page with " private Map<String,Object> BuildMessage() throws Exception { Map<String,Object> messageData = new HashMap(); messageData.put("messageId",(long)177985);...")
 
 
Line 4: Line 4:
 
         messageData.put("messageId",(long)177985);
 
         messageData.put("messageId",(long)177985);
 
         messageData.put("read", true);
 
         messageData.put("read", true);
 
 
         Map<String,String> authData = new HashMap();
 
         Map<String,String> authData = new HashMap();
 
         authData.put("applicationId", "updox");
 
         authData.put("applicationId", "updox");
Line 11: Line 10:
 
         authData.put("userId", "updox_user");
 
         authData.put("userId", "updox_user");
 
         messageData.put("auth", authData);
 
         messageData.put("auth", authData);
 
 
         return messageData;
 
         return messageData;
 
     }
 
     }

Latest revision as of 14:31, 3 December 2013

   private Map<String,Object> BuildMessage() throws Exception
   {
       Map<String,Object> messageData = new HashMap();
       messageData.put("messageId",(long)177985);
       messageData.put("read", 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;
   }