Ricerche recenti


Nessuna ricerca recente

Mark Glinski's Avatar

Mark Glinski

Data ingresso 16 ott 2021

·

Ultima attività 20 set 2023

Seguiti

0

Follower

0

Attività totali

36

Voti

0

Abbonamenti

14

PANORAMICA ATTIVITÀ

Ultima attività di Mark Glinski

Mark Glinski ha commentato,

Commento nella community 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}',
}

Visualizza commento · Data ultimo post: 20 set 2023 · Mark Glinski

0

Follower

0

Voti

0

Commenti


Mark Glinski ha commentato,

Commento nella community 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?


Visualizza commento · Data ultimo post: 20 set 2023 · Mark Glinski

0

Follower

0

Voti

0

Commenti


Mark Glinski ha creato un post,

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

Data ultimo post: 20 set 2023 · Mark Glinski

0

Follower

3

Voti

5

Commenti


Mark Glinski ha commentato,

Commento nella community 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?

 

Visualizza commento · Data ultimo post: 09 set 2023 · Mark Glinski

0

Follower

0

Voti

0

Commenti


Mark Glinski ha creato un post,

Post 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?

Data ultimo post: 09 set 2023 · Mark Glinski

0

Follower

2

Voti

2

Commenti


Mark Glinski ha commentato,

CommentoWorking 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?

Visualizza commento · Data ultimo post: 14 lug 2023 · Mark Glinski

0

Follower

0

Voti

0

Commenti


Mark Glinski ha creato un post,

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


Data ultimo post: 11 lug 2023 · Mark Glinski

2

Follower

5

Voti

4

Commenti


Mark Glinski ha commentato,

Commento nella community Q&A - Help center and community

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

Visualizza commento · Data ultimo post: 30 giu 2023 · Mark Glinski

0

Follower

1

Voto

0

Commenti


Mark Glinski ha creato un post,

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

Data ultimo post: 30 giu 2023 · Mark Glinski

0

Follower

4

Voti

2

Commenti


Mark Glinski ha commentato,

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

 

Visualizza commento · Data ultimo post: 14 apr 2023 · Mark Glinski

0

Follower

1

Voto

0

Commenti