twitter-api-client
twitter-api-client copied to clipboard
Add v2 endpoints in tweets and users groups
What does this pull request introduce? Please describe
This pull request introduces two additional v2 endpoints:
- User Tweet timeline endpoint which returns the most recent Tweets composed by a specified user ID.
- A user lookup that returns information about an authorized user.
It also includes a few small tweaks to the contrib guide to make the instructions more accurate.
How did you verify that your changes work as expected? Please describe
I followed the instructions for manual testing in the contrib guide. Namely, I created a new node project locally, installed my version of the client, and then consumed it.
Example
Please describe how we can try out your changes
- Create a new node project
- Install this version of the client
- Supply the client your Twitter developer credentials
- Use the
users.usersMe
endpoint to retrieve your authenticated user's id string. - Pass that id string to the
timelines.usersIdTweets
endpoint. - Log the results to the console.
Screenshots
In this screenshot, you can see the two new endpoints as well as the data they returned printed in the console:
Screenshot of existing unit tests passing:
Version
1.5.2
PR Checklist Please verify that you:
- [x] Ran all unit tests, and they are passing
- [x] Wrote new unit tests if appropriate
- [x] Installed the client locally and tested it manually
- [x] Updated the version in
package.json
Those merge conflicts should be resolved now. PR updated to merge conflict resolution branch.
@SimonHoiberg the requested changes should be in this PR now.
Awesome! Thank you. Please resolve conflicts 😊
Resolved conflicts @SimonHoiberg 👯