Sha256: eaca2296e308676101c8db7d97b3d8fb5382f3cbec05ce9055e3f50c4532eb07

Contents?: true

Size: 1.72 KB

Versions: 6

Compression:

Stored size: 1.72 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://api.twilio.com/2010-04-01/Accounts/account_sid/Messages.json
    body:
      encoding: US-ASCII
      string: Body=Hello+World&From=%2B15005550001&To=%2B15005550006
    headers:
      Accept:
      - application/json
      Accept-Charset:
      - utf-8
      User-Agent:
      - twilio-ruby/4.13.0 (ruby/x86_64-darwin14 2.2.1-p85)
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Authorization:
      - Basic YWNjb3VudF9pZDphdXRoX3Rva2Vu
      Content-Type:
      - application/x-www-form-urlencoded
  response:
    status:
      code: 400
      message: BAD REQUEST
    headers:
      Access-Control-Allow-Credentials:
      - 'true'
      Access-Control-Allow-Headers:
      - Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match,
        If-Unmodified-Since
      Access-Control-Allow-Methods:
      - GET, POST, DELETE, OPTIONS
      Access-Control-Allow-Origin:
      - "*"
      Access-Control-Expose-Headers:
      - ETag
      Content-Type:
      - application/json; charset=utf-8
      Date:
      - Fri, 23 Sep 2016 12:53:22 GMT
      Twilio-Request-Duration:
      - '0.093'
      Twilio-Request-Id:
      - Twilio-Request-Id
      X-Powered-By:
      - AT-5000
      X-Shenanigans:
      - none
      Content-Length:
      - '199'
      Connection:
      - keep-alive
    body:
      encoding: UTF-8
      string: '{"code": 21212, "message": "The ''From'' number +15005550001 is not
        a valid phone number, shortcode, or alphanumeric sender ID.", "more_info":
        "https://www.twilio.com/docs/errors/21212", "status": 400}'
    http_version:
  recorded_at: Fri, 23 Sep 2016 12:53:22 GMT
recorded_with: VCR 3.0.3

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sms_broker-1.0.8 spec/support/vcr_cassettes/twilio/create_invalid_phone_error.yml
sms_broker-1.0.7 spec/support/vcr_cassettes/twilio/create_invalid_phone_error.yml
sms_broker-1.0.5 spec/support/vcr_cassettes/twilio/create_invalid_phone_error.yml
sms_broker-1.0.4 spec/support/vcr_cassettes/twilio/create_invalid_phone_error.yml
sms_broker-1.0.3 spec/support/vcr_cassettes/twilio/create_invalid_phone_error.yml
sms_broker-1.0.2 spec/support/vcr_cassettes/twilio/create_invalid_phone_error.yml