I'm working on a plugin (Automatic Indigo Plugin), and I have some questions.
First, it doesn't look like my request to refresh my token works. I always get back:
I am fairly certain the my request is correct. Does the refresh request not work while in developer mode?
Next, I'm not sure that I'm going to make use of the Websocket or Webhook features. If I do, it definitely won't be the Webhook - that won't work for my application. However, it's possible that the Websocket could work quite well for me. Should I implement it, I don't understand how the Websocket request would know it's "me". If I understand it correctly, the client_id and client_secret are static for my app. When I do the oauth piece, I'd get an access_token, which I would assume would tie my app to the user. However, based on the documentation, the Websocket request only takes in the client_id and the client_secret. If that's the case, how does the Websocket know which users data to send to the socket? Am I missing something?
Finally, if I only use the API calls, how would I be able to recreate the information like I get on my Apple Watch - knowing when a trip began, when a trip ended, the location of the end of the trip, knowing when a DTC is available. Can I get all that by pinging the API every minute?