new Util( Spotify )

Description

The spotify client's util.

Parameters
Name Type Description
Spotify Spotify

The spotify client.

Details

Members


spotify :Spotify

Description

The spotify client.

Details

Methods


toJson( response ) → {object|null}

Description

Checks to see if the Response if json.

Parameters
Name Type Description
response node-fetch#Response
Returns
Details

fetch( path, method, body, options ) → {Promise.<node-fetch#Response>}

Description

Fetchs from spotify's api.

Parameters
Name Type Description
path string

The path to fetch from.

method string

The method used in the fetch.

body object

The body for the fetch.

options node-fetch#Options

The options for the fetch.

Returns
Details