← Public packages
@kody/zendesk
Call Zendesk tickets, users, and Help Center articles through OAuth or an API token.
Files
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))
}