Skip to content

Instantly share code, notes, and snippets.

@manoelstilpen
Created April 21, 2019 03:37
Show Gist options
  • Save manoelstilpen/567d2efebabd20aa1c48150344f5d41f to your computer and use it in GitHub Desktop.
Save manoelstilpen/567d2efebabd20aa1c48150344f5d41f to your computer and use it in GitHub Desktop.
Retrofit Interface Twitter API
public interface TwitterAuthAPI {
@Headers({"content-type: application/x-www-form-urlencoded"})
@POST("oauth2/token?grant_type=client_credentials")
Call<BearerCredential> getBearerToken(@Header("authorization") String authorization);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment