示例#1
0
 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);
 }
示例#2
0
 public IndividualArticleResponse UpdateArticle(Article article)
 {
     var body = new { article };
     return GenericPut<IndividualArticleResponse>(string.Format("help_center/articles/{0}.json", article.Id), body);
 }
示例#3
0
 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);
 }
示例#4
0
 public IndividualArticleResponse CreateArticle(long sectionId, Article article)
 {
     var body = new { article };
     return GenericPost<IndividualArticleResponse>(string.Format("help_center/sections/{0}/articles.json", sectionId), body);
 }