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
import json | |
# Customize these four lines for your Zendesk environment | |
zd_subdomain = 'subdomain' # the portion before .zendesk.com | |
zd_user = '[email protected]/token' # Your email address | |
zd_token = 'adbjhsabfjhbwshfubwhjsfbnsqjfcn' # Your API token | |
zd_incident_field = 123456789 # Replace this with the ID of the custom ticket field you're using to store the incident count | |
zd_headers = {'content-type': 'application/json'} |
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
$(document).ready(function() { | |
if(HelpCenter.user.role === "anonymous") { | |
window.location.replace("/access/unauthenticated?return_to=" + encodeURIComponent(window.location.pathname) + "&theme=hc"); | |
} | |
} |
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
<?php | |
$to = ''; //Whatever email you want | |
$subject = 'Test Target'; | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') | |
{ | |
$message = "POST: \n"; | |
foreach($_POST as $key=>$value) | |
{ |
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
<? | |
/* | |
* Remote authentication stub for PHP | |
* | |
* This is meant as a template for your own customization. You can identify the user anyway you like, | |
* integrate it into your intranet, web app or similar. | |
* | |
* You may call this script directly or have Zendesk redirect to it using the | |
* Remote Authentication URL. | |
* |
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
/* This function runs when the spreadsheet is opened and populates a menu option | |
labelled Zendesk that contains two options (7 days and 30 days) which are tied | |
to the listed functions | |
*/ | |
function onOpen() { | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var entries = [{ | |
name : "Pull Satisfaction Data (last 7 days, rolling)", | |
functionName : "getSatisfactionDataLast7" |
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
<?php | |
/********************************************************************************* | |
** This waits for the Zendesk Schedule report call and then downloads the ** | |
** file your Local server for you to act on with other functions or programs ** | |
*********************************************************************************/ | |
$xmlDoc = new DOMDocument(); | |
//Reads the POST from Zendesk |