Articles
RPCS
- NewYorkTimes.getArticleSections()
Get a list of all valid article sections.
- NewYorkTimes.getArticlesWithConcept(concept: Object)
Fetch up to 10 articles containing the given concept.
Arguments:
concept: Object
(Object)name: String
(String)type: ConceptType
(ConceptType)
Returns:
List<Article>
(List)
- NewYorkTimes.getLatestArticles(section: ArticleSection)
Get the latest articles in a given section.
Arguments:
section: ArticleSection
(ArticleSection)
- NewYorkTimes.getTopStories(section: ArticleSection)
Get the top stories for a given section.
Arguments:
section: ArticleSection
(ArticleSection)
- NewYorkTimes.searchArticles(query: String, offset: BoundedNumber<0>?)
Search for articles given a query. Up to 10 articles will be returned. More articles can be retrieved by specifying the “offset” or number of results to skip before returning the results.
Arguments:
query: String
(String)offset: BoundedNumber<0>?
(BoundedNumber) - Must be a multiple of 10
Returns:
List<SearchResult>
(List)