Last active
November 4, 2018 09:23
-
-
Save imrankst1221/2a4f2bbd8dafa10170978fef2ebe4211 to your computer and use it in GitHub Desktop.
Get request with link query
This file contains hidden or 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
interface UserApiService { | |
@Headers("Content-Type: application/json") | |
@GET("user") | |
fun getUser( | |
@Query("Authorization") authorizationKey: String, // authentication header | |
@Query("UserID") userID: String | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment