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)); }
/// <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)); }
/// <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)); }