Skip to content

Commit 3380520

Browse files
authored
Merge pull request cloudbees-oss#343 from randysecrist/fix-article-list
Find articles using locale.
2 parents d6cf216 + 8db15d3 commit 3380520

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/zendesk/client/v2/Zendesk.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,6 +1910,11 @@ public Iterable<Article> getArticles() {
19101910
handleList(Article.class, "articles"));
19111911
}
19121912

1913+
public Iterable<Article> getArticles(String locale) {
1914+
return new PagedIterable<>(tmpl("/help_center/{locale}/articles.json").set("locale", locale),
1915+
handleList(Article.class, "articles"));
1916+
}
1917+
19131918
public Iterable<Article> getArticles(Category category) {
19141919
checkHasId(category);
19151920
return new PagedIterable<>(

0 commit comments

Comments
 (0)