Skip to content

Commit

Permalink
Find articles using locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy Secrist committed May 13, 2020
1 parent 86b4334 commit 8db15d3
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 8db15d3

Please sign in to comment.