title: Java - Getting a list of contacts using Infusionsofts API
body: <p>I'm using Java and Infusionsofts API to get a list of contacts based on the customer id. I can't figure out a way to do this. I'm using Googles Guava to use multimap but it's producing an error:<br><br>
  org.apache.xmlrpc.common.XmlRpcExtensionException: Serializable objects aren't supported, if isEnabledForExtensions() == false<br><br>
  So now i'm trying hashmap and i'm inserting "Id" as the key and the customer id as the value but there's always one entry in the hashmap.<br><br>
  How can I add to the parameters variable a map that contains:<br>
  ["Id",11111]<br>
  ["Id",22322]<br>
  ["Id",44444]<br><br></p>
  
  <pre><code>    List parameters = new ArrayList();
      parameters.add(APP_ID);
      parameters.add(TABLE_NAME); 
      parameters.add(LIMIT);
      parameters.add(pageNumber);
  
      HashMap&lt;String, Integer&gt; map = new HashMap&lt;String, Integer&gt;();
      for(int customerId : customerIds){
          map.put("Id", customerId);
      }
      //PROBLEM IS HERE
      parameters.add(map);
      //THIS IS THE PROBLEM, I NEED TO ADD ["Id", customerId] multiple
      //times with the customerId being different but since there's a hashmap
      //There's always 1 entry in the map
  
  
      String[] fields = {"Email","FirstName"};
      parameters.add(fields);
  
  
      Object[] contacts = null;
      try{
          contacts = ( Object [] ) client.execute("DataService.query",parameters);
      }catch(XmlRpcException e){
          e.printStackTrace();
      }
  
      for (int i = 0; i &lt; contacts.length; i++) {
          Map contact = (Map) contacts[i];
          System.out.println(contact+"\n\n");
      }
  </code></pre>