Sha256: 821c8e9e1549c298b54dfc9781cf52748a6f20ff37b3e0bb3f71f64dacaf4e0a

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=s30187600
    body:
      encoding: UTF-8
      string: '{"images":[{"image_id":"509205923049"}]}'
    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 07:28:55 GMT
      Content-Type:
      - application/json; charset=utf8
      Content-Length:
      - '165'
      Connection:
      - keep-alive
      X-End-User-Request-Id:
      - e7d36b54-bf7b-46b7-b2cd-7c6e2f3b6896
      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":"509205923049","error":"Media unavailable"}],"errors":[{"message":"Failed
        to license 1 image","items":[{"image_id":"509205923049","index":0}]}]}'
    http_version: 
  recorded_at: Sun, 08 Jan 2017 07:28:55 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_multiple_returns_error_in_Licenses_when_incorrect_image_used.yml