Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard API rate limits per app #332

Open
mp1714 opened this issue Jan 7, 2020 · 0 comments
Open

Standard API rate limits per app #332

mp1714 opened this issue Jan 7, 2020 · 0 comments

Comments

@mp1714
Copy link

mp1714 commented Jan 7, 2020

I have an app that performs actions on behalf of users through the 3-legged OAuth process. I have around 40 users that use my app.
Regarding the official Twitter docs: https://developer.twitter.com/en/docs/basics/rate-limits a user can make 400 friendships/day whereas an app can make 1000.

The problem I have is that when I reach overall 400 from all the users I receive an error. So, at the end of the day, my users can only make around 10 friendships/day, instead of 400.

Does anyone know if I'm doing something wrong?

This is how I create the users:

const user1 = new Twitter({
  consumer_key: process.env.MY_APP_CONSUMER_KEY,
  consumer_secret: process.env.MY_APP_CONSUMER_SECRET,
  access_token_key: process.env.MY_USER_ACCESS_TOKEN_KEY, (generated via OAuth)
  access_token_secret: process.env.MY_USER_ACCESS_TOKEN_SECRET (generated via OAuth)
});

Any help would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant