init(); // We call the API from a php code // it will check that you have the necessary rights // - either you are loggued in piwik and have a cookie in your browser // - or you replace the token_auth=xxx to the request string to authenticate $request = new Piwik_API_Request(' method=UserSettings.getResolution &idSite=1 &date=yesterday &period=week &format=XML &filter_limit=3 &token_auth=anonymous '); $result = $request->process(); echo $result;