Api Class for Piwik