[Piwik-svn] r191 - trunk/misc
svnmaster at piwik.org
svnmaster at piwik.org
Fri Jan 18 17:54:41 CET 2008
Author: matt
Date: 2008-01-18 17:54:41 +0100 (Fri, 18 Jan 2008)
New Revision: 191
Modified:
trunk/misc/api_rest_call.php
Log:
Doc
Modified: trunk/misc/api_rest_call.php
===================================================================
--- trunk/misc/api_rest_call.php 2008-01-18 16:16:22 UTC (rev 190)
+++ trunk/misc/api_rest_call.php 2008-01-18 16:54:41 UTC (rev 191)
@@ -1,13 +1,13 @@
<?php
// this token is used to authenticate your API request.
// You can get the token on the API page inside your Piwik interface
-$token_auth = '0b809661490d605bfd77f57ed11f0b14';
+$token_auth = 'anonymous';
// we call the REST API and request the 100 first keywords for the last month for the idsite=1
-$url = "http://127.0.0.1/svn-dev/trunk/";
+$url = "http://piwik.org/demo/";
$url .= "?module=API&method=Referers.getKeywords";
$url .= "&idSite=1&period=month&date=yesterday";
-$url .= "&format=PHP&filter_limit=100";
+$url .= "&format=PHP&filter_limit=20";
$url .= "&token_auth=$token_auth";
$fetched = file_get_contents($url);
More information about the Piwik-svn
mailing list