Open WalrusHat opened 8 years ago
mmk I figured it out! Just in-case no one knows how:
I found by POST'ing to url: /traccar/rest/saveDeviceShare works like a charm!
Im working on figuring out how to unshare the devices now.
To "unshare" devices you need to post request with a map that does not contain desired user.
As for getReports()
method there is no way to call it currently.
Thank for all the help Vitalidze! I'm donating to your link!
How do I call this method in dataservice.java?
void saveDeviceShare(Device device, Map<User, Boolean> share);
I found that it is requesting from /traccar/dataservice but when I tried to send an array of the parameters to /traccar/dataservice I got a 500 error. Is there a specific way to call this method? if so how?
I had the same question for this method for drives and stops: List getReports();