zeit_get: Get detailled content from the ZEIT archive

Description Usage Arguments Details Value Source Examples

Description

zeit_get will get you all available metadata for a specific item.

Usage

1
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.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

chgrl/diezeit documentation built on May 13, 2019, 3:59 p.m.