コード例 #1
0
        public Task <ArticleList> GetArticleFeedAsync(ArticleListFilter articleListFilter, string token, CancellationToken cancellationToken = default)
        {
            var querystring = GetQueryString(articleListFilter);
            var httpRequest = new HttpRequestMessage(HttpMethod.Get, new Uri($"api/articles/feed?{querystring}", UriKind.Relative));

            httpRequest.Headers
            .Add("Authorization", $"Token {token}");


            return(HandleRequest <ArticleList>(httpRequest, cancellationToken));
        }
コード例 #2
0
 /// <summary>
 /// Gets a list of up to 250 articles belonging to the given blog.
 /// </summary>
 public virtual async Task <ListResult <Article> > ListAsync(int blogId, ArticleListFilter filter)
 {
     return(await ListAsync(blogId, (ListFilter <Article>) filter));
 }
コード例 #3
0
 /// <summary>
 /// Gets a list of up to 250 articles belonging to the given blog.
 /// </summary>
 public virtual async Task <ListResult <Article> > ListAsync(int blogId, ArticleListFilter filter, CancellationToken cancellationToken = default)
 {
     return(await ListAsync(blogId, (ListFilter <Article>) filter, cancellationToken));
 }