Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/x

src/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)
}