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_internal_call.php')
-rw-r--r--misc/api_internal_call.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/misc/api_internal_call.php b/misc/api_internal_call.php
index 1b02b272b2..99486cf872 100644
--- a/misc/api_internal_call.php
+++ b/misc/api_internal_call.php
@@ -1,23 +1,23 @@
-<?php
-define('PIWIK_INCLUDE_PATH', '..');
-define('ENABLE_DISPATCH', false);
-require_once PIWIK_INCLUDE_PATH . "/index.php";
-require_once PIWIK_INCLUDE_PATH . "/modules/API/Request.php";
-
-// We call the API from a php code
-// it will check that you have the necessary rights
-// - either you are loggued in piwik and have a cookie in your browser
-// - or you will have to add the token_auth=XXX to the request string to authenticate
-// beware that the token_auth changes every time you change your password
-$request = new Piwik_API_Request('
- method=UserSettings.getResolution
- &idSite=1
- &date=yesterday
- &period=week
- &format=XML
- &filter_limit=3
-');
-$result = $request->process();
-echo $result;
-
+<?php
+define('PIWIK_INCLUDE_PATH', '..');
+define('ENABLE_DISPATCH', false);
+require_once PIWIK_INCLUDE_PATH . "/index.php";
+require_once PIWIK_INCLUDE_PATH . "/modules/API/Request.php";
+
+// We call the API from a php code
+// it will check that you have the necessary rights
+// - either you are loggued in piwik and have a cookie in your browser
+// - or you will have to add the token_auth=XXX to the request string to authenticate
+// beware that the token_auth changes every time you change your password
+$request = new Piwik_API_Request('
+ method=UserSettings.getResolution
+ &idSite=1
+ &date=yesterday
+ &period=week
+ &format=XML
+ &filter_limit=3
+');
+$result = $request->process();
+echo $result;
+
?> \ No newline at end of file