Skip to content

Instantly share code, notes, and snippets.

View geografa's full-sized avatar
🤓
Open to work

Rafa Gutierrez geografa

🤓
Open to work
View GitHub Profile
@geografa
geografa / newZDTicket.js
Created October 27, 2023 20:02
Create three new tickets using Node Zendesk and delete after 30 seconds
#!/usr/bin/env node
// this creates three temporary tickets and then deletes them after 30 seconds
const process = require('node:process');
const zd = require('node-zendesk');
const exampleConfig = require('./exampleConfig');
const client = zd.createClient({
username: process.env.ZENDESK_TEST_USERNAME || exampleConfig.auth.username,
token: process.env.ZENDESK_TEST_TOKEN || exampleConfig.auth.token,