zendesk-messaging-client
v1.0.0
Published
Zendesk messaging API client
Maintainers
Readme
Zendesk messaging Client
Zendesk Messaging typescript API client.
Missing something? Create feature request!
Read documentation 📘 or API reference 📕
Installation
Install with NPM/yarn:
# NPM
npm install zendesk-messaging-client
# Yarn
yarn add zendesk-messaging-clientUsage
import { createClient, Sdk } from 'zendesk-messaging-client'
const appId = 'xxx'
const keyId = 'app_xxx'
const secretLey = 'xxxxx'
const client = createClient({
subdomain: 'subdomain', // https://<subdomain>.zendesk.com/sc
auth: `${keyId}:${secretLey}`,
})
const { conversation } = await Sdk.getConversation({
client,
path: {
appId,
conversationId: '685xxx',
},
}).then((v) => v.data)