zeit_get {diezeit} | R Documentation |
Get detailled content from the ZEIT archive
Description
zeit_get
will get you all available metadata for a specific item.
Usage
zeit_get(endpoint, id, fields, print = TRUE)
Arguments
endpoint |
one of |
id |
item id. |
fields |
partially select output fields, as string value or vector of strings for multiple fields. |
print |
if |
Details
Endpoints
The API is structured into several endpoints that provide specific functionalities:
author | content by this author | |
content | get content by ID | |
department | content from this department | |
keyword | content about this keyword | |
product | content from this product | |
series | content in this series |
Value
List of metadata items.
Source
http://developer.zeit.de/docs/
Examples
## Not run:
# get article metadata by ID
zeit_get("content", "3Ed7KYJOO2MXu5SQtnudQA")
# partial selection of output fields
zeit_get("content", "3Ed7KYJOO2MXu5SQtnudQA",
fields=c("title", "release_date", "href"))
# hide result
article.meta <- zeit_get("content", "3Ed7KYJOO2MXu5SQtnudQA", print=FALSE)
## End(Not run)
[Package diezeit version 0.1-0 Index]