Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public IndividualArticleResponse UpdateArticle(Article article)
 {
     var body = new { article };
     return GenericPut<IndividualArticleResponse>(string.Format("help_center/articles/{0}.json", article.Id), body);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }