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
name: Notify Zendesk Guide Update to Slack | |
on: | |
schedule: | |
- cron: '*/60 * * * *' | |
jobs: | |
zendesk_guide_slack_job: | |
runs-on: ubuntu-latest | |
name: Zendesk Guide to Slack |
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
//feedback form help center | |
var articleVotesBtnsBlock = document.querySelector(".article-votes-btns-wrap"); | |
var articleVotesBtns = document.querySelectorAll(".js--article-votes-btn"); | |
var formYes = document.querySelector(".js--form-yes"); | |
var formNo = document.querySelector(".js--form-no"); | |
if(formNo) { | |
var radioBtns = document.querySelectorAll("input[type='radio'][name='feedback-selection']"); | |
var labvarextareaNo = formNo.querySelector(".article-votes-form-no-textarea-label"); | |
var btnSendYes = document.querySelector(".js--btn-send-yes"); |
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
.article-vote-down-explanation { | |
display: none; | |
} | |
.article-votes-form-yes { | |
display: none; | |
} | |
.article-votes-form-yes.visible { | |
display: block; |
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
<div class="article-votes"> | |
<div class="article-votes-title">Was this article helpful?</div> | |
<div class="article-votes-btns-wrap"> | |
<span class="article-votes-btn article-votes-btn-yes js--article-votes-btn" data-type="yes">Yes, thanks</span> | |
<span class="article-votes-btn article-votes-btn-no js--article-votes-btn" data-type="no">Not really</span> | |
</div> | |
<form class="article-votes-form-yes js--form-yes"> | |
<textarea class="article-votes-textarea"></textarea> | |
<label class="article-votes-textarea-label">What did you like about this article? (optional)</label> | |
<button class="article-votes-button js--btn-send-yes" type="submit">Submit feedback</button> |
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
<div class="article-votes"> | |
<span class="article-votes-question">{{t 'was_this_article_helpful'}}</span> | |
<div class="article-votes-controls" role='radiogroup'> | |
{{vote 'up' role='radio' class='button article-vote article-vote-up'}} | |
{{vote 'down' role='radio' class='button article-vote article-vote-down'}} | |
</div> | |
<small class="article-votes-count"> | |
{{vote 'label' class='article-vote-label'}} | |
</small> | |
</div> |
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
from atlassian import Confluence | |
import json | |
import sys | |
from fluent import sender | |
from fluent import event | |
def get_all_page_ids_from_space(space): | |
""" | |
:param space: |
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 | |
import pandas as pd | |
from pandas.io.json import json_normalize | |
import time | |
url = 'https://ZENDESKDOMAIN.zendesk.com/api/v2/audit_logs.json?sort_order=desc' | |
user = 'ZENDESK_EMAIL' + '/token' | |
pwd = 'ZENDESK_APIKEY' | |
session = requests.Session() |
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
@@ -112,12 +112,6 @@ | |
self._poll_interval = poll_interval | |
self._source = source | |
self._session_props = session_props if session_props is not None else {} | |
- self._headers = { | |
- 'X-Presto-Catalog': self._catalog, | |
- 'X-Presto-Schema': self._schema, | |
- 'X-Presto-Source': self._source, | |
- 'X-Presto-User': self._username, | |
- } |
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
in: | |
type: td | |
apikey: xxxxx | |
endpoint: api.treasuredata.com | |
database: zendesk | |
query: | | |
SELECT | |
id, -- Zendesk UserID | |
MAP_CONCAT( | |
MAP(ARRAY[cast('sfdc_company_name' AS VARCHAR)], ARRAY[cast(sfdc_company_name AS VARCHAR)]), |
NewerOlder