← Public packages
@kentcdodds/x
X API v2 helpers for tweets, search, legacy DMs, and encrypted X Chat via a Fly XDK sidecar.
src/bookmark-post.ts
14 lines · 593 B · TypeScriptimport { bookmarkPost } from './client.ts'
import type { XPostActionParams } from './client.ts'
/**
* Bookmark or dry-run bookmarking an X post; requires confirm: true.
* @returns Bookmark result, or dry-run action payload.
* @example
* import bookmarkPost from 'kody:@kentcdodds/x/bookmark-post'
* const preview = await bookmarkPost({ postId: '123', dryRun: true })
* // => { dryRun: true, action: 'bookmark-post', requiresConfirm: true, payload: { ... } }
*/
export default async function bookmarkPostEntrypoint(params: XPostActionParams = {}) {
return await bookmarkPost(params)
}