Global

Methods


request(options, ok_cb, err_cb [, data])

Fetch API based request.

Parameters:
Name Type Argument Description
options Object

The request options.

ok_cb callback

The default callback.

err_cb callback

The error callback.

data Object <optional>

The request body.

Returns:

The parsed JSON response.

Type
Promise.<Object>

Type Definitions


callback(data)

Generic callback.

Parameters:
Name Type Description
data any

The data passed to the callback.