Passing dynamic value to url using retrofit
<p>I am trying to make a simple weather app using retrofit library. I want the city name to be dynamic. This is what i have done so far:</p>

<p>full url:</p>

<pre><code>    http://api.openweathermap.org/data/2.5/forecast/daily?q=dhaka&amp;cnt=7&amp;appid=1111
</code></pre>

<p>base url:</p>

<pre><code>    http://api.openweathermap.org/
</code></pre>

<p>in the main activity</p>

<pre><code>    LinkedHashMap&lt;String,String&gt;data=new LinkedHashMap&lt;&gt;();
    data.put("q",targetCity);
    data.put("cnt",Integer.toString(7));
    data.put("appid",getString(R.string.api_key));
    Call&lt;WeatherResponse&gt;weatherResponseCall=weatherServiceApi.getAllWeatherReport(data);
</code></pre>

<p>and in my api interface:</p>

<pre><code>    @GET("data/2.5/forecast/daily?")
Call&lt;WeatherResponse&gt;getAllWeatherReport(@QueryMap LinkedHashMap&lt;String,String&gt;data);
</code></pre>

<p>I am neither getting any error, nor any response data.
Please help.</p>