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