--- http_interactions: - request: method: post uri: https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyAygf2bk2L1QTGfOdQKQqnOzvlcFX4dmjY body: encoding: UTF-8 string: ! '{"longUrl":"http://www.google.com"}' headers: User-Agent: - Typhoeus - https://github.com/typhoeus/typhoeus Content-Type: - application/json response: status: code: 200 message: OK headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: - no-cache Expires: - Fri, 01 Jan 1990 00:00:00 GMT Date: - Sun, 18 Aug 2013 09:43:44 GMT Etag: - ! '"7QRh0l_StuZTJyavuy4-STROp7U/sJMG8iMchFaYf0TcrMJfiz7WfsI"' Content-Type: - application/json; charset=UTF-8 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block Server: - GSE Transfer-Encoding: - chunked body: encoding: US-ASCII string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n \"longUrl\": \"http://www.google.com/\"\n}\n" http_version: recorded_at: Sun, 18 Aug 2013 09:43:34 GMT - request: method: post uri: https://www.googleapis.com/urlshortener/v1/url body: encoding: UTF-8 string: ! '{"longUrl":"http://www.google.com"}' headers: User-Agent: - Typhoeus - https://github.com/typhoeus/typhoeus Content-Type: - application/json response: status: code: 200 message: OK headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: - no-cache Expires: - Fri, 01 Jan 1990 00:00:00 GMT Date: - Wed, 28 Aug 2013 05:11:06 GMT Etag: - ! '"xNgc-b3neWtxg-SZficvM7330kM/sJMG8iMchFaYf0TcrMJfiz7WfsI"' Content-Type: - application/json; charset=UTF-8 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block Server: - GSE Transfer-Encoding: - chunked body: encoding: US-ASCII string: ! "{\n \"kind\": \"urlshortener#url\",\n \"id\": \"http://goo.gl/fbsS\",\n \"longUrl\": \"http://www.google.com/\"\n}\n" http_version: recorded_at: Wed, 28 Aug 2013 05:11:01 GMT - request: method: post uri: https://www.googleapis.com/urlshortener/v1/url?key=12345 body: encoding: UTF-8 string: ! '{"longUrl":"http://www.google.com"}' headers: User-Agent: - Typhoeus - https://github.com/typhoeus/typhoeus Content-Type: - application/json response: status: code: 400 message: Bad Request headers: Content-Type: - application/json; charset=UTF-8 Date: - Fri, 06 Sep 2013 08:25:29 GMT Expires: - Fri, 06 Sep 2013 08:25:29 GMT Cache-Control: - private, max-age=0 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Xss-Protection: - 1; mode=block Server: - GSE Alternate-Protocol: - 443:quic Transfer-Encoding: - chunked body: encoding: US-ASCII string: ! "{\n \"error\": {\n \"errors\": [\n {\n \"domain\": \"usageLimits\",\n \ \"reason\": \"keyInvalid\",\n \"message\": \"Bad Request\"\n }\n \ ],\n \"code\": 400,\n \"message\": \"Bad Request\"\n }\n}\n" http_version: recorded_at: Fri, 06 Sep 2013 08:25:30 GMT recorded_with: VCR 2.5.0