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

get-tweet.ts

12 lines · 366 B · TypeScript
import { getTweet } from './client.ts'
import type { XGetTweetParams } from './client.ts'

/**
 * Read one tweet by id (GET /tweets/:id).
 * @example
 * import getTweet from 'kody:@kody/x/get-tweet'
 * const tweet = await getTweet({ id: '1234567890' })
 */
export default async function getTweetEntrypoint(params: XGetTweetParams) {
	return await getTweet(params)
}