Learn R Programming

diezeit (version 0.1-0)

zeit_get: 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 author, content, department, keyword, product or series -- see zeit_search.
id
item id.
fields
partially select output fields, as string value or vector of strings for multiple fields.
print
if TRUE (default) the meta data are printed.

Value

List of metadata items.

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

Examples

Run this code
## 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)

Run the code above in your browser using DataLab