Created
April 30, 2018 09:15
-
-
Save marcelpinto/3df09f7176b3a6a4aa2842adf55a745e to your computer and use it in GitHub Desktop.
WeatherExample https://github.com/skimarxall/WeatherExample/blob/master/app/src/main/java/com/here/example/weather/WeatherApi.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.here.example.weather | |
import retrofit2.Call | |
import retrofit2.http.GET | |
import retrofit2.http.Query | |
interface WeatherApi { | |
@GET("/weather/1.0/report.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}") | |
fun getObservations(@Query("product") product: String, | |
@Query("latitude") latitude: Double, | |
@Query("longitude") longitude: Double, | |
@Query("oneobservation") single: Boolean | |
): Call<WeatherObservation> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment