vitalidze / traccar-web

Traccar Web UI mod
http://traccar.litvak.su/
152 stars 145 forks source link

Please HELP with API #1142

Open Bro-Systems opened 7 years ago

Bro-Systems commented 7 years ago

Hello, at first very many thanks for your work. I have one Question with the API: I dont know what is the right Sysntax for API saveDeviceShare:

Here i found in the documentation:

void saveDeviceShare(Device device, Map<User, Boolean> share);

I have testet with URL: "IP from my Traccar":8082/traccar/rest/saveDeviceShare

my POST payload is

[{"id" : "128"}, {"org.traccar.web.shared.model.User@48fb3bf9": false}]

but this dont work. I dont know what is "share" in the documentation above?

Can you Help me with the right Syntax (Payload) for share the Device with the ID 128 with the user above (for example)

Best Regards and thanks for the Help!

PS: I would need two more features for me: 1.) Autologin for the Mobile View (http://"IP from my Traccar":8082/m) 2.) Show also the GeoFence in the Mobile View (always)

For both features i will pay 50€ for the Help with the 2 features.

Bro-Systems

vitalidze commented 7 years ago

void saveDeviceShare(Device device, Map<User, Boolean> share);

I think you cannot call this method in current version of the API. It is not supported.