Skip to content

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

Package listing

@kody/zendesk

src/get-ticket.ts

11 lines · 363 B · TypeScript
import { getTicket, parseGetTicket } from './tickets.ts'

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