Sha256: 9b0c3e37832d8895cb51f31ea17339f27ebd824b4110118c77c7bda8f41bef46

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://api.shutterstock.com/v2/images/licenses?subscription_id=s987654
    body:
      encoding: UTF-8
      string: '{"images":[{"image_id":"138869051"}]}'
    headers:
      User-Agent:
      - Faraday v0.10.1
      Authorization:
      - Bearer <SSTK_ACCESS_TOKEN>
      Content-Type:
      - application/json
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Server:
      - nginx
      Date:
      - Sun, 08 Jan 2017 06:44:14 GMT
      Content-Type:
      - application/json; charset=utf8
      Content-Length:
      - '166'
      Connection:
      - keep-alive
      X-End-User-Request-Id:
      - fb9372d2-7256-4a17-a1ab-592d18643883
      X-Shutterstock-Resource:
      - "/v2/images/licenses"
      X-Shutterstock-App-Version:
      - apitwo-739
      Cache-Control:
      - no-cache
      X-End-User-User-Id:
      - "<SSTK_USER_ID>"
      X-End-User-Client-Id:
      - "<SSTK_CLIENT_ID>"
    body:
      encoding: UTF-8
      string: '{"data":[{"image_id":"138869051","error":"Subscription is unusable"}],"errors":[{"message":"Failed
        to license 1 image","items":[{"image_id":"138869051","index":0}]}]}'
    http_version: 
  recorded_at: Sun, 08 Jan 2017 06:44:14 GMT
recorded_with: VCR 3.0.3

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shutterstock-v2-0.0.1 spec/cassettes/Shutterstock_License/license_single_returns_error_when_incorrect_subscription_used.yml