Codeigniter & Piwik : Return empty records

/*
@ This is my config file
*/

<?php defined('BASEPATH') OR exit('No direct script access allowed'); // Base URL to the Piwik Install $config['piwik_url'] = 'http://stats.example.com/test/piwik'; //This is where I have installed PIWIK // HTTPS Base URL to the Piwik Install (not required) $config['piwik_url_ssl'] = 'http://stats.example.com/test/piwik/'; // Piwik Site ID for the website you want to retrieve stats for $config['site_id'] = 1; // Piwik API token, you can find this on the API page by going to the API link from the Piwik Dashboard $config['token'] = 'xxxxxxxxxxxxxxxxxxxxxxxx'; //I have the right token // To turn geoip on, you will need to set to TRUE and GeoLiteCity.dat will need to be in helpers/geoip $config['geoip_on'] = FALSE; // Controls whether piwik_tag helper function outputs tracking tag (for production, set to TRUE) $config['tag_on'] = FALSE; ?>

/*
@This is my controller.
*/

class Data extends CI_Controller{

function __construct()
{
parent::__construct();
$this->load->library(‘piwik’);
$this->load->helper(‘piwik’);
}

public function show(){

	$this->load->library('piwik');
	$this->load->helper('piwik');

	$visits = $this->piwik->actions('day', 10);
	$unique = $this->piwik->unique_visitors('day', 10);
	// Recommend using sometype of caching for this, example:
	// $visits = $this->piwik->actions('day', 10);
	// $unique = $this->piwik->unique_visitors('day', 10);
	echo $visits;
	foreach($visits as $date => $visit)
	{ 
		$date_arr = explode('-', $date);
		$year = $date_arr[0];
		$month = $date_arr[1];
		$day = $date_arr[2];

		$utc = mktime(date('h') + 1, NULL, NULL, $month, $day, $year) * 1000;

		$flot_visits[] = '[' . $utc . ',' . $visit . ']';
		$flot_unique[] = '[' . $utc . ',' . $unique[$date] . ']';
	}

	$data['visits'] = '[' . implode(',', $flot_visits) . ']';
	$data['unique'] = '[' . implode(',', $flot_unique) . ']';

	echo "<pre>";
	print_r($data['visits']);    //output: [][]
	print_r($data['unique']);  //output: [][]

}
}

//Issue: Return 0 results. Any help appreciated.