@kody/x
src/get-user-tweets.ts
12 lines · 437 B · TypeScriptimport { 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)
}