tesla_api 0.9.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/lib/tesla_api/vehicle.rb +32 -20
- data/lib/tesla_api/version.rb +1 -1
- data/spec/cassettes/vehicle-auto_conditioning_start.yml +130 -0
- data/spec/cassettes/vehicle-auto_conditioning_stop.yml +130 -0
- data/spec/cassettes/vehicle-charge_max_range-twice.yml +171 -0
- data/spec/cassettes/vehicle-charge_max_range.yml +130 -0
- data/spec/cassettes/vehicle-charge_port_door_open.yml +130 -0
- data/spec/cassettes/vehicle-charge_standard-twice.yml +171 -0
- data/spec/cassettes/vehicle-charge_standard.yml +130 -0
- data/spec/cassettes/vehicle-charge_start.yml +130 -0
- data/spec/cassettes/vehicle-charge_state.yml +130 -0
- data/spec/cassettes/vehicle-charge_stop.yml +130 -0
- data/spec/cassettes/vehicle-climate_state.yml +130 -0
- data/spec/cassettes/vehicle-door_lock.yml +130 -0
- data/spec/cassettes/vehicle-door_unlock.yml +130 -0
- data/spec/cassettes/vehicle-drive_state.yml +130 -0
- data/spec/cassettes/vehicle-flash_lights.yml +130 -0
- data/spec/cassettes/vehicle-gui_settings.yml +130 -0
- data/spec/cassettes/vehicle-honk_horn.yml +130 -0
- data/spec/cassettes/vehicle-mobile_enabled.yml +130 -0
- data/spec/cassettes/vehicle-open_frunk.yml +128 -0
- data/spec/cassettes/vehicle-open_trunk.yml +128 -0
- data/spec/cassettes/vehicle-remove_start_drive.yml +130 -0
- data/spec/cassettes/vehicle-set_charge_limit-1.yml +169 -0
- data/spec/cassettes/vehicle-set_charge_limit-100.yml +130 -0
- data/spec/cassettes/vehicle-set_charge_limit-50.yml +128 -0
- data/spec/cassettes/vehicle-set_charge_limit-90.yml +128 -0
- data/spec/cassettes/vehicle-set_temps-70-70.yml +130 -0
- data/spec/cassettes/vehicle-set_temps-75-65.yml +130 -0
- data/spec/cassettes/vehicle-sun_roof_control-close.yml +130 -0
- data/spec/cassettes/vehicle-sun_roof_control-comfort.yml +130 -0
- data/spec/cassettes/vehicle-sun_roof_control-open.yml +130 -0
- data/spec/cassettes/vehicle-sun_roof_control-vent.yml +130 -0
- data/spec/cassettes/vehicle-sun_roof_move-0.yml +130 -0
- data/spec/cassettes/vehicle-sun_roof_move-100.yml +130 -0
- data/spec/cassettes/vehicle-sun_roof_move-50.yml +130 -0
- data/spec/cassettes/vehicle-vehicle_state.yml +130 -0
- data/spec/cassettes/vehicle-wake_up.yml +130 -0
- data/spec/lib/tesla_api/vehicle_spec.rb +228 -0
- data/spec/spec_helper.rb +12 -4
- data/tesla_api.gemspec +2 -0
- metadata +102 -2
@@ -0,0 +1,130 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://owner-api.teslamotors.com/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=password&client_id=<TESLA_CLIENT_ID>&client_secret=<TESLA_CLIENT_SECRET>&email=<TESLA_EMAIL>&password=<TESLA_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 17 Dec 2014 01:40:41 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Cache-Control:
|
34
|
+
- no-store
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
X-Request-Id:
|
40
|
+
- 1e1e761e30ea14aae5b80afd6b98608e
|
41
|
+
X-Runtime:
|
42
|
+
- '0.422430'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"access_token":"a7a873c933af61e99c6c0c28a5b6d5a7a49f3d439bc908040e73b4ed5673ba71","token_type":"bearer","expires_in":7776000}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 17 Dec 2014 01:40:43 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
Authorization:
|
56
|
+
- Bearer a7a873c933af61e99c6c0c28a5b6d5a7a49f3d439bc908040e73b4ed5673ba71
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Date:
|
65
|
+
- Wed, 17 Dec 2014 01:40:42 GMT
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
Content-Length:
|
69
|
+
- '446'
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
Status:
|
73
|
+
- 200 OK
|
74
|
+
X-Ua-Compatible:
|
75
|
+
- IE=Edge,chrome=1
|
76
|
+
Etag:
|
77
|
+
- '"c52908b8db9336f89e7a1602f3b2a458"'
|
78
|
+
Cache-Control:
|
79
|
+
- max-age=0, private, must-revalidate
|
80
|
+
X-Request-Id:
|
81
|
+
- 54865176718b5415b5a6b0a137639d15
|
82
|
+
X-Runtime:
|
83
|
+
- '0.142764'
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"response":[{"color":null,"display_name":"Nikola","id":1514029006966957156,"option_codes":"MS01,RENA,TM00,DRLH,PF00,BT85,PBCW,RFPO,WT19,IBMB,IDPB,TR00,SU01,SC01,TP01,AU01,CH00,HP00,PA00,PS00,AD02,X020,X025,X001,X003,X007,X011,X013,COUS","vehicle_id":490215852,"vin":"5YJSA1CN5CFP01657","tokens":["b1278e37b13e8df2","b2fd1ad42f706a73"],"state":"online","remote_start_enabled":true,"calendar_enabled":true,"notifications_enabled":true}],"count":1}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Wed, 17 Dec 2014 01:40:44 GMT
|
89
|
+
- request:
|
90
|
+
method: post
|
91
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/command/sun_roof_control
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: state=move&percent=0
|
95
|
+
headers:
|
96
|
+
Authorization:
|
97
|
+
- Bearer a7a873c933af61e99c6c0c28a5b6d5a7a49f3d439bc908040e73b4ed5673ba71
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- nginx
|
105
|
+
Date:
|
106
|
+
- Wed, 17 Dec 2014 01:40:43 GMT
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=utf-8
|
109
|
+
Content-Length:
|
110
|
+
- '40'
|
111
|
+
Connection:
|
112
|
+
- keep-alive
|
113
|
+
Status:
|
114
|
+
- 200 OK
|
115
|
+
X-Ua-Compatible:
|
116
|
+
- IE=Edge,chrome=1
|
117
|
+
Etag:
|
118
|
+
- '"f67eec105dd6522783a1f1bacc52723a"'
|
119
|
+
Cache-Control:
|
120
|
+
- max-age=0, private, must-revalidate
|
121
|
+
X-Request-Id:
|
122
|
+
- 9f31cdba266166cb046501eaf29692d6
|
123
|
+
X-Runtime:
|
124
|
+
- '0.208602'
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"response":{"reason":"","result":true}}'
|
128
|
+
http_version:
|
129
|
+
recorded_at: Wed, 17 Dec 2014 01:40:44 GMT
|
130
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,130 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://owner-api.teslamotors.com/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=password&client_id=<TESLA_CLIENT_ID>&client_secret=<TESLA_CLIENT_SECRET>&email=<TESLA_EMAIL>&password=<TESLA_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 17 Dec 2014 01:40:21 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Cache-Control:
|
34
|
+
- no-store
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
X-Request-Id:
|
40
|
+
- 827deaa940e4b8b79523cc6441c47f7a
|
41
|
+
X-Runtime:
|
42
|
+
- '0.629224'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"access_token":"e0ed6d64c51d9418da74757a6822782d3685514a540aaafc268740e58b6b731e","token_type":"bearer","expires_in":7776000}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 17 Dec 2014 01:40:23 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
Authorization:
|
56
|
+
- Bearer e0ed6d64c51d9418da74757a6822782d3685514a540aaafc268740e58b6b731e
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Date:
|
65
|
+
- Wed, 17 Dec 2014 01:40:22 GMT
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
Content-Length:
|
69
|
+
- '446'
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
Status:
|
73
|
+
- 200 OK
|
74
|
+
X-Ua-Compatible:
|
75
|
+
- IE=Edge,chrome=1
|
76
|
+
Etag:
|
77
|
+
- '"c52908b8db9336f89e7a1602f3b2a458"'
|
78
|
+
Cache-Control:
|
79
|
+
- max-age=0, private, must-revalidate
|
80
|
+
X-Request-Id:
|
81
|
+
- 44801fa116a7bd505f8e0e1657483c53
|
82
|
+
X-Runtime:
|
83
|
+
- '0.157919'
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"response":[{"color":null,"display_name":"Nikola","id":1514029006966957156,"option_codes":"MS01,RENA,TM00,DRLH,PF00,BT85,PBCW,RFPO,WT19,IBMB,IDPB,TR00,SU01,SC01,TP01,AU01,CH00,HP00,PA00,PS00,AD02,X020,X025,X001,X003,X007,X011,X013,COUS","vehicle_id":490215852,"vin":"5YJSA1CN5CFP01657","tokens":["b1278e37b13e8df2","b2fd1ad42f706a73"],"state":"online","remote_start_enabled":true,"calendar_enabled":true,"notifications_enabled":true}],"count":1}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Wed, 17 Dec 2014 01:40:24 GMT
|
89
|
+
- request:
|
90
|
+
method: post
|
91
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/command/sun_roof_control
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: state=move&percent=100
|
95
|
+
headers:
|
96
|
+
Authorization:
|
97
|
+
- Bearer e0ed6d64c51d9418da74757a6822782d3685514a540aaafc268740e58b6b731e
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- nginx
|
105
|
+
Date:
|
106
|
+
- Wed, 17 Dec 2014 01:40:24 GMT
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=utf-8
|
109
|
+
Content-Length:
|
110
|
+
- '40'
|
111
|
+
Connection:
|
112
|
+
- keep-alive
|
113
|
+
Status:
|
114
|
+
- 200 OK
|
115
|
+
X-Ua-Compatible:
|
116
|
+
- IE=Edge,chrome=1
|
117
|
+
Etag:
|
118
|
+
- '"f67eec105dd6522783a1f1bacc52723a"'
|
119
|
+
Cache-Control:
|
120
|
+
- max-age=0, private, must-revalidate
|
121
|
+
X-Request-Id:
|
122
|
+
- d5828e1e3c07cad9359b8365b930f5f0
|
123
|
+
X-Runtime:
|
124
|
+
- '1.571879'
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"response":{"reason":"","result":true}}'
|
128
|
+
http_version:
|
129
|
+
recorded_at: Wed, 17 Dec 2014 01:40:26 GMT
|
130
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,130 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://owner-api.teslamotors.com/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=password&client_id=<TESLA_CLIENT_ID>&client_secret=<TESLA_CLIENT_SECRET>&email=<TESLA_EMAIL>&password=<TESLA_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 17 Dec 2014 01:41:07 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Cache-Control:
|
34
|
+
- no-store
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
X-Request-Id:
|
40
|
+
- 6d7e5756f9e1dca92ee1f1453c66baca
|
41
|
+
X-Runtime:
|
42
|
+
- '0.454604'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"access_token":"c57d73eaa356ead451c12fc4757c79c1c7d16ac6dd6701202806d20d87f372ee","token_type":"bearer","expires_in":7776000}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 17 Dec 2014 01:41:09 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
Authorization:
|
56
|
+
- Bearer c57d73eaa356ead451c12fc4757c79c1c7d16ac6dd6701202806d20d87f372ee
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Date:
|
65
|
+
- Wed, 17 Dec 2014 01:41:08 GMT
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
Content-Length:
|
69
|
+
- '446'
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
Status:
|
73
|
+
- 200 OK
|
74
|
+
X-Ua-Compatible:
|
75
|
+
- IE=Edge,chrome=1
|
76
|
+
Etag:
|
77
|
+
- '"c52908b8db9336f89e7a1602f3b2a458"'
|
78
|
+
Cache-Control:
|
79
|
+
- max-age=0, private, must-revalidate
|
80
|
+
X-Request-Id:
|
81
|
+
- 23a39256e4a2d46d52bc3d198f9c15d3
|
82
|
+
X-Runtime:
|
83
|
+
- '0.208992'
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"response":[{"color":null,"display_name":"Nikola","id":1514029006966957156,"option_codes":"MS01,RENA,TM00,DRLH,PF00,BT85,PBCW,RFPO,WT19,IBMB,IDPB,TR00,SU01,SC01,TP01,AU01,CH00,HP00,PA00,PS00,AD02,X020,X025,X001,X003,X007,X011,X013,COUS","vehicle_id":490215852,"vin":"5YJSA1CN5CFP01657","tokens":["b1278e37b13e8df2","b2fd1ad42f706a73"],"state":"online","remote_start_enabled":true,"calendar_enabled":true,"notifications_enabled":true}],"count":1}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Wed, 17 Dec 2014 01:41:10 GMT
|
89
|
+
- request:
|
90
|
+
method: post
|
91
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/command/sun_roof_control
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: state=move&percent=50
|
95
|
+
headers:
|
96
|
+
Authorization:
|
97
|
+
- Bearer c57d73eaa356ead451c12fc4757c79c1c7d16ac6dd6701202806d20d87f372ee
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- nginx
|
105
|
+
Date:
|
106
|
+
- Wed, 17 Dec 2014 01:41:09 GMT
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=utf-8
|
109
|
+
Content-Length:
|
110
|
+
- '40'
|
111
|
+
Connection:
|
112
|
+
- keep-alive
|
113
|
+
Status:
|
114
|
+
- 200 OK
|
115
|
+
X-Ua-Compatible:
|
116
|
+
- IE=Edge,chrome=1
|
117
|
+
Etag:
|
118
|
+
- '"f67eec105dd6522783a1f1bacc52723a"'
|
119
|
+
Cache-Control:
|
120
|
+
- max-age=0, private, must-revalidate
|
121
|
+
X-Request-Id:
|
122
|
+
- 74eb4c1c531006b451dc9d3fb96b3e67
|
123
|
+
X-Runtime:
|
124
|
+
- '0.214940'
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"response":{"reason":"","result":true}}'
|
128
|
+
http_version:
|
129
|
+
recorded_at: Wed, 17 Dec 2014 01:41:10 GMT
|
130
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,130 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://owner-api.teslamotors.com/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=password&client_id=<TESLA_CLIENT_ID>&client_secret=<TESLA_CLIENT_SECRET>&email=<TESLA_EMAIL>&password=<TESLA_PASS>
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx
|
23
|
+
Date:
|
24
|
+
- Wed, 17 Dec 2014 00:26:53 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Cache-Control:
|
34
|
+
- no-store
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
X-Ua-Compatible:
|
38
|
+
- IE=Edge,chrome=1
|
39
|
+
X-Request-Id:
|
40
|
+
- e7b6bbfaab456d6f53821b19f7c44b96
|
41
|
+
X-Runtime:
|
42
|
+
- '0.420201'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"access_token":"d8dc10d49870becd6bb6069dc7a29db94d39381cf540402f9bde98a2eca3c0ed","token_type":"bearer","expires_in":7776000}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 17 Dec 2014 00:26:55 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
Authorization:
|
56
|
+
- Bearer d8dc10d49870becd6bb6069dc7a29db94d39381cf540402f9bde98a2eca3c0ed
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Date:
|
65
|
+
- Wed, 17 Dec 2014 00:26:54 GMT
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
Content-Length:
|
69
|
+
- '446'
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
Status:
|
73
|
+
- 200 OK
|
74
|
+
X-Ua-Compatible:
|
75
|
+
- IE=Edge,chrome=1
|
76
|
+
Etag:
|
77
|
+
- '"c5d083718f906b7336fb8b28fcc87b6c"'
|
78
|
+
Cache-Control:
|
79
|
+
- max-age=0, private, must-revalidate
|
80
|
+
X-Request-Id:
|
81
|
+
- 075ac71b808066c4a48eaa7b4fc922cb
|
82
|
+
X-Runtime:
|
83
|
+
- '0.042602'
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"response":[{"color":null,"display_name":"Nikola","id":1514029006966957156,"option_codes":"MS01,RENA,TM00,DRLH,PF00,BT85,PBCW,RFPO,WT19,IBMB,IDPB,TR00,SU01,SC01,TP01,AU01,CH00,HP00,PA00,PS00,AD02,X020,X025,X001,X003,X007,X011,X013,COUS","vehicle_id":490215852,"vin":"5YJSA1CN5CFP01657","tokens":["6b6e59059375f282","09b1673648be8c08"],"state":"online","remote_start_enabled":true,"calendar_enabled":true,"notifications_enabled":true}],"count":1}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Wed, 17 Dec 2014 00:26:56 GMT
|
89
|
+
- request:
|
90
|
+
method: get
|
91
|
+
uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/data_request/vehicle_state
|
92
|
+
body:
|
93
|
+
encoding: US-ASCII
|
94
|
+
string: ''
|
95
|
+
headers:
|
96
|
+
Authorization:
|
97
|
+
- Bearer d8dc10d49870becd6bb6069dc7a29db94d39381cf540402f9bde98a2eca3c0ed
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Server:
|
104
|
+
- nginx
|
105
|
+
Date:
|
106
|
+
- Wed, 17 Dec 2014 00:26:55 GMT
|
107
|
+
Content-Type:
|
108
|
+
- application/json; charset=utf-8
|
109
|
+
Content-Length:
|
110
|
+
- '383'
|
111
|
+
Connection:
|
112
|
+
- keep-alive
|
113
|
+
Status:
|
114
|
+
- 200 OK
|
115
|
+
X-Ua-Compatible:
|
116
|
+
- IE=Edge,chrome=1
|
117
|
+
Etag:
|
118
|
+
- '"a030a309940a34c7ff61648072176666"'
|
119
|
+
Cache-Control:
|
120
|
+
- max-age=0, private, must-revalidate
|
121
|
+
X-Request-Id:
|
122
|
+
- ae7adb3416d075da741b294222b7203a
|
123
|
+
X-Runtime:
|
124
|
+
- '0.775318'
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"response":{"calendar_supported":true,"car_version":"1.67.125","dark_rims":false,"df":0,"dr":0,"exterior_color":"White","ft":0,"has_spoiler":false,"locked":true,"perf_config":"Base","pf":0,"pr":0,"remote_start":false,"rhd":false,"roof_color":"None","rt":0,"sun_roof_installed":true,"sun_roof_percent_open":0,"sun_roof_state":"unknown","vehicle_name":"Nikola","wheel_type":"Base19"}}'
|
128
|
+
http_version:
|
129
|
+
recorded_at: Wed, 17 Dec 2014 00:26:57 GMT
|
130
|
+
recorded_with: VCR 2.9.3
|