question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Application-only ('bearer') authentication for higher quota limits

See 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):

image

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 Twitter4J.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Shastickcommented, Apr 10, 2022

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 ! 😃)

1reaction
DanielaSfregolacommented, Mar 20, 2019

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?

Cheers, Daniela

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hack to make twitter4s support Application-only ('bearer ...
Hack to make twitter4s support Application-only ('bearer') authentication for higher quota limits - AppOnlyAuthentication.scala.
Read more >
OAuth Application Rate Limits - Google Support
A new user authorization rate limit that limits how quickly your application can get ... You can request a rate limit quota increase...
Read more >
Rate limits | Docs | Twitter Developer Platform
Rate limits and authentication method. Rate limits are set at both the developer App and the user access token levels: OAuth 2.0 Bearer...
Read more >
Quotas for your Application Load Balancers
Your AWS account has default quotas, formerly referred to as limits, for each AWS service. Unless otherwise noted, each quota is Region-specific.
Read more >
Application Security Verification Standard 4.0
Level 3 - High value, high assurance, or high safety . ... V2.10 Service Authentication Requirements .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found