🐥
seadog
Post, read, and engage on Twitter/X
v0.1.0
Public
Full Twitter/X API v2 integration with 20 functions covering tweets, timelines, search, engagement, follows, and DMs.
Functions:
- create-tweet: Post a tweet with optional reply, quote, poll, or media.
- delete-tweet: Delete one of your tweets by ID.
- get-tweet: Look up a tweet by ID with full metrics.
- search-tweets: Search recent tweets (7-day window) with operators like from:, #hashtag, -is:retweet.
- get-me: Get the authenticated user's profile and metrics.
- get-user: Look up any user by username.
- get-my-timeline: Get your own recent tweets - no user ID needed.
- get-my-mentions: Get tweets mentioning you - no user ID needed.
- get-timeline: Get any user's recent tweets by user ID.
- get-mentions: Get tweets mentioning any user by user ID.
- get-followers: List a user's followers.
- get-following: List who a user follows.
- like-tweet / unlike-tweet: Like or unlike a tweet.
- retweet / unretweet: Retweet or undo a retweet.
- follow-user / unfollow-user: Follow or unfollow a user.
- send-dm: Send a direct message to a user.
- get-dm-events: Retrieve recent DM conversation events.
Setup:
Full access (all 20 functions) - set all four OAuth 1.0a credentials:
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_TOKEN (requires Read and Write app permission)
- TWITTER_ACCESS_TOKEN_SECRET
Optional fallback for read-only access: TWITTER_BEARER_TOKEN
Usage:
- Use get-my-timeline and get-my-mentions for quick access to your own activity.
- search-tweets supports Twitter operators: from:user, to:user, #hashtag, -is:retweet, lang:en.
- create-tweet text is 1-280 characters
Interface
Exports
seadog:twitter/twitter@0.1.0
create-tweet(args-json: string)
delete-tweet(args-json: string)
get-tweet(args-json: string)
search-tweets(args-json: string)
get-user(args-json: string)
get-me(args-json: string)
get-timeline(args-json: string)
get-mentions(args-json: string)
get-my-timeline(args-json: string)
get-my-mentions(args-json: string)
like-tweet(args-json: string)
unlike-tweet(args-json: string)
retweet(args-json: string)
unretweet(args-json: string)
follow-user(args-json: string)
unfollow-user(args-json: string)
get-followers(args-json: string)
get-following(args-json: string)
send-dm(args-json: string)
get-dm-events(args-json: string)
Imports
wasi:io/poll@0.2.6
wasi:io/error@0.2.6
wasi:io/streams@0.2.6
wasi:http/types@0.2.4
wasi:http/outgoing-handler@0.2.4
wasi:cli/environment@0.2.6
wasi:cli/exit@0.2.6
wasi:cli/stderr@0.2.6
wasi:clocks/wall-clock@0.2.6