Genius song friendly URL
Return a free authentication key (e.g. SoundCloud client ID). You can use this when setting a key instead of providing your own. A full reference of key names can be found on the cheatsheet.
Return an authentication key. A full reference of key names can be found on the cheatsheet.
Key identifier in the format of <SERVICE>_<KEYIDENTIFIER>
Automatically matches and returns a MusicTrack or MusicPlaylist from a given service URL
Automatically refresh all authenticated service keys.
If CONFIG_AUTOREFRESH
is true, this will occur automatically when tokens are about to expire.
Searches for tracks with given query on SoundCloud, unless other service and type is specified in search options.
Note: For YouTube, option.type = tracks
and videos
are the same thing.
Search query
Search options
Array of MusicTrack or MusicPlaylist objects
Returns with song data from Genius API
Query to search song
Validate and get the service from a given URL.
Service or undefined
Set an authentication key (e.g. Spotify API key). A full reference of key names can be found on the cheatsheet.
Use this function to set keys before invoking other Barbara-related stuff so Barbara can use the given keys.
Key identifier in the format of <SERVICE>_<KEYIDENTIFIER>
Key value
Read a configuration file in JSON format and append to authenticaton keys.
Path to configuration file
Overwrite keys that have been manually set? Defaults to true.
Set authentication keys in bulk. Note: will overwrite specified keys. A full reference of key names can be found on the cheatsheet.
Use this function to set keys before invoking other Barbara-related stuff so Barbara can use the given keys.
Object containing keys
Generated using TypeDoc
Scrape lyrics data from song on Genius