[Piwik-hackers] Piwik API Calls: what am I doing wrong?

Daniel Blanco daniel.blanco at irisalerts.com
Wed Jul 23 18:45:38 CEST 2008


Hi!
I'm having some trouble obtaining data with Piwik. I think I'm using the 
date and period parameters wrong in the REST API call.

Let me explain:
I have some Piwik graphics rendered in a page inside our web site (not 
in Piwik, but inside Drupal).
I want to visualize the data for dates between 2008-07-01 and 
2008-08-01, for example. (I know there won't be any data from 2008-07-23 on)

In one of the graphics, the API  call is:

module=*UserCountry*&action=getContinent&idSite=1199&period=*month*&date=*2008-07-06*&viewDataTable=generateDataChartPie&token_auth=XXX

And in other one:

module=*VisitsSummary*&action=getLastVisitsGraph&idSite=1199&period=*day*&date=*2008-07-06*%2C*2008-08-06*&viewDataTable=generateDataChartEvolution&token_auth=XXX

My problem is that the /"Visits Summary"/ graphic is saying me there's 
just 1 visit (2008-07-15), while the /"Visits per continent"/ graph says 
me there's 6 visits.
What am I doing wrong?

Thanks!





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.piwik.org/pipermail/piwik-hackers/attachments/20080723/c4d2c24c/attachment.htm 


More information about the Piwik-hackers mailing list