Search API

2 Kommentare

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Andreas! Since our Search API is intended for both end-users, agents, and admins, providing responses that aren't published is not part of the expected behavior. That's not to say it wouldn't be something that could be developed in the future, so I would recommend posting inthe Guide feedback forumfollowing the recommendations inthis postto give the product team the most useful information about your situation.

    0
  • Charles Nadeau
    Zendesk Documentation Team

    Hi Andreas,

    You could also use a List Articles endpoint then filter the results by `"draft" == true` . The pseudo-code could look like this:

    draft_articles = []
    url = "https://example.zendesk.com/api/v2/help_center/articles"
    articles = request(url) # function includes pagination
    for article in articles:
    ..if article['draft'] == True:
    …draft_articles.append(文章)
    save('draft_articles.json', draft_articles)

    0

Bittemelden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk