wallabag / wallabag

wallabag is a self hostable application for saving web pages: Save and classify articles. Read them later. Freely.
https://wallabag.org
MIT License
10.17k stars 758 forks source link

Stats on API usage with the help of Piwik #2025

Open Strubbl opened 8 years ago

Strubbl commented 8 years ago

Issue details

I would like to see statistics on API usage in my Piwik stats. Is that somehow possible?

Environment

Please provide necessary steps for reproduction of this issue, or better the reduced test case (without any external dependencies, if possible).

  1. make an API call
  2. see that API has been called in Piwik
j0k3r commented 8 years ago

It is not currently possible. What kind of metrics to you want in Piwik?

Strubbl commented 8 years ago

I want to see, which API endpoint is used how often. Just the usual stats like when you use the web interface.

j0k3r commented 8 years ago

Well it's not as easy as when you use the web interface. From the web interface we call the Piwik script which gather some information automatically from the browser, the ip location and a lots of more information.

On the API scope we aren't in a browser, so we can't get all that stuff. This means we need to send them manually to Piwik. Lucky us there is a SDK for that.

But regarding the very long list of different set* method, we need to define which one should be called with which value.