dx7/ruby-bitly

View on GitHub
fixtures/vcr_cassettes/shorten_using_invalid_login.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: post
    uri: https://api-ssl.bitly.com/v3/shorten
    body:
      encoding: UTF-8
      string: longURL=http%3A%2F%2Fbit.ly%2FbcvNe5&login=my-login&apiKey=my-api-key
    headers:
      Accept:
      - "*/*"
      Accept-Encoding:
      - gzip, deflate
      User-Agent:
      - rest-client/2.0.1 (darwin18.2.0 x86_64) ruby/2.6.3p62
      Content-Length:
      - '69'
      Content-Type:
      - application/x-www-form-urlencoded
      Host:
      - api-ssl.bitly.com
  response:
    status:
      code: 200
      message: OK
    headers:
      Server:
      - nginx
      Date:
      - Sat, 11 May 2019 22:34:41 GMT
      Content-Type:
      - application/json; charset=utf-8
      Content-Length:
      - '58'
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: '{"status_code":500,"status_txt":"INVALID_LOGIN","data":[]}'
    http_version: 
  recorded_at: Sat, 11 May 2019 22:34:42 GMT
recorded_with: VCR 4.0.0