Skip to content

Instantly share code, notes, and snippets.

@derohimat
Last active April 9, 2016 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derohimat/ee2e50416583e49a404b46fc482ac56e to your computer and use it in GitHub Desktop.
Save derohimat/ee2e50416583e49a404b46fc482ac56e to your computer and use it in GitHub Desktop.
Gist Simple Service Sunshine
public final class SimpleService {
public static final String API_URL = "http://api.openweathermap.org/data/2.5/forecast/";
public interface OpenWeatherMap {
@GET("daily?mode=json")
Call<ApiResponse> getWeather(
@Query("q") String city,
@Query("units") String units,
@Query("cnt") int count,
@Query("appid") String repo);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment