Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'misc/api_rest_call.php')
-rw-r--r--misc/api_rest_call.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/api_rest_call.php b/misc/api_rest_call.php
index f02db78f85..2176c03d7f 100644
--- a/misc/api_rest_call.php
+++ b/misc/api_rest_call.php
@@ -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 = 'anonymous';
+<?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 = 'anonymous';
// we call the REST API and request the 100 first keywords for the last month for the idsite=1
$url = "http://piwik.org/demo/";
-$url .= "?module=API&method=Referers.getKeywords";
+$url .= "?module=API&method=Referers.getKeywords";
$url .= "&idSite=1&period=month&date=yesterday";
-$url .= "&format=PHP&filter_limit=20";
+$url .= "&format=PHP&filter_limit=20";
$url .= "&token_auth=$token_auth";
$fetched = file_get_contents($url);