Recherches récentes


Pas de recherche récente

Mark Glinski's Avatar

Mark Glinski

Adhésion le 16 oct. 2021

·

Dernière activité le 20 sept. 2023

Suivis

0

Abonnés

0

Activité totale

36

Votes

0

Abonnements

14

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Mark Glinski

Mark Glinski a ajouté un commentaire,

Commentaire de la communauté Developer - Zendesk APIs

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}',
}

Afficher le commentaire · Publication le 20 sept. 2023 · Mark Glinski

0

Abonnés

0

Votes

0

Commentaire


Mark Glinski a ajouté un commentaire,

Commentaire de la communauté Developer - Zendesk APIs

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?


Afficher le commentaire · Publication le 20 sept. 2023 · Mark Glinski

0

Abonnés

0

Votes

0

Commentaire


Mark Glinski a créé une publication,

Publication Developer - Zendesk APIs

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'])

Publication le 20 sept. 2023 · Mark Glinski

0

Abonnés

3

Votes

5

Commentaires


Mark Glinski a ajouté un commentaire,

Commentaire de la communauté Developer - Zendesk APIs

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?

 

Afficher le commentaire · Publication le 09 sept. 2023 · Mark Glinski

0

Abonnés

0

Votes

0

Commentaire


Mark Glinski a créé une publication,

Publication Developer - Zendesk APIs

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?

Publication le 09 sept. 2023 · Mark Glinski

0

Abonnés

2

Votes

2

Commentaires


Mark Glinski a ajouté un commentaire,

CommentaireWorking with articles in the knowledge base

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?

Afficher le commentaire · Publication le 14 juil. 2023 · Mark Glinski

0

Abonnés

0

Votes

0

Commentaire


Mark Glinski a créé une publication,

Publication Q&A - Help center and community

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!


Publication le 11 juil. 2023 · Mark Glinski

2

Abonnés

5

Votes

4

Commentaires


Mark Glinski a ajouté un commentaire,

Commentaire de la communauté Q&A - Help center and community

In reference to my preceding comment, here's what I'm going for (screenshot):

Afficher le commentaire · Publication le 30 juin 2023 · Mark Glinski

0

Abonnés

1

vote

0

Commentaire


Mark Glinski a créé une publication,

Publication Q&A - Help center and community

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!!

Publication le 30 juin 2023 · Mark Glinski

0

Abonnés

4

Votes

2

Commentaires


Mark Glinski a ajouté un commentaire,

CommentaireExplore recipes

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!

 

Afficher le commentaire · Publication le 14 avr. 2023 · Mark Glinski

0

Abonnés

1

vote

0

Commentaire