Bug: getRowEvolution API-calls with format=php does not return serialized data by default #4115
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
worksforme
The issue cannot be reproduced and things work as intended.
Milestone
Documentation says:
"when you export in PHP format it is serialized by default (set serialize=0 to get the raw php data structure)"
see [http://piwik.org/docs/analytics-api/reference/]
But in Piwik_Api_ResponseBuilder Line 348 (see [https://github.com/piwik/piwik/blob/master/core/API/ResponseBuilder.php#L348] the default value is set to 0.
We reproduced this with getRowEvolution (see [http://demo.piwik.org/?module=API&method=API.getRowEvolution&idSite=7&period=range&date=2013-09-01,2013-09-15&apiModule=UserCountry&apiAction=getCountry&legendAppendMetric=1&labelUseAbsoluteUrl=1&format=PHP&token_auth=anonymous]).
When you pass serialize=1 it works. Just the default-handling is wrong
Maybe other functions are affected as well.
If this is not a bug and the result of getRowEvolution() should not be serialized by default, there should be a hint in the API-Reference.
The text was updated successfully, but these errors were encountered: