← Public packages
@kody/x
Look up X users and tweets, search recent posts, and preview guarded posts through saved OAuth.
Files
import { getMe } from './client.ts'
import type { XGetMeParams } from './client.ts'
/**
* Read the authenticated X user (GET /users/me).
* Pass `account: '<purpose>'` for integration `x-<purpose>`.
* @example
* import getMe from 'kody:@kody/x/get-me'
* const me = await getMe()
*/
export default async function getMeEntrypoint(params: XGetMeParams = {}) {
return await getMe(params)
}