Skip to content

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

Package listing

@kody/intercom

src/get-article.ts

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

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