tesla_api 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/SUMMARY.md +35 -34
- data/docs/miscellaneous/endpoints.md +23 -3
- data/docs/vehicle/commands/README.md +11 -3
- data/docs/vehicle/commands/climate.md +19 -0
- data/docs/vehicle/commands/homelink.md +21 -0
- data/docs/vehicle/commands/{navigation.md → sharing.md} +11 -9
- data/docs/vehicle/commands/windows.md +22 -0
- data/docs/vehicle/optioncodes.md +11 -1
- data/lib/tesla_api/vehicle.rb +48 -0
- data/lib/tesla_api/version.rb +1 -1
- data/spec/cassettes/vehicle-media_next_fav.yml +109 -0
- data/spec/cassettes/vehicle-media_next_track.yml +109 -0
- data/spec/cassettes/vehicle-media_prev_fav.yml +109 -0
- data/spec/cassettes/vehicle-media_prev_track.yml +109 -0
- data/spec/cassettes/vehicle-media_toggle_playback.yml +109 -0
- data/spec/cassettes/vehicle-media_volume_down.yml +109 -0
- data/spec/cassettes/vehicle-media_volume_up.yml +109 -0
- data/spec/cassettes/vehicle-vehicle_config.yml +108 -0
- data/spec/lib/tesla_api/vehicle_spec.rb +57 -0
- metadata +21 -3
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Oct 2019 12:07:15 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '569'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
- SAMEORIGIN
|
36
|
+
X-Xss-Protection:
|
37
|
+
- 1; mode=block
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
X-Txid:
|
41
|
+
- 14bff6e11faacd74f2e45e00ce3a22ca
|
42
|
+
Etag:
|
43
|
+
- W/"fee0c127f31e354aae63ac0325c6cce4"
|
44
|
+
Cache-Control:
|
45
|
+
- max-age=0, private, must-revalidate
|
46
|
+
X-Request-Id:
|
47
|
+
- 1c00cd57-2b52-43f1-b179-4569cbe3cc9d
|
48
|
+
X-Runtime:
|
49
|
+
- '0.037398'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"response":[{"id":1,"vehicle_id":1,"vin":"1","display_name":"tm3","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"tokens":["1","1"],"state":"online","in_service":false,"id_s":"1","calendar_enabled":true,"api_version":6,"backseat_token":null,"backseat_token_updated_at":null}],"count":1}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 03 Oct 2019 12:07:15 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1/command/media_next_fav
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
64
|
+
Authorization:
|
65
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
66
|
+
Content-Length:
|
67
|
+
- '0'
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
70
|
+
Accept:
|
71
|
+
- "*/*"
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- nginx
|
79
|
+
Date:
|
80
|
+
- Thu, 03 Oct 2019 12:07:16 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Content-Length:
|
84
|
+
- '40'
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
X-Frame-Options:
|
88
|
+
- SAMEORIGIN
|
89
|
+
- SAMEORIGIN
|
90
|
+
X-Xss-Protection:
|
91
|
+
- 1; mode=block
|
92
|
+
X-Content-Type-Options:
|
93
|
+
- nosniff
|
94
|
+
X-Txid:
|
95
|
+
- 8071c728da780d613a3b5af7e219c080
|
96
|
+
Etag:
|
97
|
+
- W/"f67eec105dd6522783a1f1bacc52723a"
|
98
|
+
Cache-Control:
|
99
|
+
- max-age=0, private, must-revalidate
|
100
|
+
X-Request-Id:
|
101
|
+
- 23e04dbb-c730-4d64-949d-1f6fb5723cc8
|
102
|
+
X-Runtime:
|
103
|
+
- '0.535570'
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"response":{"reason":"","result":true}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 03 Oct 2019 12:07:16 GMT
|
109
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Oct 2019 12:07:10 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '569'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
- SAMEORIGIN
|
36
|
+
X-Xss-Protection:
|
37
|
+
- 1; mode=block
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
X-Txid:
|
41
|
+
- 53507e4ddb533acdca04c85e956d5d0b
|
42
|
+
Etag:
|
43
|
+
- W/"fee0c127f31e354aae63ac0325c6cce4"
|
44
|
+
Cache-Control:
|
45
|
+
- max-age=0, private, must-revalidate
|
46
|
+
X-Request-Id:
|
47
|
+
- e0c1920f-ebca-44d5-818e-419632e19b30
|
48
|
+
X-Runtime:
|
49
|
+
- '0.034419'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"response":[{"id":1,"vehicle_id":1,"vin":"1","display_name":"tm3","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"tokens":["1","1"],"state":"online","in_service":false,"id_s":"1","calendar_enabled":true,"api_version":6,"backseat_token":null,"backseat_token_updated_at":null}],"count":1}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 03 Oct 2019 12:07:10 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1/command/media_next_track
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
64
|
+
Authorization:
|
65
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
66
|
+
Content-Length:
|
67
|
+
- '0'
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
70
|
+
Accept:
|
71
|
+
- "*/*"
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- nginx
|
79
|
+
Date:
|
80
|
+
- Thu, 03 Oct 2019 12:07:11 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Content-Length:
|
84
|
+
- '40'
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
X-Frame-Options:
|
88
|
+
- SAMEORIGIN
|
89
|
+
- SAMEORIGIN
|
90
|
+
X-Xss-Protection:
|
91
|
+
- 1; mode=block
|
92
|
+
X-Content-Type-Options:
|
93
|
+
- nosniff
|
94
|
+
X-Txid:
|
95
|
+
- 3378733fc84bfc9a0d8ca8829f3e061e
|
96
|
+
Etag:
|
97
|
+
- W/"f67eec105dd6522783a1f1bacc52723a"
|
98
|
+
Cache-Control:
|
99
|
+
- max-age=0, private, must-revalidate
|
100
|
+
X-Request-Id:
|
101
|
+
- 7d4d8512-ede6-47f7-bec0-0d8827369cce
|
102
|
+
X-Runtime:
|
103
|
+
- '0.233400'
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"response":{"reason":"","result":true}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 03 Oct 2019 12:07:11 GMT
|
109
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Oct 2019 12:07:13 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '569'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
- SAMEORIGIN
|
36
|
+
X-Xss-Protection:
|
37
|
+
- 1; mode=block
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
X-Txid:
|
41
|
+
- ebdbffdab2c2775c54baa8da990d85bf
|
42
|
+
Etag:
|
43
|
+
- W/"fee0c127f31e354aae63ac0325c6cce4"
|
44
|
+
Cache-Control:
|
45
|
+
- max-age=0, private, must-revalidate
|
46
|
+
X-Request-Id:
|
47
|
+
- c88974d9-c7d5-4082-a197-6b0106a1272b
|
48
|
+
X-Runtime:
|
49
|
+
- '0.043550'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"response":[{"id":1,"vehicle_id":1,"vin":"1","display_name":"tm3","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"tokens":["1","1"],"state":"online","in_service":false,"id_s":"1","calendar_enabled":true,"api_version":6,"backseat_token":null,"backseat_token_updated_at":null}],"count":1}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 03 Oct 2019 12:07:13 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1/command/media_prev_fav
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
64
|
+
Authorization:
|
65
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
66
|
+
Content-Length:
|
67
|
+
- '0'
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
70
|
+
Accept:
|
71
|
+
- "*/*"
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- nginx
|
79
|
+
Date:
|
80
|
+
- Thu, 03 Oct 2019 12:07:14 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Content-Length:
|
84
|
+
- '40'
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
X-Frame-Options:
|
88
|
+
- SAMEORIGIN
|
89
|
+
- SAMEORIGIN
|
90
|
+
X-Xss-Protection:
|
91
|
+
- 1; mode=block
|
92
|
+
X-Content-Type-Options:
|
93
|
+
- nosniff
|
94
|
+
X-Txid:
|
95
|
+
- 6a65e94c22f4feabfcacfe9695305d8b
|
96
|
+
Etag:
|
97
|
+
- W/"f67eec105dd6522783a1f1bacc52723a"
|
98
|
+
Cache-Control:
|
99
|
+
- max-age=0, private, must-revalidate
|
100
|
+
X-Request-Id:
|
101
|
+
- 8e593817-2ce5-4ce7-89e2-9543421af7a3
|
102
|
+
X-Runtime:
|
103
|
+
- '0.438129'
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"response":{"reason":"","result":true}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 03 Oct 2019 12:07:14 GMT
|
109
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Oct 2019 12:07:12 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '569'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
- SAMEORIGIN
|
36
|
+
X-Xss-Protection:
|
37
|
+
- 1; mode=block
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
X-Txid:
|
41
|
+
- 6a2031faf6edd5db7dbd035750238f13
|
42
|
+
Etag:
|
43
|
+
- W/"fee0c127f31e354aae63ac0325c6cce4"
|
44
|
+
Cache-Control:
|
45
|
+
- max-age=0, private, must-revalidate
|
46
|
+
X-Request-Id:
|
47
|
+
- 5beba8de-97b6-4372-8db7-8cd727aafbc0
|
48
|
+
X-Runtime:
|
49
|
+
- '0.024729'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"response":[{"id":1,"vehicle_id":1,"vin":"1","display_name":"tm3","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"tokens":["1","1"],"state":"online","in_service":false,"id_s":"1","calendar_enabled":true,"api_version":6,"backseat_token":null,"backseat_token_updated_at":null}],"count":1}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 03 Oct 2019 12:07:12 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1/command/media_prev_track
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
64
|
+
Authorization:
|
65
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
66
|
+
Content-Length:
|
67
|
+
- '0'
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
70
|
+
Accept:
|
71
|
+
- "*/*"
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- nginx
|
79
|
+
Date:
|
80
|
+
- Thu, 03 Oct 2019 12:07:13 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Content-Length:
|
84
|
+
- '40'
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
X-Frame-Options:
|
88
|
+
- SAMEORIGIN
|
89
|
+
- SAMEORIGIN
|
90
|
+
X-Xss-Protection:
|
91
|
+
- 1; mode=block
|
92
|
+
X-Content-Type-Options:
|
93
|
+
- nosniff
|
94
|
+
X-Txid:
|
95
|
+
- dbb5802aa39b5317ccdf1c02efb3c686
|
96
|
+
Etag:
|
97
|
+
- W/"f67eec105dd6522783a1f1bacc52723a"
|
98
|
+
Cache-Control:
|
99
|
+
- max-age=0, private, must-revalidate
|
100
|
+
X-Request-Id:
|
101
|
+
- 0f31b943-eee3-437d-a6a2-4c06a09a97c7
|
102
|
+
X-Runtime:
|
103
|
+
- '0.411534'
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"response":{"reason":"","result":true}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 03 Oct 2019 12:07:13 GMT
|
109
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- nginx
|
25
|
+
Date:
|
26
|
+
- Thu, 03 Oct 2019 12:07:07 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '569'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
X-Frame-Options:
|
34
|
+
- SAMEORIGIN
|
35
|
+
- SAMEORIGIN
|
36
|
+
X-Xss-Protection:
|
37
|
+
- 1; mode=block
|
38
|
+
X-Content-Type-Options:
|
39
|
+
- nosniff
|
40
|
+
X-Txid:
|
41
|
+
- dfaa20808000cca42d2d5e236eaf33a9
|
42
|
+
Etag:
|
43
|
+
- W/"fee0c127f31e354aae63ac0325c6cce4"
|
44
|
+
Cache-Control:
|
45
|
+
- max-age=0, private, must-revalidate
|
46
|
+
X-Request-Id:
|
47
|
+
- d6c767b3-4425-4ddf-91f4-b3c3823db73f
|
48
|
+
X-Runtime:
|
49
|
+
- '0.018363'
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"response":[{"id":1,"vehicle_id":1,"vin":"1","display_name":"tm3","option_codes":"AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0","color":null,"tokens":["1","1"],"state":"online","in_service":false,"id_s":"1","calendar_enabled":true,"api_version":6,"backseat_token":null,"backseat_token_updated_at":null}],"count":1}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Thu, 03 Oct 2019 12:07:07 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1/command/media_toggle_playback
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: ''
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- github.com/timdorr/tesla-api v:3.0.1
|
64
|
+
Authorization:
|
65
|
+
- Bearer <TESLA_ACCESS_TOKEN>
|
66
|
+
Content-Length:
|
67
|
+
- '0'
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
70
|
+
Accept:
|
71
|
+
- "*/*"
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 200
|
75
|
+
message: OK
|
76
|
+
headers:
|
77
|
+
Server:
|
78
|
+
- nginx
|
79
|
+
Date:
|
80
|
+
- Thu, 03 Oct 2019 12:07:08 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Content-Length:
|
84
|
+
- '40'
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
X-Frame-Options:
|
88
|
+
- SAMEORIGIN
|
89
|
+
- SAMEORIGIN
|
90
|
+
X-Xss-Protection:
|
91
|
+
- 1; mode=block
|
92
|
+
X-Content-Type-Options:
|
93
|
+
- nosniff
|
94
|
+
X-Txid:
|
95
|
+
- 0fb86e2b83309cbf87ad5e4aa322ee26
|
96
|
+
Etag:
|
97
|
+
- W/"f67eec105dd6522783a1f1bacc52723a"
|
98
|
+
Cache-Control:
|
99
|
+
- max-age=0, private, must-revalidate
|
100
|
+
X-Request-Id:
|
101
|
+
- 84566bae-cfc5-4818-92db-a2b48be0bf0a
|
102
|
+
X-Runtime:
|
103
|
+
- '0.466495'
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"response":{"reason":"","result":true}}'
|
107
|
+
http_version:
|
108
|
+
recorded_at: Thu, 03 Oct 2019 12:07:08 GMT
|
109
|
+
recorded_with: VCR 4.0.0
|