This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto') | |
// site name is your desk.com subdomain | |
, siteName = 'site_name' | |
// site url is your full custom url, like https://support.yourcompany.com | |
, siteUrl = 'site_url' | |
// api key is generated here: https://your_subdomain.desk.com/admin/channels/support-center/auth_settings | |
, apiKey = 'multipass_token' | |
, data = JSON.stringify({ | |
uid: '19238333', |