Sha256: d050cd62e4c6840ed2cb1f8871f78cf7b68ac9a7d2fcd3ec8ef37b754f78f45f

Contents?: true

Size: 1.46 KB

Versions: 9

Compression:

Stored size: 1.46 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: "<BRAZE_REST_URL>/messages/send"
    body:
      encoding: UTF-8
      string: '{"api_key":"non-existent","messages":{"apple_push":{"alert":"hello"}},"external_user_ids":[1]}'
    headers:
      User-Agent:
      - Faraday v0.14.0
      Content-Type:
      - application/json
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 401
      message: Unauthorized
    headers:
      Cache-Control:
      - no-cache
      Content-Type:
      - application/json
      Server:
      - nginx
      Strict-Transport-Security:
      - max-age=0; includeSubDomains
      X-Ratelimit-Limit:
      - ''
      X-Ratelimit-Remaining:
      - ''
      X-Ratelimit-Reset:
      - ''
      X-Request-Id:
      - b9f8ce77-4265-46a4-8010-04dad0d35c92
      X-Runtime:
      - '0.006126'
      Content-Length:
      - '85'
      Accept-Ranges:
      - bytes
      Date:
      - Tue, 17 Apr 2018 21:08:23 GMT
      Via:
      - 1.1 varnish
      Connection:
      - keep-alive
      X-Served-By:
      - cache-pdk17839-PDK
      X-Cache:
      - MISS
      X-Cache-Hits:
      - '0'
      X-Timer:
      - S1523999303.988243,VS0,VE44
      Vary:
      - Accept-Encoding
    body:
      encoding: ASCII-8BIT
      string: '{"message":"Invalid App Group API Identifier: non-existent"}'
    http_version: 
  recorded_at: Tue, 17 Apr 2018 21:08:23 GMT
recorded_with: VCR 4.0.0

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
braze_ruby-0.3.3 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.3.2 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.3.1 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.2.2 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.2.1 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.2.0 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.1.0 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.0.2 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml
braze_ruby-0.0.1 spec/fixtures/responses/send_messages/unauthorized/responds_with_unauthorized.yml