- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Twitter.IHttpClient
public class BearerAuthHttpClient
extends URLConnectionHttpClient
For use with Twitter API methods which require application-level authentication via bearer token.
https://developer.twitter.com/en/docs/basics/authentication/api-reference/token.html
Use the application key and secret to request a bearer token from https://api.twitter.com/oauth2/token
(or use a previously cached token).
Call setBearerToken(String) before use, and call GET/POST/DELETE methods with arg "authentication" == true.
- See Also:
- Serialized Form