--- http_interactions: - request: method: post uri: https://owner-api.teslamotors.com/oauth/token body: encoding: UTF-8 string: grant_type=password&client_id=&client_secret=&email=&password= headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: - "*/*" User-Agent: - Ruby response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 00:54:53 GMT Content-Type: - application/json; charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive Status: - 200 OK Cache-Control: - no-store Pragma: - no-cache X-Ua-Compatible: - IE=Edge,chrome=1 X-Request-Id: - c66049a15037753de12a2231454d5628 X-Runtime: - '0.448150' body: encoding: UTF-8 string: '{"access_token":"55c9d541197447b2b1b341c66a3b31f08b4377e0d20fe57fe2fe9f1dd4381fb0","token_type":"bearer","expires_in":7776000}' http_version: recorded_at: Wed, 17 Dec 2014 00:54:55 GMT - request: method: get uri: https://owner-api.teslamotors.com/api/1/vehicles body: encoding: US-ASCII string: '' headers: Authorization: - Bearer 55c9d541197447b2b1b341c66a3b31f08b4377e0d20fe57fe2fe9f1dd4381fb0 response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 00:54:54 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - '446' Connection: - keep-alive Status: - 200 OK X-Ua-Compatible: - IE=Edge,chrome=1 Etag: - '"92bf165299826af7b9ed0b8f3886e15e"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 0cffcad0c9bcbe347219df03af20d4d1 X-Runtime: - '0.055126' body: encoding: UTF-8 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":["91a139ce322eed65","493cead2e5ab6535"],"state":"online","remote_start_enabled":true,"calendar_enabled":true,"notifications_enabled":true}],"count":1}' http_version: recorded_at: Wed, 17 Dec 2014 00:54:56 GMT - request: method: post uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/command/charge_max_range body: encoding: UTF-8 string: '' headers: Authorization: - Bearer 55c9d541197447b2b1b341c66a3b31f08b4377e0d20fe57fe2fe9f1dd4381fb0 response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 00:54:55 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - '40' Connection: - keep-alive Status: - 200 OK X-Ua-Compatible: - IE=Edge,chrome=1 Etag: - '"f67eec105dd6522783a1f1bacc52723a"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 6469582a38daf1a77d1eab48ef6ad132 X-Runtime: - '0.792509' body: encoding: UTF-8 string: '{"response":{"reason":"","result":true}}' http_version: recorded_at: Wed, 17 Dec 2014 00:54:57 GMT - request: method: post uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/command/charge_max_range body: encoding: UTF-8 string: '' headers: Authorization: - Bearer 55c9d541197447b2b1b341c66a3b31f08b4377e0d20fe57fe2fe9f1dd4381fb0 response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 00:54:56 GMT Content-Type: - application/json; charset=utf-8 Content-Length: - '58' Connection: - keep-alive Status: - 200 OK X-Ua-Compatible: - IE=Edge,chrome=1 Etag: - '"166ceb8e24f75b4a416e51ce669070f3"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - f8db727016811e7014b072e73fff30ea X-Runtime: - '0.229436' body: encoding: UTF-8 string: '{"response":{"reason":"already_max_range","result":false}}' http_version: recorded_at: Wed, 17 Dec 2014 00:54:58 GMT recorded_with: VCR 2.9.3