Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen

Mark Glinski
Beigetreten 16. Okt. 2021
·
Letzte Aktivität 20. Sept. 2023
Folge ich
0
Follower
0
Gesamtaktivitäten
36
Stimmen
0
Abonnements
14
AKTIVITÄTSÜBERSICHT
BADGES
BEITRÄGE
POSTS
COMMUNITY-KOMMENTARE
BEITRAGSKOMMENTARE
AKTIVITÄTSÜBERSICHT
Neueste Aktivität von Mark Glinski
Mark Glinski hat einen Kommentar hinterlassen
Also, Charles Nadeau, regarding your comment about using an OAuth header ^^ should I replace that header or just get rid of it?
Your comment for reference:
Also, an API token in Zendesk is different than an OAuth token. So the following header won't work:
headers = {
'Authorization': f'Bearer {api_token}',
}
Kommentar anzeigen · Gepostet 20. Sept. 2023 · Mark Glinski
0
Follower
0
Stimmen
0
Kommentare
Mark Glinski hat einen Kommentar hinterlassen
Thank you for the suggestions Nathan van Jole and Charles Nadeau!
So, now I'm no longer getting a 404. Now I'm getting different output after running the script:
First, there's a list of 30 article IDs from our KB.
Then there's a message:
Failed to retrieve articles with error 200: (which is weird because 200 is typically a "success" message)
...which is followed by a massive blob of text. I analyzed the text and it includes all the IDs in that list of 30.
Then, for each article ID, it shows some words from the article and some metadata.
And the backup folder that gets created by the script is empty.
Has anyone experienced this?
Kommentar anzeigen · Gepostet 20. Sept. 2023 · Mark Glinski
0
Follower
0
Stimmen
0
Kommentare
Mark Glinski hat einen Post erstellt
Hi. I'm trying to export our KB articles using this ZD documentation: https://developer.zendesk.com/documentation/help_center/help-center-api/backing-up-your-knowledge-base-with-the-help-center-api/
Because we use SSO and 2FA to log into ZD, I changed the authentication method in the script from credentials to API key. I believe I formatted the script correctly, but I'm getting an unexplained 404. Any thoughts about what might be going wrong?
Here's my modified version of the Python script provided in the documentation:
import os
import datetime
import requests
api_token = 'MY_ZENDESK_TOKEN'
zendesk = 'https://securityscorecard.zendesk.com'
language = 'en_US'
date = datetime.date.today()
backup_path = os.path.join(str(date), language)
if not os.path.exists(backup_path):
os.makedirs(backup_path)
headers = {
'Authorization': f'Bearer {api_token}',
}
endpoint = zendesk + '/api/v2/help_center/en-US/articles.json'.format(locale=language.lower())
response = requests.get(endpoint, headers=headers)
if response.status_code != 200:
print('Failed to retrieve articles with error {}'.format(response.status_code))
exit()
data = response.json()
for article in data['articles']:
print(article['id'])
Gepostet 20. Sept. 2023 · Mark Glinski
0
Follower
3
Stimmen
5
Kommentare
Mark Glinski hat einen Kommentar hinterlassen
Following up on my original question, I'm wondering if the Zendesk API just doesn't support SSO and 2FA authentication. If so, would it be possible to substitute an API token?
Kommentar anzeigen · Gepostet 09. Sept. 2023 · Mark Glinski
0
Follower
0
Stimmen
0
Kommentare
Mark Glinski hat einen Post erstellt
I am trying to use the Zendesk API to export all of the articles from the knowledgebase. I'm using this document https://developer.zendesk.com/documentation/help_center/help-center-api/backing-up-your-knowledge-base-with-the-help-center-api/#code-complete
I'm getting a 404 and I suspect it has to do with authentication issues.
In the Python script, I need to provide my Zendesk credentials. Thing is that my org uses SSO, so I don't have a unique Zendesk password. Instead I log into Zendesk using my SSO password.
I'm wondering if that could be the reason I'm getting the 404.
Any thoughts on this?
Gepostet 09. Sept. 2023 · Mark Glinski
0
Follower
2
Stimmen
2
Kommentare
Mark Glinski hat einen Kommentar hinterlassen
I'm not seeing content tags either. I see the note about needing to be upgraded to the latest version of theCopenhagen theme. I have heavily customized my Copenhagen theme and I don't want to potentially lose these customizations by upgrading, which has happened in the past. Is there any guidance on updating the Copenhagen theme w/o blowing away all my customizations?
Kommentar anzeigen · Gepostet 14. Juli 2023 · Mark Glinski
0
Follower
0
Stimmen
0
Kommentare
Mark Glinski hat einen Post erstellt
Hi, Community! I want to make a number of improvements to our my org's release notes. What's not clear to me is
- whether I need a new theme to support these desired features
or - whether I can build the features using my current theme (Copenhagen).
Zendesk Support did not give me a direct answer, so I'm reaching out.
Here's what I want to do (see screen shot visual reference, which is from support.box.com):
1) A preview of each article in a category section, that customers can click to view the full contents.
2) A visual tag or label for each article that customers can use as a filter when looking for specific articles
3) Dropdowns for customers to filter for specific articles.
Thanks in advance for any help!
Gepostet 11. Juli 2023 · Mark Glinski
2
Follower
5
Stimmen
4
Kommentare
Mark Glinski hat einen Kommentar hinterlassen
In reference to my preceding comment, here's what I'm going for (screenshot):
Kommentar anzeigen · Gepostet 30. Juni 2023 · Mark Glinski
0
Follower
1
Stimme
0
Kommentare
Mark Glinski hat einen Post erstellt
I want to create dropdowns for categories and sections in my Guide instance. Does anyone know if only specific themes support that? Or is some Javascript or CSS that I can use to make this happen in any theme? I haven't seen any documentation about that yet. I have the Copenhagen theme. Thanks for any help!!
Gepostet 30. Juni 2023 · Mark Glinski
0
Follower
4
Stimmen
2
Kommentare
Mark Glinski hat einen Kommentar hinterlassen
Cool, Erin! The recipe works great. I love this use-case-based guidance for Explore. Really clarifies how to use it and also suggests possibilities for variations. Props!
Kommentar anzeigen · Gepostet 14. Apr. 2023 · Mark Glinski
0
Follower
1
Stimme
0
Kommentare