nyt_timeswire: timeswire

Description Usage Arguments Value Examples

View source: R/nyt-wire.r

Description

With the Times Newswire API, you can get links and metadata for Times articles and blog posts as soon as they are published on NYTimes.com. The Times Newswire API provides an up-to-the-minute stream of published items.

Usage

1
2
nyt_timeswire(src = "all", section = "all", limit = NULL, offset = NULL,
  ...)

Arguments

src

Limits the set of items by originating source \"all\" = items from both New York Times and International New York Times, \"nyt\" = New York Times items only, \"iht\" = International New York Times items only, path. Must be one of the following: string. Defaults to all.

section

Limits the set of items by one or more sections all. One or more section names, separated by semicolons. To get all sections, specify all. To get a particular section or sections, use section names. String. Defaults to all.

limit

Limits the number of results, between 1 and 20, query. Must be one of the following: integer.

offset

Sets the starting point of the result set, query. Must be one of the following: integer.

...

Passed to http query.

Value

Response object from the Times Newswire API.

Examples

1
2
3
4
## Not run: 
nyt <- timeswire()

## End(Not run)

mkearney/nytimes documentation built on May 23, 2019, 1:07 a.m.