🐥

twitter

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-jsonstring)
delete-tweet(args-jsonstring)
get-tweet(args-jsonstring)
search-tweets(args-jsonstring)
get-user(args-jsonstring)
get-me(args-jsonstring)
get-timeline(args-jsonstring)
get-mentions(args-jsonstring)
get-my-timeline(args-jsonstring)
get-my-mentions(args-jsonstring)
like-tweet(args-jsonstring)
unlike-tweet(args-jsonstring)
retweet(args-jsonstring)
unretweet(args-jsonstring)
follow-user(args-jsonstring)
unfollow-user(args-jsonstring)
get-followers(args-jsonstring)
get-following(args-jsonstring)
send-dm(args-jsonstring)
get-dm-events(args-jsonstring)
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