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
function init() { | |
// reset page | |
document.getElementById('error-msg').style.display = "none"; | |
document.getElementById('details').style.display = "none"; | |
var url = window.location.href; | |
if (url.indexOf('your_redirect_url') !== -1) { | |
if (url.indexOf('access_token=') !== -1) { | |
var access_token = readUrlParam(url, 'access_token'); | |
localStorage.setItem('zauth', access_token); |
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 pickle | |
import time | |
import requests | |
credentials = 'your_zendesk_email', 'your_zendesk_password' | |
session = requests.Session() | |
session.auth = credentials | |
zendesk = 'your_zendesk_url' | |
topic_id = 123456 |
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 requests | |
credentials = 'your_zendesk_email', 'your_zendesk_password' | |
zendesk = 'https://your_subdomain.zendesk.com' | |
language = 'some_locale' | |
section_id = 123456 | |
# Configure the list section articles endpoint | |
endpoint = zendesk + '/api/v2/help_center/{}/sections/{}/articles.json'.format(language, section_id) |
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
$(function() { | |
var client = ZAFClient.init(); | |
client.invoke('resize', {width: '100%', height: '400px'}); | |
showStart(); | |
$("#check-token").click(function (event) { | |
event.preventDefault(); | |
client.invoke('notify', 'Authenticating...'); |
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 os | |
from urllib.parse import urlencode | |
import requests | |
from bottle import route, redirect, request, response, template, run | |
@route('/auth/asana') | |
def asana_auth(): | |
params = { |
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
<html> | |
<head> | |
<link href="https://cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="main.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="content"></div> | |
<script id="start-hdbs" type="text/x-handlebars-template"> |
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 os | |
import glob | |
import json | |
import requests | |
from bs4 import BeautifulSoup, Comment | |
def main(): | |
subdomain = 'your_subdomain' # setting | |
email = 'your_email' # setting |
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 os | |
import glob | |
import json | |
import requests | |
from bs4 import BeautifulSoup, Comment | |
def main(): | |
subdomain = 'your_subdomain' # setting | |
email = 'your_email' # setting |
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 os | |
import requests | |
from bs4 import BeautifulSoup | |
# Settings | |
credentials = 'your_zendesk_email', 'your_zendesk_password' | |
zendesk = 'https://your_instance.zendesk.com' | |
backup_folder = '20xx-xx-xx' |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Storable; | |
use Excel::Writer::XLSX; | |
my $topic_hash_ref = retrieve('my_serialized_data'); | |
my %topic_data = %{ $topic_hash_ref }; | |
my $workbook = Excel::Writer::XLSX->new( 'topic_posts.xlsx' ); |