예제 #1
0
 /// <summary>
 /// Gets a list of up to 250 articles belonging to the given blog.
 /// </summary>
 /// <param name="blogId">The blog that the articles belong to.</param>
 /// <param name="options">Optional List API setting.</param>
 public virtual async Task<IEnumerable<Article>> ListAsync(long blogId, ArticleOption options = null)
 {
     return
         await MakeRequestAsync<List<Article>>($"blogs/{blogId}/articles.json", HttpMethod.Get, "articles", options);
 }
예제 #2
0
 /// <summary>
 /// Gets a count of all articles belonging to the given blog.
 /// </summary>
 /// <param name="blogId">The blog that the articles belong to.</param>
 /// <param name="options">Optional Count API setting.</param>
 public virtual async Task<int> CountAsync(long blogId, ArticleOption options = null)
 {
     return await MakeRequestAsync<int>($"blogs/{blogId}/articles/count.json", HttpMethod.Get, "count", options);
 }