Difference between revisions of "Template:Json ProviderDirectorySearch 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("searchTerms","test"); ...")
 

Latest revision as of 13:25, 25 February 2015

   private Map<String,Object> BuildMessage() throws Exception
   {
       Map<String,Object> messageData = new HashMap();
       messageData.put("searchTerms","test");
       messageData.put("startIndex","0");
       messageData.put("resultQuantity","50");
 
       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;
   }