title: Pass multiple values to single parameter retrofit2
body: <p>I'm trying to pass multiple Values to a SINGLE parameter for example : </p>
  
  <p><a href="http://api.giphy.com/v1/gifs?api_key=dc6zaTOxFJmzC&amp;ids=feqkVgjJpYtjy,7rzbxdu0ZEXLy" rel="nofollow">http://api.giphy.com/v1/gifs?api_key=dc6zaTOxFJmzC&amp;ids=feqkVgjJpYtjy,7rzbxdu0ZEXLy</a></p>
  
  <p>I tried the following : </p>
  
  <pre><code> @GET("gifs")
      Call&lt;GIFModelMain&gt; getGifsByID(@Field("ids")ArrayList&lt;String&gt; values, @Query("api_key") String API_KEY);
  </code></pre>
  
  <p>In my activity : </p>
  
  <pre><code>ArrayList&lt;String&gt; x = new ArrayList&lt;&gt;();
          x.add("feqkVgjJpYtjy");
          x.add("7rzbxdu0ZEXLy");
          gifCall = interf.getGifsByID(x, BuildConfig.GIPHY_API_TOKEN);
  </code></pre>
  
  <p>But the built URL is of form:</p>
  
  <p><a href="http://api.giphy.com/v1/gifsids=feqkVgjJpYtjy&amp;ids=7rzbxdu0ZEXLy&amp;api_key=API_KEY_BLANK" rel="nofollow">http://api.giphy.com/v1/gifsids=feqkVgjJpYtjy&amp;ids=7rzbxdu0ZEXLy&amp;api_key=API_KEY_BLANK</a></p>
  
  <p>I looked up similar questions but found no correct answer.</p>
  
  <p>EDIT: As per what TooManyEduardos said i changed my Interface to </p>
  
  <pre><code>@GET("gifs")
      Call&lt;GIFModelMain&gt; getGifsByID(@QueryMap Map&lt;String, String&gt; parameters,@Query("api_key") String API_KEY);
  </code></pre>
  
  <p>And my activity is now : </p>
  
  <pre><code>Map&lt;String,String&gt; map = new HashMap&lt;&gt;();
          map.put("ids","feqkVgjJpYtjy");
          map.put("ids","7rzbxdu0ZEXLy");
  
          gifCall = interf.getGifsByID(map, BuildConfig.GIPHY_API_TOKEN);
  </code></pre>
  
  <p>But the built URL is still :
  03-30 02:46:23.922: E/FavActivity(21607): Url : api.giphy.com/v1/gifs?ids=7rzbxdu0ZEXLy&amp;api_key=KEY_HERE</p>