Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live.getLastVisitsDetails and RSS format #13195

Open
fdellwing opened this issue Jul 23, 2018 · 1 comment
Open

Live.getLastVisitsDetails and RSS format #13195

fdellwing opened this issue Jul 23, 2018 · 1 comment
Labels
c: APIs For bugs and features in the Matomo HTTP and plugin APIs. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@fdellwing
Copy link
Contributor

In #9840 (comment) @tsteur said, that it is normal that the RSS feature does not work, but I do not buy this.

Why is this API call not working?
https://demo.matomo.org/?module=API&method=Live.getLastVisitsDetails&idSite=7&period=day&date=today&format=rss&token_auth=anonymous&translateColumnNames=1

Error: RSS feeds can be generated for one specific website &idSite=X.
Please specify only one idSite or consider using &format=XML instead.

There is definitely an idSite=7 present in the url. This is also shown when you change the id to 1. It than tells you:

Error: You can't access this resource as it requires 'view' access for the website id = 1.
@sgiehl
Copy link
Member

sgiehl commented Jul 23, 2018

The error message might be a bit missleading. RSS renderer can't currently be used for API calls returning multiple datatables (range requests) or results not indexed by date. See https://github.com/matomo-org/matomo/blob/3.x-dev/core/DataTable/Renderer/Rss.php#L46-L51

Not sure if some of that restrictions could be removed. I've you are keen to check that @fdellwing, feel free and do ahead 🙂

@sgiehl sgiehl added this to the Backlog (Help wanted) milestone Jul 23, 2018
@Findus23 Findus23 added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. c: APIs For bugs and features in the Matomo HTTP and plugin APIs. labels May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: APIs For bugs and features in the Matomo HTTP and plugin APIs. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants