Zendesk

API

Update Ticket

Outside

const resp = await axios.get(`${domain}/api/v2/users/${user_id}.json`, {
  headers: { Authorization: `Bearer ${access_token}` },
});

Inside the client

$.ajax({ url: '/api/v2/tickets/5.json', type: "PUT", contentType: 'application/json', data: JSON.stringify({"ticket": {"status": "pending"}})})

App

Setup

gem install rake
gem install zendesk_apps_tools
zat new #creates start files

Go to any live zendesk website and add to the url ?zat=true

Usage

Start in the folder you want and should have built react app or whatever in the asset folder

Client

.html

.js

Secure Auth

Using Bearer

Last updated