--- 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: Authorization: - Bearer 0383e3ae4c7d8e14ba17af871cf5211c426ff7e1639bec095d27647f4d133c8b response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 01:32:44 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 Etag: - '"aa85933c70f2c3fbd6acd6fc978ffe2f"' X-Request-Id: - 81a88ba10d3139af32494e4580eb5c5b X-Runtime: - '0.792461' body: encoding: UTF-8 string: '{"access_token":"856adf41e24657ade01c2c9b6b3ea7eb7eeca4fa4c48e56e10649ed90603bea4","token_type":"bearer","expires_in":7776000}' http_version: recorded_at: Wed, 17 Dec 2014 01:32:46 GMT - request: method: get uri: https://owner-api.teslamotors.com/api/1/vehicles body: encoding: US-ASCII string: '' headers: Authorization: - Bearer 856adf41e24657ade01c2c9b6b3ea7eb7eeca4fa4c48e56e10649ed90603bea4 response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 01:32:44 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: - '"c52908b8db9336f89e7a1602f3b2a458"' Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - 881d67d19f4d44dfd5d7d2fc0b5a2753 X-Runtime: - '0.046586' 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":["b1278e37b13e8df2","b2fd1ad42f706a73"],"state":"online","remote_start_enabled":true,"calendar_enabled":true,"notifications_enabled":true}],"count":1}' http_version: recorded_at: Wed, 17 Dec 2014 01:32:46 GMT - request: method: post uri: https://owner-api.teslamotors.com/api/1/vehicles/1514029006966957156/command/set_charge_limit body: encoding: UTF-8 string: percent=90 headers: Authorization: - Bearer 856adf41e24657ade01c2c9b6b3ea7eb7eeca4fa4c48e56e10649ed90603bea4 response: status: code: 200 message: OK headers: Server: - nginx Date: - Wed, 17 Dec 2014 01:32:45 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: - 7c928b8b7c18fa848360a8391ce78795 X-Runtime: - '0.240470' body: encoding: UTF-8 string: '{"response":{"reason":"","result":true}}' http_version: recorded_at: Wed, 17 Dec 2014 01:32:47 GMT recorded_with: VCR 2.9.3