
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@robinpath/twitter
Advanced tools
Twitter/X module for RobinPath.
The twitter module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
npm install @robinpath/twitter
1. Set up credentials
twitter.setToken "AAAA...your-bearer-token"
2. Create a new tweet
twitter.createTweet "Hello from RobinPath!"
| Function | Description |
|---|---|
twitter.setToken | Store a Bearer token for X/Twitter API v2 authentication |
twitter.createTweet | Create a new tweet |
twitter.deleteTweet | Delete a tweet by ID |
twitter.getTweet | Get a single tweet by ID with optional expansions and fields |
twitter.getTweets | Get multiple tweets by IDs |
twitter.getUserTimeline | Get tweets from a user's timeline |
twitter.getMentions | Get tweets mentioning a user |
twitter.searchRecent | Search recent tweets (last 7 days) with a query |
twitter.getUser | Get a user by username |
twitter.getUserById | Get a user by their ID |
twitter.getMe | Get the authenticated user's profile |
twitter.getFollowers | Get followers of a user |
twitter.getFollowing | Get users that a user is following |
twitter.follow | Follow a user (uses authenticated user as source) |
twitter.unfollow | Unfollow a user |
twitter.like | Like a tweet (uses authenticated user) |
twitter.unlike | Unlike a tweet (uses authenticated user) |
twitter.getLikedTweets | Get tweets liked by a user |
twitter.retweet | Retweet a tweet (uses authenticated user) |
twitter.unretweet | Undo a retweet (uses authenticated user) |
twitter.getRetweeters | Get users who retweeted a tweet |
twitter.bookmark | Bookmark a tweet (uses authenticated user) |
twitter.removeBookmark | Remove a bookmarked tweet (uses authenticated user) |
twitter.getBookmarks | Get the authenticated user's bookmarked tweets |
twitter.createList | Create a new list |
twitter.deleteList | Delete a list |
twitter.addListMember | Add a user to a list |
twitter.removeListMember | Remove a user from a list |
twitter.getListTweets | Get tweets from a list |
twitter.sendDm | Send a direct message to a user |
twitter.getDmEvents | Get direct message events |
twitter.createTweet "Hello from RobinPath!"
twitter.deleteTweet "1234567890"
twitter.getTweet "1234567890" {"tweet.fields": "created_at,public_metrics"}
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/twitter";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
twitter.setToken "AAAA...your-bearer-token"
twitter.createTweet "Hello from RobinPath!"
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/facebook — Facebook module for complementary functionality@robinpath/instagram — Instagram module for complementary functionality@robinpath/linkedin — LinkedIn module for complementary functionality@robinpath/tiktok — TikTok module for complementary functionality@robinpath/pinterest — Pinterest module for complementary functionalityMIT
FAQs
X (Twitter) v2 API integration — post and delete tweets, search, look up users, follow/unfollow. Uses the encrypted credential vault for OAuth 2.0 user-context access tokens.
The npm package @robinpath/twitter receives a total of 13 weekly downloads. As such, @robinpath/twitter popularity was classified as not popular.
We found that @robinpath/twitter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.