ApiCollection

ApiCollection

new ApiCollection()

Description:
  • Class for collecting API data
Source:

Methods

buildQuery() → {Object}

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

buildQueryParams() → {Object}

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

fetch(options) → {Promise}

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

fetchNextPage() → {Promise}

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

fetchPrevPage() → {Promise}

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