I want to sent a simple POST request with one actual parameter:
@POST(\"/token\") @FormUrlEncoded void extendSession(@Field(\"refresh_token\")final String refres
Instead of a String, your interface could accept a GrantType object which has factory methods for different grant_types. These factory methods would set the client_id, client_secret, and grant_type fields.
String
GrantType
grant_type
client_id
client_secret
@POST("/oauth/token") Call extendSession(@Body GrantType grantType);