Skip to content

Coaktion/zendesk-clients-react

Repository files navigation

Zendesk Clients React

test workflow stale workflow Release Draft workflow

API client for ZENDESK applications

Installation

npm install @coaktion/zendesk-clients-react

Generate docs

npm run generate-docs

Usage

import {
  ZendeskTicketsClient,
  ZendeskUsersClient
} from '@coaktion/zendesk-clients-react';
import ZAFClient from 'zendesk_app_framework_sdk';

const zafClient = ZAFClient.init();
const ticketClient = new ZendeskTicketsClient(zafClient);
const userClient = new ZendeskUsersClient(zafClient);

ticketClient.getTicket('123456').then((ticket) => {
  console.log(ticket);
});

userClient.getUser('123456').then((user) => {
  console.log(user);
});

Contributing

See CONTRIBUTING.md for details.

License

Client Core is Copyright.