diff options
author | johmathe <johmathe@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-04-11 17:38:22 +0400 |
---|---|---|
committer | johmathe <johmathe@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-04-11 17:38:22 +0400 |
commit | bbf160900148fb607e6895d397817ac941f172b5 (patch) | |
tree | 3aefa1faafe28e7d6c2157b8a09d0d3a0e368841 /misc/api_rest_call.php | |
parent | b9df3534d2e8b59d114c12e4b161fc5355c9f116 (diff) |
Convert txt files to unix format0.1.3
Diffstat (limited to 'misc/api_rest_call.php')
-rw-r--r-- | misc/api_rest_call.php | 12 |
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); |