feat(x): add 28 new X API v2 tool integrations and expand OAuth scopes#3365
Merged
waleedlatif1 merged 11 commits intostagingfrom Feb 27, 2026
Merged
feat(x): add 28 new X API v2 tool integrations and expand OAuth scopes#3365waleedlatif1 merged 11 commits intostagingfrom
waleedlatif1 merged 11 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryThis PR significantly expands X (Twitter) API integration by adding 28 new tools covering tweets, bookmarks, engagement (likes/retweets), user relationships (follow/block/mute), trends, and usage monitoring. All tools follow a consistent implementation pattern with proper error handling, logging, and type safety. Key Changes:
Code Quality:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User Selects X Block Operation] --> B{Operation Type}
B -->|Tweet Ops| C[create_tweet/delete_tweet/search_tweets]
B -->|Bookmarks| D[get_bookmarks/create_bookmark/delete_bookmark]
B -->|Engagement| E[manage_like/manage_retweet]
B -->|Social| F[manage_follow/manage_block/manage_mute]
B -->|Timeline| G[get_user_tweets/mentions/timeline]
B -->|Trends| H[get_trends_by_woeid/personalized_trends]
B -->|Analytics| I[get_usage]
C --> J[Build Request with Params]
D --> J
E --> J
F --> J
G --> J
H --> J
I --> J
J --> K[Add OAuth Token from Credential]
K --> L[Execute X API v2 Request]
L --> M{Response Status}
M -->|Success| N[Transform Response snake_case to camelCase]
M -->|Error| O[Log Error with Logger]
N --> P[Return Typed Output]
O --> Q[Return Error with Empty Output]
style L fill:#1DA1F2
style N fill:#90EE90
style O fill:#FFB6C1
Last reviewed commit: 95fbcb2 |
…alized_trends, and usage tools
…tweets and get_quote_tweets
…nch and includes to XTweetListResponse
Collaborator
Author
|
@cursor review |
Collaborator
Author
|
@greptile |
Collaborator
Author
|
@greptile |
Collaborator
Author
|
@cursor review |
1 similar comment
Collaborator
Author
|
@cursor review |
Collaborator
Author
|
@greptile |
Collaborator
Author
|
@greptile |
Collaborator
Author
|
@cursor review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist