Skip to content

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

Package listing

@kody/zendesk

src/get-user.ts

11 lines · 341 B · TypeScript
import { getUser, parseGetUser } from './users.ts'

/**
 * Get one Zendesk user by id.
 * @example
 * import getUser from 'kody:@kody/zendesk/get-user'
 * const user = await getUser({ id, subdomain: 'acme' })
 */
export default async function getUserEntrypoint(params: Record<string, unknown> = {}) {
	return getUser(parseGetUser(params))
}