fixtures/vcr_cassettes/expand_a_short_url_to_it_long_url.yml
---
http_interactions:
- request:
method: post
uri: https://api-ssl.bitly.com/v3/expand
body:
encoding: UTF-8
string: shortURL=http%3A%2F%2Fbit.ly%2FbcvNe5&login=my-login&apiKey=my-api-key
headers:
Accept:
- "*/*; q=0.5, application/xml"
Accept-Encoding:
- gzip, deflate
Content-Length:
- '95'
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:
- '197'
Connection:
- keep-alive
Mime-Version:
- '1.0'
body:
encoding: UTF-8
string: '{ "status_code": 200, "status_txt": "OK", "data": { "expand": [ { "short_url":
"http:\/\/bit.ly\/bcvNe5", "long_url": "http:\/\/google.com", "user_hash":
"bcvNe5", "global_hash": "zzzzzzz" } ] } }
'
http_version:
recorded_at: Sat, 01 Oct 2016 19:29:26 GMT
recorded_with: VCR 3.0.3