MCPcopy Create free account
hub / github.com/Rello/analytics / api

Function api

tests/playwright/bundle_import.js:18–23  ·  view source on GitHub ↗
(path, method = 'GET', body)

Source from the content-addressed store, hash-verified

16 const issues = [];
17 page.on('pageerror', error => issues.push(error.message));
18 const api = (path, method = 'GET', body) => page.evaluate(async ({path, method, body}) => {
19 const response = await fetch(OC.generateUrl('apps/analytics/' + path), {
20 method, headers: OCA.Analytics.headers(), body: body === undefined ? undefined : JSON.stringify(body),
21 });
22 return {status: response.status, data: await response.json()};
23 }, {path, method, body});
24 let initial;
25 const createdObjects = {reports: new Set(), datasets: new Set(), panoramas: new Set()};
26 const track = result => {

Callers 2

stateFunction · 0.70
bundle_import.jsFile · 0.70

Calls 1

evaluateMethod · 0.80

Tested by

no test coverage detected