Skip to content

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

Package listing

@kody/zendesk

src/get-article.ts

11 lines · 386 B · TypeScript
import { getArticle, parseGetArticle } from './articles.ts'

/**
 * Get one Zendesk Help Center article by id.
 * @example
 * import getArticle from 'kody:@kody/zendesk/get-article'
 * const article = await getArticle({ id, subdomain: 'acme' })
 */
export default async function getArticleEntrypoint(params: Record<string, unknown> = {}) {
	return getArticle(parseGetArticle(params))
}