This file contains hidden or 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
module ZendeskAPI::Middleware::Request::RetryExtension | |
def call(env) | |
super | |
rescue Errno::ETIMEDOUT, Timout::Error, Net::HTTPBadGateway => err | |
retry | |
end | |
end | |
class ZendeskAPI::Middleware::Request::Retry | |
prepend ZendeskAPI::Middleware::Request::RetryExtension |
This file contains hidden or 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
<div id="case_salesforce_section"> | |
{{widget.salesforce.body}} | |
</div> |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Desk.com Multipass | |
* Plugin URI: https://github.com/tstachl/wp-desk_multipass | |
* Description: A WordPress plugin to add a menu option that redirects to your Desk.com Support Site. | |
* Version: 1.0.0 | |
* Author: Thomas Stachl | |
* Author URI: https://github.com/tstachl | |
* License: BSD 3-Clause License | |
*/ |
This file contains hidden or 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
<!-- different web themes --> | |
<div id="company-support-portal"> | |
<div id="company-header"> | |
<div class="wrapper"> | |
{{ desk.page.theme.header_content }} | |
<div id="customer-account"> | |
{% if current_user and current_user.is_guest == false %} | |
<span> | |
{{system.snippets.welcome}} {{ current_user.customer.name }} |
This file contains hidden or 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
using System; | |
using System.Text; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using Newtonsoft.Json.Linq; | |
namespace DeskApiExample | |
{ | |
class MainClass |
This file contains hidden or 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
<h2>{{email.subject}}</h2> | |
{% if email.subject contains 'Suggestion' %} | |
<h3>This is a suggestion</h3> | |
{% else %} | |
<h3>This is default</h3> | |
{% endif %} |
This file contains hidden or 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
{% if case.group.name == 'Support' %} | |
<!-- put the case theme for support here --> | |
{% elsif case.group.name == 'Internal' %} | |
<!-- put the case theme for internal here --> | |
{% else %} | |
<!-- put the case theme for default here --> | |
{% endif %} |
This file contains hidden or 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
{ | |
"type": "email", | |
"subject": "Email Case Subject", | |
"priority": 4, | |
"status": "open", | |
"labels": [ | |
"Spam", | |
"Ignore" | |
], | |
"message": { |
This file contains hidden or 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
<div class='input-block'> | |
<span class='label'> | |
CUSTOM FIELD LABEL <span>({{system.snippets.required}})</span> | |
</span> | |
<div> | |
{{ ticket_custom_**CUSTOM FIELD KEY** }} | |
</div> | |
</div> |
This file contains hidden or 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 | |
$date = new DateTime('2015-01-21T20:34:53Z'); | |
$date->setTimezone(new DateTimeZone('Pacific/Chatham')); | |
echo $date->format(DateTime::ISO8601); |