I'm trying to access the streaming service via c#, and am having an authorization issue.
Here is a snippet of my code:
HttpWebRequest request = HttpWebRequest.CreateHttp("
https://streaming.vn.teslamotors.com/stream/" + vehicle_id + "/?values=speed,odometer,soc,elevation,est_heading,est_lat,est_lng,power,shift_state,range,est_range");
request.Method = "GET";
request.Credentials = new NetworkCredential(this.email, token);
When I run this, I get an http error, but if I pass the same values to curl it works. What is the correct way to pass the authorization in c#?
Thanks!