Hello, I am attempting to access the stream data as indicated by a previous post
curl --user USERNAME:TOKEN https://streaming.vn.teslamotors.co...est_heading,est_lat,est_lng,power,shift_state
This works just fine in a Terminal window (Mac OS X), but my question is how would I handle the authorization --user USERNAME:TOKEN in a WebSocket call. I have tried in the socket header but that did not work.
I am able to get all non stream api working including login, etc. through traditional get/post but it is the stream data that has me searching the web and confused. I am using Swift.
Thank you
Why use the streaming API to get stuff like car position? That can be achieved with the owner API. Read more here.