community | R Documentation |
This function allows us to access user-generate content on the NY Times, e.g. comments on articles.
community(what = "recent", match = "exact-match", ..., key = getOption("NYTimesAPI")["Community"])
what |
a string identifying which comments to retrieve, e.g. "recent", "random", "by-date/YYYY-MM-DD", "user/id/1234" |
match |
either "exact-match" or "closest-stem-match" |
... |
additional name=value pairs passed to the Web service request |
key |
the NY Times API key to access to the service |
Duncan Temple Lang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.