Hi,
I have Piwik tracking two websites: one local and one remote. I’m using an API call in a PHP script to process some data:
// Initialization code omitted
$request = new Request('
module=API
&method=Actions.getPageTitles
&idSite=1
&date=yesterday
&period=week
&format=PHP
&filter_limit=150
&token_auth=my_token_auth
');
$result = $request->process();
$content = unserialize($result);
etc...
This code works fine for the remote site (idSite=1). However, when I try if for the local site (idSite=2), $result is empty. I’ve double-checked that the site ID is correct. The Dashboard shows good stats for both sites.
Any idea why the API call fails on the local server?
Cheers,
Paul