Skip to content

Commit f5d6029

Browse files
committed
Remove vehicle_image endpoint - returns PNG redirect not suitable for Python
1 parent ee5eae9 commit f5d6029

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

docs/teslemetry.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -300,26 +300,6 @@ async def main():
300300
asyncio.run(main())
301301
```
302302

303-
## Get Vehicle Image
304-
305-
The `vehicle_image` method gets the redirect URL to the Tesla Design Studio image of the vehicle.
306-
307-
```python
308-
async def main():
309-
async with aiohttp.ClientSession() as session:
310-
teslemetry = Teslemetry(
311-
session=session,
312-
access_token="<access_token>",
313-
)
314-
315-
vin = "<vin>"
316-
317-
response = await teslemetry.vehicle_image(vin)
318-
print(response)
319-
320-
asyncio.run(main())
321-
```
322-
323303
## Vehicle Custom Commands
324304

325305
### Clear PIN to Drive

tesla_fleet_api/teslemetry/teslemetry.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,3 @@ async def create_streaming_config(
194194
f"api/config/{vin}",
195195
json={"fields": fields},
196196
)
197-
198-
async def vehicle_image(self, vin: str) -> dict[str, Any]:
199-
"""Get redirect URL to Tesla Design Studio image of the vehicle.
200-
201-
Args:
202-
vin: Vehicle identification number
203-
"""
204-
return await self._request(
205-
Method.GET,
206-
f"api/image/{vin}",
207-
)

0 commit comments

Comments
 (0)