@gricey432 opened this Issue on November 30th 2017 Contributor

Using the API

https://example.com/?module=API&method=Live.getLastVisitsDetails&idSite=all&period=day&date=today&format=json&token_auth=xxx

Should return the latest visit details for all sites on the server, instead I get

{
result: "error",
message: "An unexpected website was found in the request: website id was set to '0' ."
}
@gricey432 commented on November 30th 2017 Contributor

Additionally if I use idSite=1,2,3 I only get the data for idSite=1. I have a feeling this issue is only on the Live endpoint though, not sure..

@tassoman commented on December 1st 2017 Contributor

I bet idSite must be a single integer. You're asking the getLastVisitsDetails method in the Live plugin. If you want all sites results, you must query Multisite plugin.

There's an example on demo site

@gricey432 commented on December 5th 2017 Contributor

So this is expected behaviour?

The Standard API parameters section of the docs says all and 1,4,5,6 are valid values, and the Live! section doesn't mention otherwise.

Powered by GitHub Issue Mirror