public async Task<IndividualArticleResponse> UpdateArticleAsync(Article article) { var body = new { article }; return await GenericPutAsync<IndividualArticleResponse>(string.Format("help_center/articles/{0}.json", article.Id), body); }
public IndividualArticleResponse UpdateArticle(Article article) { var body = new { article }; return GenericPut<IndividualArticleResponse>(string.Format("help_center/articles/{0}.json", article.Id), body); }
public async Task<IndividualArticleResponse> CreateArticleAsync(long sectionId, Article article) { var body = new { article }; return await GenericPostAsync<IndividualArticleResponse>(string.Format("help_center/sections/{0}/articles.json", sectionId), body); }
public IndividualArticleResponse CreateArticle(long sectionId, Article article) { var body = new { article }; return GenericPost<IndividualArticleResponse>(string.Format("help_center/sections/{0}/articles.json", sectionId), body); }