Created
March 21, 2011 01:21
-
-
Save jonhoman/878871 to your computer and use it in GitHub Desktop.
Example VCR YAML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- !ruby/struct:VCR::HTTPInteraction | |
request: !ruby/struct:VCR::Request | |
method: :get | |
uri: http://api.bit.ly:80/v3/clicks?apiKey=R_504029652b3e3b641ac2ad781723c96a&hash=fXEv5E&login=jonhoman | |
body: | |
headers: | |
response: !ruby/struct:VCR::Response | |
status: !ruby/struct:VCR::ResponseStatus | |
code: 200 | |
message: OK | |
headers: | |
etag: | |
- "\"cbe28a528b53a48f0566294ae3794ecdc2dea56e\"" | |
content-type: | |
- application/json; charset=utf-8 | |
server: | |
- nginx | |
date: | |
- Sat, 19 Mar 2011 15:40:32 GMT | |
content-length: | |
- "170" | |
body: "{\"status_code\": 200, \"data\": {\"clicks\": [{\"user_clicks\": 0, \"global_hash\": \"heezy\", \"hash\": \"fXEv5E\", \"user_hash\": \"fXEv5E\", \"global_clicks\": 2359}]}, \"status_txt\": \"OK\"}" | |
http_version: "1.1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment