popular | R Documentation |
Provides services for getting the most popular articles on NYTimes.com based on emails, shares, or views.
ny_popular_emailed(period = 30)
ny_popular_shared(period = 30)
ny_popular_shared_type(period = 30, type = c("email", "facebook", "twitter"))
ny_popular_viewed(period = 30)
period |
Time period: 1, 7, or 30 days. |
type |
Share type: |
ny_popular_emailed
Returns an array of the most emailed articles on NYTimes.com for specified period of time.
ny_popular_shared
Returns an array of the most shared articles on NYTimes.com for specified period of time.
ny_popular_shared_type
Returns an array of the most shared articles by share type on NYTimes.com for specified period of time.
ny_popular_viewed
Returns an array of the most viewed articles on NYTimes.com for specified period of time.
## Not run:
nytimes_key("xXXxxXxXxXXx")
emailed <- ny_popular_emailed(7)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.