This is processRequest in a own custom plugin.
Request::processRequest('API.getProcessedReport', array(
'apiModule' => 'CustomReports',
'apiAction' => 'getCustomReport',
'idSite' => $idSite,
'period' => $period,
'date' => $date,
'idCustomReport' => $customReportId,
'token_auth' => 'removed'
));
and this should be the same request with the REST Api
https://analytics.example.com/?module=API&method=API.getProcessedReport&apiModule=CustomReports&apiAction=getCustomReport&idSite=$idSite&period=day&date=yesterday&idCustomReport=$customReportId&format=JSON&token_auth=removed
The REST Api returns all Metrics in ‘reportTotal’, but the processRequest is missing the metric “sum_goals_revenue”
1 post - 1 participant