fixtures/vcr_cassettes/expand_a_long_url_should_result_an_error.yml
---
http_interactions:
- request:
method: post
uri: https://api-ssl.bitly.com/v3/expand
body:
encoding: UTF-8
string: shortURL=http%3A%2F%2Fgoogle.com&login=my-login&apiKey=my-api-key
headers:
Accept:
- "*/*; q=0.5, application/xml"
Accept-Encoding:
- gzip, deflate
Content-Length:
- '90'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Server:
- nginx
Date:
- Sat, 01 Oct 2016 19:29:26 GMT
Content-Type:
- application/json; charset=utf-8
Content-Length:
- '131'
Connection:
- keep-alive
Mime-Version:
- '1.0'
body:
encoding: UTF-8
string: '{ "status_code": 200, "status_txt": "OK", "data": { "expand": [ { "error":
"NOT_FOUND", "short_url": "http:\/\/google.com" } ] } }
'
http_version:
recorded_at: Sat, 01 Oct 2016 19:29:26 GMT
recorded_with: VCR 3.0.3