Skip to content

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

Package listing

@kody/x

src/get-user-tweets.ts

12 lines · 437 B · TypeScript
import { getUserTweets } from './client.ts'
import type { XGetUserTweetsParams } from './client.ts'

/**
 * Read recent tweets for a user id (GET /users/:id/tweets).
 * @example
 * import getUserTweets from 'kody:@kody/x/get-user-tweets'
 * const tweets = await getUserTweets({ id: '783214', maxResults: 5 })
 */
export default async function getUserTweetsEntrypoint(params: XGetUserTweetsParams) {
	return await getUserTweets(params)
}