← Public packages
@kody/x
Look up X users and tweets, search recent posts, and preview guarded posts through saved OAuth.
Files
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)
}