@anonymous-piwik-user opened this Issue on May 29th 2010

Hello,

To make this short, here is what I am talking about, while :
http://piwik.org/demo/?module=API&idSite=1&period=month&date=2010-04-22&format=JSON&filter_limit=25&method=Referers.getKeywordsFromSearchEngineId&idSubtable=34&token_auth=anonymous

Works as expected, the same one with a date range :
-piwik.org/demo/?module=API&idSite=1&period=month&date=2010-04-22,2010-05-22&format=JSON&filter_limit=25&method=Referers.getKeywordsFromSearchEngineId&idSubtable=34&token_auth=anonymous

does not, it results in this error :
Fatal error: Call to undefined method Piwik_DataTable_Array::getRowFromIdSubDataTable() in /***/plugins/Referers/API.php on line 102

If you use period=day, you get:
{"result":"error", "message":"You are requesting a precise subTable but there is not such data in the Archive."}

which is better, but.

So I assume that this is a bug in the current version, since date range should as well be available when using idSubtable.

Best regards,

dcz

@robocoder commented on May 29th 2010 Contributor

duplicate of #572

@anonymous-piwik-user commented on May 30th 2010

Hello,

I must be missing something here, because I don't see the relation between a bug report (since there is an error showing up, it must be wrong, by no mean an url manipulation should lead to any) and a feature request.

If not the feature (being able to ask for any date range in all cases), the bug (error) should IMHO be fixed before 1.0.

Excuse my ignorance if I missed something.

Best regards,

dcz

@robocoder commented on May 30th 2010 Contributor

Sorry, I was triaging tickets from my phone. There's another ticket open for handling API error messages.

@anonymous-piwik-user commented on May 30th 2010

Replying to vipsoft:

Sorry, I was triaging tickets from my phone. There's another ticket open for handling API error messages.

Ok, no problem, and thanks for you concern

Best regards,

dcz

@mattab commented on May 31st 2010 Owner

This is expected: specific keywords/countries/page URLs/etc. have different idsubdatatable each day. If you want to lookup a specific keyword over several days, you must use the API parameters:

# filter_pattern ; defines the text we want to search for in the filter_column. Only the row with the given column matching the pattern will be returned.
# filter_column ; defines the column that we want to search for a text (see filter_pattern).
This Issue was closed on May 31st 2010
Powered by GitHub Issue Mirror