xstyled/knp-piwik-client
Composer 安装命令:
composer require xstyled/knp-piwik-client
包简介
Simple client for Piwik (web analytics) API.
README 文档
README
PHP 5.3 client for Piwik web analytics.
Usage
-
Through HTTP connection:
<?php $connection = new Knp\PiwikClient\Connection\HttpConnection('http://demo.piwik.org'); $client = new Knp\PiwikClient\Client($connection, 'YOUR_API_TOKEN'); $array = $client->call('API.getReportMetadata', array('idSites' => array(23, 55))); -
Through local (PHP) connection:
<?php require_once PIWIK_INCLUDE_PATH . "/index.php"; require_once PIWIK_INCLUDE_PATH . "/core/API/Request.php"; Piwik_FrontController::getInstance()->init(); $connection = new Knp\PiwikClient\Connection\PiwikConnection(); $client = new Knp\PiwikClient\Client($connection, 'YOUR_API_TOKEN'); $array = $client->call('API.getReportMetadata', array('idSites' => array(23, 55)));
Methods
To see all available methods & their parameters, visit Piwik API Reference.
Copyright
PiwikClient Copyright (c) 2011 KnpLabs http://www.knplabs.com. See LICENSE for details.
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-11