Pesquisas recentes
Sem pesquisas recentes

Mark Glinski
Entrou em 16 de out. de 2021
·
Última atividade em 20 de set. de 2023
Seguindo
0
Seguidores
0
Atividade total
36
Votos
0
Assinaturas
14
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Mark Glinski
Mark Glinski comentou,
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}',
}
Exibir comentário · Publicado 20 de set. de 2023 · Mark Glinski
0
Seguidores
0
Votos
0
Comentários
Mark Glinski comentou,
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?
Exibir comentário · Publicado 20 de set. de 2023 · Mark Glinski
0
Seguidores
0
Votos
0
Comentários
Mark Glinski criou uma publicação,
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'])
Publicado 20 de set. de 2023 · Mark Glinski
0
Seguidores
3
Votos
5
Comentários
Mark Glinski comentou,
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?
Exibir comentário · Publicado 09 de set. de 2023 · Mark Glinski
0
Seguidores
0
Votos
0
Comentários
Mark Glinski criou uma publicação,
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?
Publicado 09 de set. de 2023 · Mark Glinski
0
Seguidores
2
Votos
2
Comentários
Mark Glinski comentou,
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?
Exibir comentário · Publicado 14 de jul. de 2023 · Mark Glinski
0
Seguidores
0
Votos
0
Comentários
Mark Glinski criou uma publicação,
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!
Publicado 11 de jul. de 2023 · Mark Glinski
2
Seguidores
5
Votos
4
Comentários
Mark Glinski comentou,
In reference to my preceding comment, here's what I'm going for (screenshot):
Exibir comentário · Publicado 30 de jun. de 2023 · Mark Glinski
0
Seguidores
1
Votos
0
Comentários
Mark Glinski criou uma publicação,
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!!
Publicado 30 de jun. de 2023 · Mark Glinski
0
Seguidores
4
Votos
2
Comentários
Mark Glinski comentou,
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!
Exibir comentário · Publicado 14 de abr. de 2023 · Mark Glinski
0
Seguidores
1
Votos
0
Comentários