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

Why using /2/users/by/username/:username for getting user tweets #507

Open
bastienuh opened this issue May 4, 2022 · 0 comments
Open

Why using /2/users/by/username/:username for getting user tweets #507

bastienuh opened this issue May 4, 2022 · 0 comments

Comments

@bastienuh
Copy link

I created a question in the Twitter forum for a discordance between rate limit in the documentation and rate limit in the API. See here.

But here, my question is for you.

My code for getting tweets same as documentation :

$twitter_name = "elonmusk";
$twitter_user = $twitter->user($twitter_name)->tweets($params);

And the called API URL is : GET https://api.twitter.com/2/users/by/username/elonmusk
So why are you using GET /2/users/by/username/:username for getting a user tweet instead of GET /2/users/:id/tweets ?
I'm asking because maybe the discordance seen above is only for GET /2/users/by/username/:username and not for GET /2/users/:id/tweets.

Thanks for your feedback.

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