get_song_media: Get Song Media

Description Usage Arguments Details Value Author(s) Examples

View source: R/get_song_media.R

Description

This function gets 'genius' media information

Usage

1
get_song_media(song_id, access_token = Sys.getenv("GENIUS_API_TOKEN"))

Arguments

song_id

Genius Song ID

access_token

Genius Web API token. Defaults to Sys.getenv('GENIUS_API_TOKEN').

Details

To use this function, you need to first use 'search_genius_song' to get the song ID. This function returns the provider (YouTube, Spotify ..), the type (audio, video) and a link for the content.

Value

Returns a tibble with the media's information

Author(s)

Alberto Almuiña

Examples

1
2
3
4
## Not run: 
get_song_media('55882')

## End(Not run)

rgenius documentation built on July 1, 2020, 10:28 p.m.