I don't know if this is a regression from #379, but some might expect something like this to work:
$token = Zend_Registry::get('config')->superuser->password; $request = new Piwik_API_Request(' ... &token_auth='.$token.' ... ');
Instead this returns:
You can't access this resource as it requires a 'view' access for the website id = 1.
if it was working before, this wasn't an expected feature. token_auth is the hash given by the call to UsersManager.getTokenAuth and is a hash of the login and the md5 password.
Oops. My mistake. I was trying to whip up a small example in response to a question on the forum.