Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Beautify querying the reporting API guide.

  • Loading branch information...
commit 55afd8dd0135bdd50749afd9281618367e9adcc6 1 parent c4288c5
@diosmosis diosmosis authored
Showing with 4 additions and 8 deletions.
  1. +4 −8 docs/querying-the-reporting-api.md
View
12 docs/querying-the-reporting-api.md
@@ -13,15 +13,11 @@ If you want to request data in any language (PHP, Python, Ruby, ASP, C++, Java,
You can, for example, get your top 100 search engine keywords used to find your website during the current week. Here is an example in PHP:
-<pre markdown="1"><code>
-[include url="https://raw.github.com/piwik/piwik/master/misc/others/api_rest_call.php"]
-</code></pre>
+<pre><code markdown="1">[include url="https://raw.github.com/piwik/piwik/master/misc/others/api_rest_call.php" escape="true"]</code></pre>
Here is the output of this code:
-<pre markdown="1"><code>
-[include url="http://piwik.org/wp-content/uploads/api_rest_call.php"]
-</code></pre>
+<pre><code markdown="1">[include url="http://piwik.org/wp-content/uploads/api_rest_call.php" escape="true"]</code></pre>
## Call the Piwik API in PHP
@@ -29,8 +25,8 @@ If you want to request data in a PHP script that is on the same server as Piwik,
If you are developing a plugin, you have to use this technique.
-<pre markdown="1"><code>[include url="https://raw.github.com/piwik/piwik/master/misc/others/api_internal_call.php"]</code></pre>
+<pre><code markdown="1">[include url="https://raw.github.com/piwik/piwik/master/misc/others/api_internal_call.php" escape="true"]</code></pre>
Here is the output of this script:
-<pre markdown="1"><code>[include url="http://demo.piwik.org/misc/others/api_internal_call.php"]</code></pre>
+<pre><code markdown="1">[include url="http://demo.piwik.org/misc/others/api_internal_call.php" escape="true"]</code></pre>
Please sign in to comment.
Something went wrong with that request. Please try again.