-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Hi,
I'm displaying some properties from Live.getLastVisitDetails in Mobile App. When requesting this method via BulkRequests, it converts some content to HTML entities.
timeSpentPretty: "2 min 8s"
For instance visitDurationPretty and timeSpentPretty . I cannot reproduce this behavior when executing plain Live.getLastVisitDetails action (no BulkRequest).
In Mobile App I cannot resolve HTML entities. Can we either not convert anything or convert them to Unicode (\u0000)?
Plain request (replace token_auth to reproduce):
http://demo.piwik.org/?module=API&method=Live.getLastVisitsDetails&idSite=1&period=day&date=today&format=JSON&token_auth=XXXXXXX
With BulkRequest (replace token_auth to reproduce):
http://demo.piwik.org/index.php?urls%5B0%5D=method%3dLive.getCounters%26lastMinutes%3d30%26format%3dJSON%26idSite%3d1%26&urls%5B1%5D=method%3dLive.getCounters%26lastMinutes%3d1440%26format%3dJSON%26idSite%3d1%26&urls%5B2%5D=method%3dLive.getLastVisitsDetails%26filter_limit%3d20%26period%3dday%26date%3dtoday%26format%3dJSON%26idSite%3d1%26&module=API&date=today&token_auth=XXXXXXXXXX&period=day&format=json&method=API.getBulkRequest&language=en&