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

No way to get sites without group using the reporting API #7975

Closed
mrjoops opened this issue May 22, 2015 · 3 comments
Closed

No way to get sites without group using the reporting API #7975

mrjoops opened this issue May 22, 2015 · 3 comments
Milestone

Comments

@mrjoops
Copy link

mrjoops commented May 22, 2015

There is no way to retrieve sites without group using the reporting API method SitesManager.getSitesFromGroup.
I tried providing an empty parameter or an empty string as a parameter (single and double-quoted)
I get the error Please specify a value for 'group'. or an emty array.

@tsteur
Copy link
Member

tsteur commented May 24, 2015

You could write a plugin providing your own API. If you're familiar with PHP it would be quite easy. See eg http://developer.piwik.org/guides/expose-api-methods

@mattab mattab added the Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. label May 24, 2015
@mattab mattab added this to the Mid term milestone May 24, 2015
@mrjoops
Copy link
Author

mrjoops commented May 25, 2015

Actually when I call SitesManager.getSitesGroups, I get the groups AND and an empty string, so I expect to be able to query it like any other group.
There's no reason to require a value for group.
It's a bug, not a feature !

I'd love writing a plugin but I'm involved and busy in some other Piwik-related projects, and it's not the point, since it's a bug ;-)

@tsteur tsteur added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. and removed Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. labels May 25, 2015
@tsteur
Copy link
Member

tsteur commented May 25, 2015

That's right, it is a bug or a missing feature.

I'm recommending a plugin if you need it soon as it might not have a priority and might take a while until it is actually developed.

alexkuk pushed a commit to alexkuk/piwik that referenced this issue Jun 16, 2015
@mattab mattab modified the milestones: 2.14.0, Mid term Jun 17, 2015
@mattab mattab removed the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jun 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants