Getting events via Piwik API


#1

Hey all,

I’m using this URL to get events:

http://www.mysite.com/pwk/index.php
?module=Events
&method=Events.getCategory
&token_auth=mytoken
&format=xml
&period=week
&date=yesterday
&idSite=1

(Token is valid but replaced)

Here’s what I get when I run that query:

http://puu.sh/aX9pB/0639d8e5f2.png

It doesn’t look like XML. What am I doing wrong?

Edit: Unfortunately, the examples for event tracking API (Reporting API Reference: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3) appear to be broken.


(Stefan Giehl) #2

You need to pass module=API instead of module=Events