REST API
-
We installed yesterday the REST API and I have a few questions and things to comment on it π
* First of all the documentation on https://documenter.getpostman.com/view/3239688/RWTkSeby is not up to date. Doing the
https://{your-domain}/wp-json/wpstatistics/v1will display the actual documentation
* I’ve seen it’s not possible to filter by dates not even withfrom|toorrangestart|rangeendand it can only be done bydayswhich if you want old information or specific date range is a PITA to use. Reading the code I did not see any possibility to have that but on the actual WP-Statistics it’s how it works, you filter by dates.I don’t know if this is the right place to do this or I should open an Issue to the right GitHub repo (if you link it to me I can do that).
The main thing for me is to be able to filter by dates
from|toinstead of having to use thedays.We are using the Version: 1.2.3
PS: I’ve read a bit more the code and where it’s missing is on the
hits(which is what I’m using) on other places you have the'rangestartdate'and'rangeenddate'defined, like on the browsers.Thanks for your work π
The topic ‘REST API’ is closed to new replies.