redouane59 / twittered

Twitter API client for Java developers
Apache License 2.0
236 stars 64 forks source link

Fix authorization for searchTweets/Add non recursive options for searchTweets and getUserTimeline #459

Open hemisphire opened 1 month ago

hemisphire commented 1 month ago
  1. Fix authorization for searchTweets

All searches now require OAuth2.0

  1. Add non recursive options for searchTweets and getUserTimeline

We have a use case where the user decides how many results they want, as a popular query can return more than the 10,000 monthly limit in Basic. Since the pagination token is available from TweetList.getMeta().getNextToken(), we can call additionalParameters.setPaginationToken(paginationToken).

hemisphire commented 1 month ago

And FYI, the only way I can currently get authorization working is to set

  1. apiKey
  2. apiSecretKey
  3. bearerToken
RedouaneBALI commented 1 month ago

Hello @hemisphire I'm sorry I just realized that I lost the access to my GitHub account @redouane59 because I changed my laptop + my smartphone last month. It is a mess because the Authenticator App code of my new phone is not accepted by GitHub because it was not registered before. I don't know if I will be able to recover it to validate the PR...

hemisphire commented 1 month ago

https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials

RedouaneBALI commented 1 month ago

https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials

Already checked it but that's not enough. I opened a ticket to GitHub Support this afternoon. Let's see what they say !