From 8db15d3a7292fe926d391d165698ee666c441671 Mon Sep 17 00:00:00 2001 From: Randy Secrist Date: Wed, 13 May 2020 10:21:34 -0600 Subject: [PATCH] Find articles using locale. --- src/main/java/org/zendesk/client/v2/Zendesk.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/zendesk/client/v2/Zendesk.java b/src/main/java/org/zendesk/client/v2/Zendesk.java index c986d86b..072130bd 100644 --- a/src/main/java/org/zendesk/client/v2/Zendesk.java +++ b/src/main/java/org/zendesk/client/v2/Zendesk.java @@ -1910,6 +1910,11 @@ public Iterable
getArticles() { handleList(Article.class, "articles")); } + public Iterable
getArticles(String locale) { + return new PagedIterable<>(tmpl("/help_center/{locale}/articles.json").set("locale", locale), + handleList(Article.class, "articles")); + } + public Iterable
getArticles(Category category) { checkHasId(category); return new PagedIterable<>(