get_media_source: Get media by id

Description Usage Arguments Value Examples

View source: R/get_media_source.R

Description

get_media returns media source by their id. A media source is one publisher. Every story that can be collected via get_story or get_story_list belongs to one media source.

Usage

1
get_media_source(media_id, api_key = Sys.getenv("MEDIACLOUD_API_KEY"))

Arguments

media_id

Positive integer that contains a valid media“ id.

api_key

Character string with the API key you get from mediacloud.org. Passing it is compulsory. Alternatively, function can be provided from the global environment.

Value

Data frame with results. See https://github.com/berkmancenter/mediacloud/blob/master/doc/api_2_0_spec/api_2_0_spec.md#media for field descriptions.

Examples

1
2
3
4
## Not run: 
 media_source <- get_media_source(media_id = 604L)

## End(Not run)

mediacloudr documentation built on July 24, 2019, 9:03 a.m.