tesla-api 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,134 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://portal.vn.teslamotors.com/login
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: !binary |-
9
+ foo==
10
+ headers:
11
+ Content-Type:
12
+ - application/x-www-form-urlencoded
13
+ response:
14
+ status:
15
+ code: 302
16
+ message: Found
17
+ headers:
18
+ Location:
19
+ - https://portal.vn.teslamotors.com/
20
+ Content-Type:
21
+ - text/html; charset=utf-8
22
+ X-Ua-Compatible:
23
+ - IE=Edge,chrome=1
24
+ Cache-Control:
25
+ - no-cache
26
+ Set-Cookie:
27
+ - _s_portal_session=;
28
+ path=/; secure; HttpOnly
29
+ - user_credentials=;
30
+ path=/; expires=Sat, 18-May-2013 01:17:24 GMT; secure; HttpOnly
31
+ X-Request-Id:
32
+ - cf7bb7ec90285a733e16c56337568870
33
+ X-Runtime:
34
+ - '1.249496'
35
+ Date:
36
+ - Mon, 18 Feb 2013 01:17:24 GMT
37
+ X-Rack-Cache:
38
+ - invalidate, pass
39
+ Server:
40
+ - thin 1.4.1 codename Chromeo
41
+ Transfer-Encoding:
42
+ - chunked
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <html><body>You are being <a href="https://portal.vn.teslamotors.com/">redirected</a>.</body></html>
46
+ http_version:
47
+ recorded_at: Mon, 18 Feb 2013 01:17:27 GMT
48
+ - request:
49
+ method: get
50
+ uri: https://portal.vn.teslamotors.com/vehicles?
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ headers:
55
+ Cookie:
56
+ - user_credentials=;
57
+ _s_portal_session=
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Content-Type:
64
+ - application/json; charset=utf-8
65
+ X-Ua-Compatible:
66
+ - IE=Edge,chrome=1
67
+ Etag:
68
+ - ! '"cb4c586270e47aac1f5eba1873023ecd"'
69
+ Cache-Control:
70
+ - must-revalidate, private, max-age=0
71
+ Set-Cookie:
72
+ - _s_portal_session=;
73
+ path=/; secure; HttpOnly
74
+ X-Request-Id:
75
+ - 6585feb4d374cc9971077ad18cfb1e15
76
+ X-Runtime:
77
+ - '0.017446'
78
+ Date:
79
+ - Mon, 18 Feb 2013 01:17:24 GMT
80
+ X-Rack-Cache:
81
+ - miss
82
+ Server:
83
+ - thin 1.4.1 codename Chromeo
84
+ Transfer-Encoding:
85
+ - chunked
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! '[{"color":null,"display_name":null,"id":13,"option_codes":"MS01,RENA","user_id":21,"vehicle_id":1408,"vin":"5YJSA","tokens":["93b0e5b65b8a991b","d26a02e14e35b683"],"state":"online"}]'
89
+ http_version:
90
+ recorded_at: Mon, 18 Feb 2013 01:17:27 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://portal.vn.teslamotors.com/vehicles/13/command/drive_state?
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Cookie:
99
+ - user_credentials=;
100
+ _s_portal_session=
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ Content-Type:
107
+ - application/json; charset=utf-8
108
+ X-Ua-Compatible:
109
+ - IE=Edge,chrome=1
110
+ Etag:
111
+ - ! '"a8f90ee58ec5a474711f3511ffb98d1b"'
112
+ Cache-Control:
113
+ - must-revalidate, private, max-age=0
114
+ Set-Cookie:
115
+ - _s_portal_session=;
116
+ path=/; secure; HttpOnly
117
+ X-Request-Id:
118
+ - bc6cbd3f829681da11034368eb34fab7
119
+ X-Runtime:
120
+ - '1.400069'
121
+ Date:
122
+ - Mon, 18 Feb 2013 01:17:26 GMT
123
+ X-Rack-Cache:
124
+ - miss
125
+ Server:
126
+ - thin 1.4.1 codename Chromeo
127
+ Transfer-Encoding:
128
+ - chunked
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ! '{"shift_state":null,"speed":null,"latitude":17.82365,"longitude":-72.752896,"heading":180,"gps_as_of":1361150244}'
132
+ http_version:
133
+ recorded_at: Mon, 18 Feb 2013 01:17:29 GMT
134
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,134 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://portal.vn.teslamotors.com/login
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: !binary |-
9
+ foo==
10
+ headers:
11
+ Content-Type:
12
+ - application/x-www-form-urlencoded
13
+ response:
14
+ status:
15
+ code: 302
16
+ message: Found
17
+ headers:
18
+ Location:
19
+ - https://portal.vn.teslamotors.com/
20
+ Content-Type:
21
+ - text/html; charset=utf-8
22
+ X-Ua-Compatible:
23
+ - IE=Edge,chrome=1
24
+ Cache-Control:
25
+ - no-cache
26
+ Set-Cookie:
27
+ - _s_portal_session=;
28
+ path=/; secure; HttpOnly
29
+ - user_credentials=;
30
+ path=/; expires=Sat, 18-May-2013 01:17:28 GMT; secure; HttpOnly
31
+ X-Request-Id:
32
+ - 4d3d9cf4cff59bed22e7407cf4de93e1
33
+ X-Runtime:
34
+ - '1.218319'
35
+ Date:
36
+ - Mon, 18 Feb 2013 01:17:28 GMT
37
+ X-Rack-Cache:
38
+ - invalidate, pass
39
+ Server:
40
+ - thin 1.4.1 codename Chromeo
41
+ Transfer-Encoding:
42
+ - chunked
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <html><body>You are being <a href="https://portal.vn.teslamotors.com/">redirected</a>.</body></html>
46
+ http_version:
47
+ recorded_at: Mon, 18 Feb 2013 01:17:31 GMT
48
+ - request:
49
+ method: get
50
+ uri: https://portal.vn.teslamotors.com/vehicles?
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ headers:
55
+ Cookie:
56
+ - user_credentials=;
57
+ _s_portal_session=
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Content-Type:
64
+ - application/json; charset=utf-8
65
+ X-Ua-Compatible:
66
+ - IE=Edge,chrome=1
67
+ Etag:
68
+ - ! '"cb4c586270e47aac1f5eba1873023ecd"'
69
+ Cache-Control:
70
+ - must-revalidate, private, max-age=0
71
+ Set-Cookie:
72
+ - _s_portal_session=;
73
+ path=/; secure; HttpOnly
74
+ X-Request-Id:
75
+ - 918baa38f29e23af007b82d0c5fb5283
76
+ X-Runtime:
77
+ - '0.016538'
78
+ Date:
79
+ - Mon, 18 Feb 2013 01:17:28 GMT
80
+ X-Rack-Cache:
81
+ - miss
82
+ Server:
83
+ - thin 1.4.1 codename Chromeo
84
+ Transfer-Encoding:
85
+ - chunked
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! '[{"color":null,"display_name":null,"id":13,"option_codes":"MS01,RENA","user_id":21,"vehicle_id":1408,"vin":"5YJSA","tokens":["93b0e5b65b8a991b","d26a02e14e35b683"],"state":"online"}]'
89
+ http_version:
90
+ recorded_at: Mon, 18 Feb 2013 01:17:31 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://portal.vn.teslamotors.com/vehicles/13/command/gui_settings?
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Cookie:
99
+ - user_credentials=;
100
+ _s_portal_session=
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ Content-Type:
107
+ - application/json; charset=utf-8
108
+ X-Ua-Compatible:
109
+ - IE=Edge,chrome=1
110
+ Etag:
111
+ - ! '"9a339b41d4e32f7454c4e5b44bb7b96c"'
112
+ Cache-Control:
113
+ - must-revalidate, private, max-age=0
114
+ Set-Cookie:
115
+ - _s_portal_session=;
116
+ path=/; secure; HttpOnly
117
+ X-Request-Id:
118
+ - 8e9a26903221100feb7aa5350e317c90
119
+ X-Runtime:
120
+ - '0.320856'
121
+ Date:
122
+ - Mon, 18 Feb 2013 01:17:28 GMT
123
+ X-Rack-Cache:
124
+ - miss
125
+ Server:
126
+ - thin 1.4.1 codename Chromeo
127
+ Transfer-Encoding:
128
+ - chunked
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ! '{"gui_distance_units":"mi/hr","gui_temperature_units":"F","gui_charge_rate_units":"kW","gui_24_hour_time":false,"gui_range_display":"Rated"}'
132
+ http_version:
133
+ recorded_at: Mon, 18 Feb 2013 01:17:32 GMT
134
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://portal.vn.teslamotors.com/login
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: !binary |-
9
+ foo==
10
+ headers:
11
+ Content-Type:
12
+ - application/x-www-form-urlencoded
13
+ response:
14
+ status:
15
+ code: 302
16
+ message: Found
17
+ headers:
18
+ Location:
19
+ - https://portal.vn.teslamotors.com/
20
+ Content-Type:
21
+ - text/html; charset=utf-8
22
+ X-Ua-Compatible:
23
+ - IE=Edge,chrome=1
24
+ Cache-Control:
25
+ - no-cache
26
+ Set-Cookie:
27
+ - _s_portal_session=;
28
+ path=/; secure; HttpOnly
29
+ - user_credentials=;
30
+ path=/; expires=Sat, 18-May-2013 01:17:34 GMT; secure; HttpOnly
31
+ X-Request-Id:
32
+ - c2b8c988e882e67a479a1be464956630
33
+ X-Runtime:
34
+ - '1.188819'
35
+ Date:
36
+ - Mon, 18 Feb 2013 01:17:34 GMT
37
+ X-Rack-Cache:
38
+ - invalidate, pass
39
+ Server:
40
+ - thin 1.4.1 codename Chromeo
41
+ Transfer-Encoding:
42
+ - chunked
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <html><body>You are being <a href="https://portal.vn.teslamotors.com/">redirected</a>.</body></html>
46
+ http_version:
47
+ recorded_at: Mon, 18 Feb 2013 01:17:37 GMT
48
+ - request:
49
+ method: get
50
+ uri: https://portal.vn.teslamotors.com/vehicles?
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ headers:
55
+ Cookie:
56
+ - user_credentials=;
57
+ _s_portal_session=
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Content-Type:
64
+ - application/json; charset=utf-8
65
+ X-Ua-Compatible:
66
+ - IE=Edge,chrome=1
67
+ Etag:
68
+ - ! '"cb4c586270e47aac1f5eba1873023ecd"'
69
+ Cache-Control:
70
+ - must-revalidate, private, max-age=0
71
+ Set-Cookie:
72
+ - _s_portal_session=;
73
+ path=/; secure; HttpOnly
74
+ X-Request-Id:
75
+ - 6514a493f75bb9dbfca465588efb9998
76
+ X-Runtime:
77
+ - '0.021226'
78
+ Date:
79
+ - Mon, 18 Feb 2013 01:17:34 GMT
80
+ X-Rack-Cache:
81
+ - miss
82
+ Server:
83
+ - thin 1.4.1 codename Chromeo
84
+ Transfer-Encoding:
85
+ - chunked
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! '[{"color":null,"display_name":null,"id":13,"option_codes":"MS01,RENA","user_id":21,"vehicle_id":14085,"vin":"5YJSA","tokens":["93b0e5b65b8a991b","d26a02e14e35b683"],"state":"online"}]'
89
+ http_version:
90
+ recorded_at: Mon, 18 Feb 2013 01:17:37 GMT
91
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,134 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://portal.vn.teslamotors.com/login
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: !binary |-
9
+ foo==
10
+ headers:
11
+ Content-Type:
12
+ - application/x-www-form-urlencoded
13
+ response:
14
+ status:
15
+ code: 302
16
+ message: Found
17
+ headers:
18
+ Location:
19
+ - https://portal.vn.teslamotors.com/
20
+ Content-Type:
21
+ - text/html; charset=utf-8
22
+ X-Ua-Compatible:
23
+ - IE=Edge,chrome=1
24
+ Cache-Control:
25
+ - no-cache
26
+ Set-Cookie:
27
+ - _s_portal_session=;
28
+ path=/; secure; HttpOnly
29
+ - user_credentials=;
30
+ path=/; expires=Sat, 18-May-2013 01:20:03 GMT; secure; HttpOnly
31
+ X-Request-Id:
32
+ - 2cd1412cd82bcf8f0eda88dbeb6eccd5
33
+ X-Runtime:
34
+ - '1.205157'
35
+ Date:
36
+ - Mon, 18 Feb 2013 01:20:03 GMT
37
+ X-Rack-Cache:
38
+ - invalidate, pass
39
+ Server:
40
+ - thin 1.4.1 codename Chromeo
41
+ Transfer-Encoding:
42
+ - chunked
43
+ body:
44
+ encoding: US-ASCII
45
+ string: <html><body>You are being <a href="https://portal.vn.teslamotors.com/">redirected</a>.</body></html>
46
+ http_version:
47
+ recorded_at: Mon, 18 Feb 2013 01:20:06 GMT
48
+ - request:
49
+ method: get
50
+ uri: https://portal.vn.teslamotors.com/vehicles?
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ''
54
+ headers:
55
+ Cookie:
56
+ - user_credentials=;
57
+ _s_portal_session=
58
+ response:
59
+ status:
60
+ code: 200
61
+ message: OK
62
+ headers:
63
+ Content-Type:
64
+ - application/json; charset=utf-8
65
+ X-Ua-Compatible:
66
+ - IE=Edge,chrome=1
67
+ Etag:
68
+ - ! '"cb4c586270e47aac1f5eba1873023ecd"'
69
+ Cache-Control:
70
+ - must-revalidate, private, max-age=0
71
+ Set-Cookie:
72
+ - _s_portal_session=;
73
+ path=/; secure; HttpOnly
74
+ X-Request-Id:
75
+ - ed2c1839a59935c3b983a1cff9bcc35d
76
+ X-Runtime:
77
+ - '0.169168'
78
+ Date:
79
+ - Mon, 18 Feb 2013 01:20:04 GMT
80
+ X-Rack-Cache:
81
+ - miss
82
+ Server:
83
+ - thin 1.4.1 codename Chromeo
84
+ Transfer-Encoding:
85
+ - chunked
86
+ body:
87
+ encoding: US-ASCII
88
+ string: ! '[{"color":null,"display_name":null,"id":13,"option_codes":"MS01,RENA","user_id":21,"vehicle_id":1408,"vin":"5YJSA","tokens":["93b0e5b65b8a991b","d26a02e14e35b683"],"state":"online"}]'
89
+ http_version:
90
+ recorded_at: Mon, 18 Feb 2013 01:20:07 GMT
91
+ - request:
92
+ method: get
93
+ uri: https://portal.vn.teslamotors.com/vehicles/13/command/vehicle_state?
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Cookie:
99
+ - user_credentials=;
100
+ _s_portal_session=
101
+ response:
102
+ status:
103
+ code: 200
104
+ message: OK
105
+ headers:
106
+ Content-Type:
107
+ - application/json; charset=utf-8
108
+ X-Ua-Compatible:
109
+ - IE=Edge,chrome=1
110
+ Etag:
111
+ - ! '"9e736ce6efc7e95c09431e5e797bf728"'
112
+ Cache-Control:
113
+ - must-revalidate, private, max-age=0
114
+ Set-Cookie:
115
+ - _s_portal_session=;
116
+ path=/; secure; HttpOnly
117
+ X-Request-Id:
118
+ - 6dc1f77f6f8ef0dbae05db0fe2d4b0b9
119
+ X-Runtime:
120
+ - '3.737887'
121
+ Date:
122
+ - Mon, 18 Feb 2013 01:20:07 GMT
123
+ X-Rack-Cache:
124
+ - miss
125
+ Server:
126
+ - thin 1.4.1 codename Chromeo
127
+ Transfer-Encoding:
128
+ - chunked
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ! '{"df":false,"dr":false,"pf":false,"pr":false,"ft":false,"rt":false,"car_version":"1.19.42","locked":true,"sun_roof_installed":true,"sun_roof_state":"unknown","sun_roof_percent_open":0,"dark_rims":false,"wheel_type":"Base19","has_spoiler":false,"roof_color":"None","perf_config":"Base"}'
132
+ http_version:
133
+ recorded_at: Mon, 18 Feb 2013 01:20:11 GMT
134
+ recorded_with: VCR 2.4.0