Skip to content
← Public packages

@kody/x

Look up X users and tweets, search recent posts, and preview guarded posts through saved OAuth.

FollowFork

Files

bookmark-tweet.ts

12 lines · 443 B · TypeScript
import { bookmarkTweet } from './client.ts'
import type { XTweetActionParams } from './client.ts'

/**
 * Bookmark or dry-run bookmarking an X post. Requires confirm: true.
 * @example
 * import bookmarkTweet from 'kody:@kody/x/bookmark-tweet'
 * const preview = await bookmarkTweet({ tweetId: '123', dryRun: true })
 */
export default async function bookmarkTweetEntrypoint(params: XTweetActionParams) {
	return await bookmarkTweet(params)
}