Support for Application-only ('bearer') authentication for higher quota limitsSee original GitHub issue
The Twitter API offers applications the ability to issue authenticated requests on behalf of the application itself (as opposed to on behalf of a specific user) - these requests are authenticated using bearer tokens and often have much higher API quota limits (eg on the search tweets endpoint you get 450, rather than 180, requests per 15 minute window):
twitter4s is an excellent library, although unfortunately it currently only supports user-auth so far as I can see - would it be possible to add app-auth for increased API quota?
See also: the PR adding application-only authentication to
- Created 5 years ago
- Comments:11 (8 by maintainers)
Top GitHub Comments
As an FYI: the workardoung still works like a charm. Just create the file from the gist (under the correct package) and this will get you going:
val restClient = new AppOnlyAuthentication.TwitterRestClient(ConsumerToken(key = consumerTokenKey, secret = consumerTokenSecret))
(Thanks for this library @DanielaSfregola ! 😃)
At present there is no way to pass a
TwitterAuthenticationClient to a
TwitterRestClient – and I am going to assume that implementing the missing functionalities for
TwitterAuthenticationClient is going to take a while.
Happy to do a patch and make those constructors public again. Would this work?