ApiCollection

ApiCollection

new ApiCollection()

Source:
Class for collecting API data

Methods

buildQuery() → {Object}

Source:
Creates a query object from the set attributes
Returns:
Type
Object

buildQueryParams() → {Object}

Source:
Creates a query string from the set attributes
Returns:
Type
Object

fetch(options) → {Promise}

Source:
Fetches API data
Parameters:
Name Type Description
options Object
Returns:
Type
Promise

fetchNextPage() → {Promise}

Source:
Fetches the next page of data
Returns:
Type
Promise

fetchPrevPage() → {Promise}

Source:
Fetches the previous page of data
Returns:
Type
Promise