What is url for API?


#1

First let me just say that the documentation on the API sucks.

Going by this method:

$url = “http://demo.piwik.org/”;
$url .= “?module=API&method=Referers.getKeywords”;
$url .= “&idSite=7&period=month&date=yesterday”;
$url .= “&format=PHP&filter_limit=20”;
$url .= “&token_auth=$token_auth”;

Is demo.piwik.org the root? Wouldn’t you need to pass the arguments to the piwik.php file? or the piwik folder? Such as:

http://demo.piwik.org/piwik/

The documentation does shit for explaining this.


#2

http://piwik.org/docs/analytics-api/tutorials-examples/

Line 1 i saw 1st error

To build the URL of the API call, you need:

your Piwik base URL (replace demo.piwik.org with the URL and path of your Piwik server
http://demo.piwik.org/?module=API

So another way to say it:

http://yourdomainname.com/piwik/?module=API

basically you need to insert the url of your own installation location


#3

for me No URL is working


#4

[quote=karmakrif]
for me No URL is working[/quote]

What do you mean by No URL?