--- 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 01:05:03 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: - bad57ec5aadb2cd79ff6a050d86eb9b5 X-Runtime: - '0.347671' body: encoding: UTF-8 string: '{"access_token":"52a20c2f250a12541bf54fdbad7b7d530c9c16b7eab5a49a632ce4ff92dd49ca","token_type":"bearer","expires_in":7776000}' http_version: recorded_at: Wed, 17 Dec 2014 01:05:05 GMT - request: method: get uri: https://owner-api.teslamotors.com/api/1/vehicles body: encoding: US-ASCII string: '' headers: Authorization: - Bearer 52a20c2f250a12541bf54fdbad7b7d530c9c16b7eab5a49a632ce4ff92dd49ca response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 01:05:04 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: - '"900c699a9c4c6d36d87b1902a2fda748"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 60cc8443cdeea606ea749a11254ac938 X-Runtime: - '0.049626' 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":["a1f3fab6393d3a6a","91a139ce322eed65"],"state":"online","remote_start_enabled":true,"calendar_enabled":true,"notifications_enabled":true}],"count":1}' http_version: recorded_at: Wed, 17 Dec 2014 01:05:05 GMT - request: method: post uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/command/flash_lights body: encoding: UTF-8 string: '' headers: Authorization: - Bearer 52a20c2f250a12541bf54fdbad7b7d530c9c16b7eab5a49a632ce4ff92dd49ca response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 01:05:06 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: - d02448114303e2bf64d186b9f07f6e23 X-Runtime: - '1.747628' body: encoding: UTF-8 string: '{"response":{"reason":"","result":true}}' http_version: recorded_at: Wed, 17 Dec 2014 01:05:07 GMT recorded_with: VCR 2.9.3