From 4b4c11990f0df4bcf9a78acd24ddbc6dc6f284fd Mon Sep 17 00:00:00 2001 From: Sami Shalabi Date: Sat, 14 Dec 2024 20:44:58 -0500 Subject: [PATCH] Update Zendesk.java --- src/main/java/org/zendesk/client/v2/Zendesk.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/zendesk/client/v2/Zendesk.java b/src/main/java/org/zendesk/client/v2/Zendesk.java index ab1cc7b8..a58d77d5 100644 --- a/src/main/java/org/zendesk/client/v2/Zendesk.java +++ b/src/main/java/org/zendesk/client/v2/Zendesk.java @@ -2899,26 +2899,26 @@ public List getHelpCenterLocales() { */ public Iterable
getArticles() { return new PagedIterable<>( - cnst("/help_center/articles.json"), handleList(Article.class, "articles")); + cbp("/help_center/articles.json"), handleList(Article.class, "articles")); } public Iterable
getArticles(String locale) { return new PagedIterable<>( - tmpl("/help_center/{locale}/articles.json").set("locale", locale), + cbp("/help_center/{locale}/articles.json").set("locale", locale), handleList(Article.class, "articles")); } public Iterable
getArticles(Category category) { checkHasId(category); return new PagedIterable<>( - tmpl("/help_center/categories/{id}/articles.json").set("id", category.getId()), + cbp("/help_center/categories/{id}/articles.json").set("id", category.getId()), handleList(Article.class, "articles")); } public Iterable
getArticles(Category category, String locale) { checkHasId(category); return new PagedIterable<>( - tmpl("/help_center/{locale}/categories/{id}/articles.json") + cbp("/help_center/{locale}/categories/{id}/articles.json") .set("id", category.getId()) .set("locale", locale), handleList(Article.class, "articles")); @@ -2927,14 +2927,14 @@ public Iterable
getArticles(Category category, String locale) { public Iterable
getArticles(Section section) { checkHasId(section); return new PagedIterable<>( - tmpl("/help_center/sections/{id}/articles.json").set("id", section.getId()), + cbp("/help_center/sections/{id}/articles.json").set("id", section.getId()), handleList(Article.class, "articles")); } public Iterable
getArticles(Section section, String locale) { checkHasId(section); return new PagedIterable<>( - tmpl("/help_center/{locale}/sections/{id}/articles.json") + cbp("/help_center/{locale}/sections/{id}/articles.json") .set("id", section.getId()) .set("locale", locale), handleList(Article.class, "articles")); @@ -2963,7 +2963,7 @@ public Article getArticle(long id) { public Iterable getArticleTranslations(Long articleId) { return new PagedIterable<>( - tmpl("/help_center/articles/{articleId}/translations.json").set("articleId", articleId), + cbp("/help_center/articles/{articleId}/translations.json").set("articleId", articleId), handleList(Translation.class, "translations")); }