@robocoder opened this issue on April 26th 2009

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('

Instead this returns:

You can't access this resource as it requires a 'view' access for the website id = 1.
@mattab commented on April 27th 2009

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.

@robocoder commented on April 27th 2009

Oops. My mistake. I was trying to whip up a small example in response to a question on the forum.

This issue was closed on August 18th 2009
Powered by GitHub Issue Mirror