Skip to content

Commit

Permalink
Merge pull request #343 from randysecrist/fix-article-list
Browse files Browse the repository at this point in the history
Find articles using locale.
  • Loading branch information
aheritier authored May 20, 2020
2 parents d6cf216 + 8db15d3 commit 3380520
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/zendesk/client/v2/Zendesk.java
Original file line number Diff line number Diff line change
Expand Up @@ -1910,6 +1910,11 @@ public Iterable<Article> getArticles() {
handleList(Article.class, "articles"));
}

public Iterable<Article> getArticles(String locale) {
return new PagedIterable<>(tmpl("/help_center/{locale}/articles.json").set("locale", locale),
handleList(Article.class, "articles"));
}

public Iterable<Article> getArticles(Category category) {
checkHasId(category);
return new PagedIterable<>(
Expand Down

0 comments on commit 3380520

Please sign in to comment.