twitter-api-client icon indicating copy to clipboard operation
twitter-api-client copied to clipboard

Add v2 endpoints in tweets and users groups

Open An-dy1 opened this issue 2 years ago • 4 comments

What does this pull request introduce? Please describe
This pull request introduces two additional v2 endpoints:

  1. User Tweet timeline endpoint which returns the most recent Tweets composed by a specified user ID.
  2. 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

  1. Create a new node project
  2. Install this version of the client
  3. Supply the client your Twitter developer credentials
  4. Use the users.usersMe endpoint to retrieve your authenticated user's id string.
  5. Pass that id string to the timelines.usersIdTweets endpoint.
  6. 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:

Screen Shot 2022-01-15 at 4 16 06 PM

Screenshot of existing unit tests passing:

Screen Shot 2022-01-15 at 4 14 31 PM

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

An-dy1 avatar Jan 26 '22 18:01 An-dy1

Those merge conflicts should be resolved now. PR updated to merge conflict resolution branch.

An-dy1 avatar Feb 22 '22 02:02 An-dy1

@SimonHoiberg the requested changes should be in this PR now.

An-dy1 avatar Mar 10 '22 14:03 An-dy1

Awesome! Thank you. Please resolve conflicts 😊

SimonHoiberg avatar Jul 20 '22 05:07 SimonHoiberg

Resolved conflicts @SimonHoiberg 👯

An-dy1 avatar Jul 30 '22 20:07 An-dy1