npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@androozka/zendesk-api-js

v2.0.3

Published

A JS library for interacting with the Zendesk API.

Downloads

128

Readme

@androozka/zendesk-api-js

npm Travis (.com) codecov David install size npm downloads Twitter Follow

A JS library for interacting with the Zendesk API.

Features

Note: Only v2 framework, v1 deprecated

Installing

# using npm
npm install @androozka/zendesk-api-js

# using yarn
yarn add @androozka/zendesk-api-js

Usage

Getting Started

const axios = require('axios'); // Suggested library
const zdApi = require('@androozka/zendesk-api-js');

Zendesk Info

const options = {
  instance: '', // Zendesk subdomain
  email: '', // User account to perform requests
  password: '', // Password for user account
  token: '' // Generated Zendesk token
};
/* Note: Either "password" or "token" is required */

Initalize

// Load entire library
const { support, sunshine } = zdApi.init(options);

// Load entire API
const { tickets, groups } = zdApi.support.init(options);

// Load specific endpoint
const { list, create } = zdApi.support.tickets(options);

Examples

Add tags to a ticket

try {
  const { tags } = zdApi.support.init(options);
  const data = { tags: ['tag_1', 'tag_2', ... ] }

  const req = tags.add({ type: 'tickets', id: 123, data });

  const res = await axios(req);
} catch (error) {
  // ...
}

API Coverage Status

Support API

Search, Users, End Users, Groups, Group Memberships, Custom Agent Roles, Organizations, Organization Subscriptions, Organization Memberships, Tickets, Ticket Import, Satisfaction Ratings, Satisfaction Reasons, Suspended Tickets, Ticket Audits, Ticket Comments, Ticket Skips, Ticket Metrics, Ticket Metric Events, Ticket Activities, Tags, Views, Automations, SLA Policies, Targets, Target Failures, Brands, Locales, Schedules, Sharing Agreements, Support Addresses, Ticket Forms, Ticket Fields, User Fields, Organization Fields, Job Statuses, Incremental Skill-based Routing, Workspaces, App Installation Locations, App Locations, Account Settings, Audit Logs, Bookmarks, Twitter Channel

Sunshine API

Custom Object Types, Custom Object Records, Relationship Types, Relationship Records, Custom Objects Events

Under Construction

Support

  • [ ] User Identities
  • [ ] User Passwords
  • [ ] Requests
  • [ ] Attachments
  • [ ] Sessions
  • [ ] Triggers
  • [ ] Macros
  • [ ] Dynamic Content
  • [ ] Skill-based Routing
  • [ ] Apps
  • [ ] OAuth Clients
  • [ ] OAuth Tokens
  • [ ] OAuth Tokens for Grant Types
  • [ ] Authorized Global Clients
  • [ ] Push Notification Devices
  • [ ] Resource Collections
  • [ ] Channel Framework

Sunshine

  • [ ] Jobs
  • [ ] Limits
  • [ ] Events
  • [ ] Profiles
  • [ ] People

APIs Up Next

  • Help Center API
  • Chat API
  • Talk API
  • Sell API
  • Answer Bot API
  • Status API
  • Reseller API
  • NPS API