I am planning to create a binding for Husqvarna AutoMover as my second binding.
I will look at https://github.com/chrisz/pyhusmow
It seems that it uses Token based authorization.
Is there any other binding that uses this where i can look.
I am still struggling with learning Java
I don’t know what protocol that is. It looks custom and simple. There is probably no standard support out-of-the-box for it. So you need to implement something yourself. Using HttpUtil you should be able to get the token and store it in some cache. For some inspiration look this earlier Spotify api implementation. It’s based on OAuth2. The earlier implementation had OAuth2 implemented, but current PR uses the OAuth2 implementation part of openHAB. To give you an example here is the token cache handling:
Just browser there to other files too and copy what you can use. Hope this helps somewhat.
I started but with slow progress. Then I realized the API does not provide position coordianes (which is possible via the husmov solution). Means, atm I do not continue with the binding. But I hope the API will be expanded and will provide more data in the future. Until then I decided to live with the current solution.