Optional
onCallback before any request. Allows to change RequestInit object before fetch request - https://fetch.spec.whatwg.org/#requestinit.
onRequest: (init) => init.headers.Authorization = 'security_token';
Optional
onCallback before any request. Allows to change RequestInit object before fetch request - https://fetch.spec.whatwg.org/#requestinit.
onRequestAsync: (init) => {
return new Promise((resolve, reject) => {
init.headers.Authorization = 'security_token';
return resolve(init);
});
Optional
securityThe security key needed to access the Web API.
securityToken: 'security_token',
Optional
urlThe url to connect the Web API.
url: '/api/reporting' // default value
url: 'http:example.com/api/reporting'
Describes the settings to connect the Web API.