Skip to content

Instantly share code, notes, and snippets.

@manoelstilpen
Created April 21, 2019 03:37
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 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