zabuldon / teslajsonpy

Apache License 2.0
57 stars 62 forks source link

Sharing #398

Closed brian-gates closed 1 year ago

brian-gates commented 1 year ago

Add support for https://tesla-api.timdorr.com/vehicle/commands/sharing

Related to: https://github.com/alandtse/tesla/issues/541

kalavo commented 1 year ago

According to https://tesla-api.timdorr.com/vehicle/commands/sharing it appears navigation_gps_request is deprecated and replaced with share

endpoints.json needs to be changed from

  "SEND_GPS_TO_VEHICLE": {
    "AUTH": true,
    "TYPE": "POST",
    "URI": "api/1/vehicles/{vehicle_id}/command/navigation_gps_request"
  },

..to...

  "SHARE": {
    "AUTH": true,
    "TYPE": "POST",
    "URI": "api/1/vehicles/{vehicle_id}/command/share"
  },

...I'm not a programmer, and never used Github. Trying to figure out how Pull Requests work, but someone might be able to beat me to this and give it the nod?