signalwire 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e43bdfb0fa86876ddb0f38fe86ce1edc1c47e096ab8bd14f832a1bf5a0a5c6e
4
- data.tar.gz: d62bc07f6d2ab458e4c60274d89115c59c49d8b7b421ca2d1801522e367510b7
3
+ metadata.gz: a80144d46e9bd7758cb3588fd96fe4a8ca868598949058e492dca9edaed9c70b
4
+ data.tar.gz: ca5cda0db618955afbe8f35797590574e7db444d4dcc30c66f92aa48cd24422a
5
5
  SHA512:
6
- metadata.gz: bb4463e423f286b81adc760af0dd6a34688e4976bc1bcc901bcbce6aa70fe33bf4f2b71231ac7113cf09eef87ecef06262a325c3ffc991134277e93031565327
7
- data.tar.gz: 1d58486cc8b9ba8cf0a60430b6e536ee566c74a301efcb755cb7dd51b8c904cb0843f16bc5fb3b55d13c65642e65381f0b18766dc539cc1f08c41005bc111b3d
6
+ metadata.gz: eafbc87230e4112f47e08d74e9cbaadac14039b0c694c9530373f7a1bcd11e25da0b8c6df53296fc0000a7b465c0b8ae5acea76d910ede6da2d57cbbaf84f6b6
7
+ data.tar.gz: 219dadf606f467f9c1c0773152a90164e0fbcbef354c0403b27e01cca25e0cd72800c37232d5e0085e96e1f469b44e4eb5ba6113ccf666177a7f2cd0114cebb7
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.0
4
+
5
+ - Fax REST API support, better tests
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  - Added Fax support
data/README.md CHANGED
@@ -4,6 +4,8 @@ This gem provides a client for the Signalwire LAML and REST services.
4
4
 
5
5
  It allows you to create calls, send messages, and generate LAML responses.
6
6
 
7
+ [![Gem Version](https://badge.fury.io/rb/signalwire.svg)](https://badge.fury.io/rb/signalwire)
8
+
7
9
  ## Installation
8
10
 
9
11
  Add `gem 'signalwire'` to your `Gemfile`, or simply `gem install signalwire`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -4,6 +4,7 @@ require 'twilio-ruby'
4
4
 
5
5
  require 'signalwire/sdk/configuration'
6
6
  require 'signalwire/sdk/twilio_set_host'
7
+ require 'signalwire/sdk/twilio_set_fax'
7
8
  require 'signalwire/sdk/domain'
8
9
  require 'signalwire/sdk/voice_response'
9
10
  require 'signalwire/sdk/fax_response'
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Twilio
4
+ module REST
5
+ class Fax < Domain
6
+ def initialize(twilio)
7
+ super
8
+
9
+ @host = ENV['SIGNALWIRE_SPACE_URL'] || Signalwire::Sdk.configuration.hostname || raise(ArgumentError,
10
+ 'SignalWire Space URL is not configured. Enter your SignalWire Space domain via the '\
11
+ 'SIGNALWIRE_SPACE_URL environment variable, or hostname in the configuration.')
12
+ @base_url = "https://#{@host}/api/laml"
13
+ @port = 443
14
+
15
+ # Versions
16
+ @v1= nil
17
+
18
+ # New properties
19
+ @account_sid = twilio.account_sid
20
+ end
21
+
22
+ def hostname
23
+ @host
24
+ end
25
+
26
+ def account_sid
27
+ @account_sid
28
+ end
29
+
30
+ class V1 < Version
31
+ def initialize(domain)
32
+ super
33
+ @version = "2010-04-01/Accounts/#{domain.account_sid}"
34
+ @faxes = nil
35
+ end
36
+
37
+ class FaxList < ListResource
38
+ def initialize(version)
39
+ super(version)
40
+
41
+ @solution = {}
42
+ @uri = "/Faxes.json"
43
+ end
44
+ end
45
+
46
+ class FaxContext < InstanceContext
47
+ def initialize(version, sid)
48
+ super(version)
49
+
50
+ @solution = { sid: sid }
51
+ @uri = "/Faxes/#{@solution[:sid]}.json"
52
+
53
+ @media = nil
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -7,7 +7,7 @@ module Twilio
7
7
  super
8
8
 
9
9
  @host = ENV['SIGNALWIRE_SPACE_URL'] || Signalwire::Sdk.configuration.hostname || raise(ArgumentError,
10
- 'Signalwire Space URL is not configured. Enter your Signalwire Space domain via the '\
10
+ 'SignalWire Space URL is not configured. Enter your SignalWire Space domain via the '\
11
11
  'SIGNALWIRE_SPACE_URL environment variable, or hostname in the configuration.')
12
12
  @base_url = "https://#{@host}/api/laml"
13
13
  @port = 443
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: signalwire 1.2.0 ruby lib
5
+ # stub: signalwire 1.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "signalwire".freeze
9
- s.version = "1.2.0"
9
+ s.version = "1.3.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["SignalWire Team".freeze]
14
- s.date = "2018-12-29"
14
+ s.date = "2019-01-15"
15
15
  s.email = "open.source@signalwire.com".freeze
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
@@ -37,6 +37,7 @@ Gem::Specification.new do |s|
37
37
  "lib/signalwire/sdk/domain.rb",
38
38
  "lib/signalwire/sdk/fax_response.rb",
39
39
  "lib/signalwire/sdk/messaging_response.rb",
40
+ "lib/signalwire/sdk/twilio_set_fax.rb",
40
41
  "lib/signalwire/sdk/twilio_set_host.rb",
41
42
  "lib/signalwire/sdk/voice_response.rb",
42
43
  "signalwire.gemspec",
@@ -50,8 +51,13 @@ Gem::Specification.new do |s|
50
51
  "spec/spec_helper.rb",
51
52
  "spec/vcr_cassettes/accounts.yml",
52
53
  "spec/vcr_cassettes/applications.yml",
54
+ "spec/vcr_cassettes/get_fax.yml",
55
+ "spec/vcr_cassettes/get_fax_media_instance.yml",
56
+ "spec/vcr_cassettes/get_fax_media_list.yml",
57
+ "spec/vcr_cassettes/list_faxes.yml",
53
58
  "spec/vcr_cassettes/local_numbers.yml",
54
59
  "spec/vcr_cassettes/recordings.yml",
60
+ "spec/vcr_cassettes/send_fax.yml",
55
61
  "spec/vcr_cassettes/toll_free_numbers.yml",
56
62
  "spec/vcr_cassettes/transcriptions.yml"
57
63
  ]
@@ -55,4 +55,48 @@ RSpec.describe Signalwire::REST::Client do
55
55
  expect(recordings.first.recording_sid).to eq 'e4c78e17-c0e2-441d-b5dd-39a6dad496f8'
56
56
  end
57
57
  end
58
+
59
+ context 'faxes' do
60
+ it 'sends a fax' do
61
+ VCR.use_cassette('send_fax') do
62
+ fax = @client.fax.faxes
63
+ .create(
64
+ from: '+15556677888',
65
+ to: '+15556677999',
66
+ media_url: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf'
67
+ )
68
+ expect(fax.sid).to eq '831455c6-574e-4d8b-b6ee-2418140bf4cd'
69
+ end
70
+ end
71
+
72
+ it 'lists faxes' do
73
+ VCR.use_cassette('list_faxes') do
74
+ faxes = @client.fax.faxes.list
75
+ expect(faxes.first.sid).to eq '831455c6-574e-4d8b-b6ee-2418140bf4cd'
76
+ end
77
+ end
78
+
79
+ it 'gets a fax' do
80
+ VCR.use_cassette('get_fax') do
81
+ fax = @client.fax.faxes('831455c6-574e-4d8b-b6ee-2418140bf4cd').fetch
82
+ expect(fax.to).to eq '+15556677999'
83
+ expect(fax.media_url).to eq 'https://s3.us-east-2.amazonaws.com/signalwire-assets/faxes/20190104162834-831455c6-574e-4d8b-b6ee-2418140bf4cd.tiff'
84
+ end
85
+ end
86
+
87
+ it 'gets a faxes media' do
88
+ VCR.use_cassette('get_fax_media_list') do
89
+ fax = @client.fax.faxes('831455c6-574e-4d8b-b6ee-2418140bf4cd').fetch
90
+ expect(fax.media.list.first.sid).to eq 'aff0684c-3445-49bc-802b-3a0a488139f5'
91
+ end
92
+ end
93
+
94
+ it 'gets a media instance' do
95
+ VCR.use_cassette('get_fax_media_instance') do
96
+ fax_media = @client.fax.faxes('831455c6-574e-4d8b-b6ee-2418140bf4cd').media('aff0684c-3445-49bc-802b-3a0a488139f5').fetch
97
+ expect(fax_media.content_type).to eq 'image/tiff'
98
+ expect(fax_media.url).to eq '/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media/aff0684c-3445-49bc-802b-3a0a488139f5.json'
99
+ end
100
+ end
101
+ end
58
102
  end
@@ -11,6 +11,7 @@ RSpec.describe Signalwire::Sdk do
11
11
 
12
12
  twilio_client = Twilio::REST::Client.new
13
13
  expect(twilio_client.api.hostname).to eq('demo.signalwire.com')
14
+ expect(twilio_client.fax.hostname).to eq('demo.signalwire.com')
14
15
  end
15
16
 
16
17
  it 'requires the hostname configuration to be set' do
@@ -20,7 +21,7 @@ RSpec.describe Signalwire::Sdk do
20
21
 
21
22
  expect do
22
23
  Twilio::REST::Client.new.api
23
- end.to raise_exception ArgumentError, /Signalwire Space URL is not configured/
24
+ end.to raise_exception ArgumentError, /SignalWire Space URL is not configured/
24
25
  end
25
26
  end
26
27
  end
@@ -115,4 +115,5 @@ end
115
115
  VCR.configure do |config|
116
116
  config.hook_into :webmock
117
117
  config.cassette_library_dir = 'spec/vcr_cassettes'
118
+ #config.allow_http_connections_when_no_cassette = true
118
119
  end
@@ -2,72 +2,26 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://lpradovera.signalwire.com/api/laml/2010-04-01/Accounts.json
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- User-Agent:
11
- - twilio-ruby/5.18.0 (ruby/x86_64-darwin17 2.5.0-p0)
12
10
  Accept-Charset:
13
11
  - utf-8
14
12
  Accept:
15
13
  - application/json
16
- Authorization:
17
- - Basic MjliYmEyZDQtZGRmMS00NTY5LThiNGEtNTkxNDQ0MGE1ZTEzOlBUMjNkM2NjZjUxOWQzNDdlYjA0OTJjNDhlZWM3ZTFmMmRiY2ZkZWJhN2Q3YjEzZTY4
18
14
  Accept-Encoding:
19
15
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
16
  response:
21
17
  status:
22
18
  code: 200
23
19
  message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Wed, 26 Dec 2018 16:47:17 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- X-Ratelimit-Limit:
36
- - '5000'
37
- X-Ratelimit-Remaining:
38
- - '4999'
39
- X-Ratelimit-Reset:
40
- - '1545843600'
41
- Etag:
42
- - W/"bd486ac340657d0ad89590a5413b3f7f"
43
- Cache-Control:
44
- - max-age=0, private, must-revalidate
45
- X-Request-Id:
46
- - 70ca0a28-d018-4c48-9d4f-9ca410628956
47
- X-Runtime:
48
- - '0.026819'
49
- Strict-Transport-Security:
50
- - max-age=15768000; includeSubDomains
51
- Content-Security-Policy:
52
- - default-src * blob:; connect-src 'self' 'unsafe-inline' wss://*.signalwire.com
53
- https://cdn.signalwire.com https://signalwire.s3-us-west-2.amazonaws.com https://api.stripe.com
54
- https://www.google-analytics.com https://app.termly.io https://developer.livehelpnow.net
55
- wss://app.livehelpnow.net; frame-src 'self' https://www.youtube.com https://youtube.com
56
- https://cdn.signalwire.com https://js.stripe.com https://app.termly.io; child-src
57
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
58
- style-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://fonts.gstatic.com
59
- https://fonts.googleapis.com https://developer.livehelpnow.net; worker-src
60
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
61
- script-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://www.google-analytics.com
62
- https://www.googletagmanager.com https://js.stripe.com https://connect.facebook.net
63
- https://app.termly.io https://developer.livehelpnow.net; font-src 'self' 'unsafe-inline'
64
- https://cdn.signalwire.com https://fonts.gstatic.com https://fonts.googleapis.com
65
- https://cdn.livehelpnow.net;
66
20
  body:
67
21
  encoding: UTF-8
68
- string: '{"uri":"/api/laml/2010-04-01/Accounts?Page=1\u0026PageSize=50","start":0,"end":0,"first_page_uri":"/api/laml/2010-04-01/Accounts?Page=1\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"accounts":[{"sid":"29bba2d4-ddf1-4569-8b4a-5914440a5e13","friendly_name":"LAML
22
+ string: '{"uri":"/api/laml/2010-04-01/Accounts?Page=1\u0026PageSize=50","start":0,"end":0,"first_page_uri":"/api/laml/2010-04-01/Accounts?Page=1\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"accounts":[{"sid":"xyz123-xyz123-xyz123","friendly_name":"LAML
69
23
  testing","status":"active","auth_token":"redacted","date_created":"Mon, 20
70
- Aug 2018 12:54:10 +0000","date_updated":"Mon, 20 Aug 2018 12:54:10 +0000","type":"Full","uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13","subresource_uris":{"addresses":null,"available_phone_numbers":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/AvailablePhoneNumbers","applications":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Applications","authorized_connect_apps":null,"calls":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Calls","conferences":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Conferences","connect_apps":null,"incoming_phone_numbers":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/IncomingPhoneNumbers","keys":null,"notifications":null,"outgoing_caller_ids":null,"queues":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Queues","recordings":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Recordings","sandbox":null,"signing_keys":null,"sip":null,"short_codes":null,"messages":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Messages","transcriptions":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Transcriptions","usage":null}}]}'
24
+ Aug 2018 12:54:10 +0000","date_updated":"Mon, 20 Aug 2018 12:54:10 +0000","type":"Full","uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123","subresource_uris":{"addresses":null,"available_phone_numbers":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/AvailablePhoneNumbers","applications":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Applications","authorized_connect_apps":null,"calls":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Calls","conferences":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Conferences","connect_apps":null,"incoming_phone_numbers":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/IncomingPhoneNumbers","keys":null,"notifications":null,"outgoing_caller_ids":null,"queues":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Queues","recordings":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Recordings","sandbox":null,"signing_keys":null,"sip":null,"short_codes":null,"messages":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Messages","transcriptions":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Transcriptions","usage":null}}]}'
71
25
  http_version:
72
26
  recorded_at: Wed, 26 Dec 2018 16:47:17 GMT
73
27
  recorded_with: VCR 4.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://lpradovera.signalwire.com/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Applications.json
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Applications.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -13,61 +13,17 @@ http_interactions:
13
13
  - utf-8
14
14
  Accept:
15
15
  - application/json
16
- Authorization:
17
- - Basic MjliYmEyZDQtZGRmMS00NTY5LThiNGEtNTkxNDQ0MGE1ZTEzOlBUMjNkM2NjZjUxOWQzNDdlYjA0OTJjNDhlZWM3ZTFmMmRiY2ZkZWJhN2Q3YjEzZTY4
18
16
  Accept-Encoding:
19
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
18
  response:
21
19
  status:
22
20
  code: 200
23
21
  message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Wed, 26 Dec 2018 16:51:53 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- X-Ratelimit-Limit:
36
- - '5000'
37
- X-Ratelimit-Remaining:
38
- - '4998'
39
- X-Ratelimit-Reset:
40
- - '1545843600'
41
- Etag:
42
- - W/"c38d7ad358a790cebf78625383b05a41"
43
- Cache-Control:
44
- - max-age=0, private, must-revalidate
45
- X-Request-Id:
46
- - 7508ee70-0a58-4365-9f7e-ecf2b9383d5a
47
- X-Runtime:
48
- - '0.040712'
49
- Strict-Transport-Security:
50
- - max-age=15768000; includeSubDomains
51
- Content-Security-Policy:
52
- - default-src * blob:; connect-src 'self' 'unsafe-inline' wss://*.signalwire.com
53
- https://cdn.signalwire.com https://signalwire.s3-us-west-2.amazonaws.com https://api.stripe.com
54
- https://www.google-analytics.com https://app.termly.io https://developer.livehelpnow.net
55
- wss://app.livehelpnow.net; frame-src 'self' https://www.youtube.com https://youtube.com
56
- https://cdn.signalwire.com https://js.stripe.com https://app.termly.io; child-src
57
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
58
- style-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://fonts.gstatic.com
59
- https://fonts.googleapis.com https://developer.livehelpnow.net; worker-src
60
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
61
- script-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://www.google-analytics.com
62
- https://www.googletagmanager.com https://js.stripe.com https://connect.facebook.net
63
- https://app.termly.io https://developer.livehelpnow.net; font-src 'self' 'unsafe-inline'
64
- https://cdn.signalwire.com https://fonts.gstatic.com https://fonts.googleapis.com
65
- https://cdn.livehelpnow.net;
66
22
  body:
67
23
  encoding: UTF-8
68
- string: '{"uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Applications?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Applications?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"applications":[{"sid":"34f49a97-a863-4a11-8fef-bc399c6f0928","date_created":"Wed,
69
- 19 Dec 2018 14:23:36 +0000","date_updated":"Wed, 19 Dec 2018 15:45:52 +0000","account_sid":"29bba2d4-ddf1-4569-8b4a-5914440a5e13","friendly_name":"Test
70
- App","voice_url":"https://lpradovera.signalwire.com/laml-bins/edfb6a6e-a60a-4a56-9a9c-04babd511882","voice_method":"GET","voice_fallback_url":"","voice_fallback_method":"POST","status_callback":"","status_callback_method":"POST","voice_caller_id_lookup":null,"sms_url":"","sms_method":"POST","sms_fallback_url":"","sms_fallback_method":"POST","sms_status_callback":"","sms_status_callback_method":"POST","api_version":"2010-04-01","uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Calls/34f49a97-a863-4a11-8fef-bc399c6f0928"}]}'
24
+ string: '{"uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Applications?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Applications?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"applications":[{"sid":"34f49a97-a863-4a11-8fef-bc399c6f0928","date_created":"Wed,
25
+ 19 Dec 2018 14:23:36 +0000","date_updated":"Wed, 19 Dec 2018 15:45:52 +0000","account_sid":"xyz123-xyz123-xyz123","friendly_name":"Test
26
+ App","voice_url":"https://testing.signalwire.com/laml-bins/edfb6a6e-a60a-4a56-9a9c-04babd511882","voice_method":"GET","voice_fallback_url":"","voice_fallback_method":"POST","status_callback":"","status_callback_method":"POST","voice_caller_id_lookup":null,"sms_url":"","sms_method":"POST","sms_fallback_url":"","sms_fallback_method":"POST","sms_status_callback":"","sms_status_callback_method":"POST","api_version":"2010-04-01","uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Calls/34f49a97-a863-4a11-8fef-bc399c6f0928"}]}'
71
27
  http_version:
72
28
  recorded_at: Wed, 26 Dec 2018 16:51:53 GMT
73
29
  recorded_with: VCR 4.0.0
@@ -0,0 +1,25 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Charset:
11
+ - utf-8
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ body:
21
+ encoding: UTF-8
22
+ string: '{"account_sid":"xyz123-xyz123-xyz123","api_version":"v1","date_created":"2019-01-04T16:28:33Z","date_updated":"2019-01-04T16:29:20Z","direction":"outbound","from":"+14043287382","media_url":"https://s3.us-east-2.amazonaws.com/signalwire-assets/faxes/20190104162834-831455c6-574e-4d8b-b6ee-2418140bf4cd.tiff","media_sid":"aff0684c-3445-49bc-802b-3a0a488139f5","num_pages":1,"price":0.0105,"price_unit":"USD","quality":"fine","sid":"831455c6-574e-4d8b-b6ee-2418140bf4cd","status":"delivered","to":"+15556677999","duration":41,"links":{"media":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media"},"url":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd"}'
23
+ http_version:
24
+ recorded_at: Fri, 04 Jan 2019 16:33:25 GMT
25
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,27 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media/aff0684c-3445-49bc-802b-3a0a488139f5
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - twilio-ruby/5.18.0 (ruby/x86_64-darwin17 2.5.0-p0)
12
+ Accept-Charset:
13
+ - utf-8
14
+ Accept:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ body:
23
+ encoding: UTF-8
24
+ string: '{"sid":"aff0684c-3445-49bc-802b-3a0a488139f5","date_created":"2019-01-04T16:28:33Z","date_updated":"2019-01-04T16:29:20Z","account_sid":"xyz123-xyz123-xyz123","fax_sid":"831455c6-574e-4d8b-b6ee-2418140bf4cd","content_type":"image/tiff","url":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media/aff0684c-3445-49bc-802b-3a0a488139f5.json"}'
25
+ http_version:
26
+ recorded_at: Fri, 04 Jan 2019 16:55:37 GMT
27
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Charset:
11
+ - utf-8
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ body:
21
+ encoding: UTF-8
22
+ string: '{"account_sid":"xyz123-xyz123-xyz123","api_version":"v1","date_created":"2019-01-04T16:28:33Z","date_updated":"2019-01-04T16:29:20Z","direction":"outbound","from":"+14043287382","media_url":"https://s3.us-east-2.amazonaws.com/signalwire-assets/faxes/20190104162834-831455c6-574e-4d8b-b6ee-2418140bf4cd.tiff","media_sid":"aff0684c-3445-49bc-802b-3a0a488139f5","num_pages":1,"price":0.0105,"price_unit":"USD","quality":"fine","sid":"831455c6-574e-4d8b-b6ee-2418140bf4cd","status":"delivered","to":"+14043287360","duration":41,"links":{"media":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media"},"url":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd"}'
23
+ http_version:
24
+ recorded_at: Fri, 04 Jan 2019 16:52:22 GMT
25
+ - request:
26
+ method: get
27
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media
28
+ body:
29
+ encoding: US-ASCII
30
+ string: ''
31
+ headers:
32
+ Accept-Charset:
33
+ - utf-8
34
+ Accept:
35
+ - application/json
36
+ Accept-Encoding:
37
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
38
+ response:
39
+ status:
40
+ code: 200
41
+ message: OK
42
+ body:
43
+ encoding: UTF-8
44
+ string: '{"uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"fax_media":[{"sid":"aff0684c-3445-49bc-802b-3a0a488139f5","date_created":"2019-01-04T16:28:33Z","date_updated":"2019-01-04T16:29:20Z","account_sid":"xyz123-xyz123-xyz123","fax_sid":"831455c6-574e-4d8b-b6ee-2418140bf4cd","content_type":"image/tiff","uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media/aff0684c-3445-49bc-802b-3a0a488139f5.json"}]}'
45
+ http_version:
46
+ recorded_at: Fri, 04 Jan 2019 16:52:23 GMT
47
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,25 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Charset:
11
+ - utf-8
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ body:
21
+ encoding: UTF-8
22
+ string: '{"uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"faxes":[{"account_sid":"xyz123-xyz123-xyz123","api_version":"v1","date_created":"2019-01-04T16:28:33Z","date_updated":"2019-01-04T16:29:20Z","direction":"outbound","from":"+14043287382","media_url":"https://s3.us-east-2.amazonaws.com/signalwire-assets/faxes/20190104162834-831455c6-574e-4d8b-b6ee-2418140bf4cd.tiff","media_sid":"aff0684c-3445-49bc-802b-3a0a488139f5","num_pages":1,"price":0.0105,"price_unit":"USD","quality":"fine","sid":"831455c6-574e-4d8b-b6ee-2418140bf4cd","status":"delivered","to":"+14043287360","duration":41,"links":{"media":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media"},"url":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd"},{"account_sid":"xyz123-xyz123-xyz123","api_version":"v1","date_created":"2019-01-04T16:05:18Z","date_updated":"2019-01-04T16:05:45Z","direction":"outbound","from":"+14043287382","media_url":"https://s3.us-east-2.amazonaws.com/signalwire-assets/faxes/20190104160520-5ed234e3-0e6b-4c49-869a-6c0ef3c30884.tiff","media_sid":"77643eca-a413-48c7-ad34-6e703fc77ca7","num_pages":0,"price":0.0105,"price_unit":"USD","quality":"fine","sid":"5ed234e3-0e6b-4c49-869a-6c0ef3c30884","status":"failed","to":"+14043287360","duration":17,"links":{"media":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/5ed234e3-0e6b-4c49-869a-6c0ef3c30884/Media"},"url":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/5ed234e3-0e6b-4c49-869a-6c0ef3c30884"},{"account_sid":"xyz123-xyz123-xyz123","api_version":"v1","date_created":"2019-01-04T16:03:11Z","date_updated":"2019-01-04T16:03:11Z","direction":"outbound","from":"+14043287382","media_url":null,"media_sid":"a9d56213-1ec6-4618-adac-969d4d11c09a","num_pages":null,"price":null,"price_unit":"USD","quality":"fine","sid":"ce501cac-3144-4540-a6c7-a1c7963501f7","status":"failed","to":"+14043287360","duration":0,"links":{"media":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/ce501cac-3144-4540-a6c7-a1c7963501f7/Media"},"url":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/ce501cac-3144-4540-a6c7-a1c7963501f7"}]}'
23
+ http_version:
24
+ recorded_at: Fri, 04 Jan 2019 16:30:12 GMT
25
+ recorded_with: VCR 4.0.0
@@ -2,70 +2,24 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://lpradovera.signalwire.com/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/AvailablePhoneNumbers/US/Local.json?InRegion=WA
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/AvailablePhoneNumbers/US/Local.json?InRegion=WA
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- User-Agent:
11
- - twilio-ruby/5.18.0 (ruby/x86_64-darwin17 2.5.0-p0)
12
10
  Accept-Charset:
13
11
  - utf-8
14
12
  Accept:
15
13
  - application/json
16
- Authorization:
17
- - Basic MjliYmEyZDQtZGRmMS00NTY5LThiNGEtNTkxNDQ0MGE1ZTEzOlBUMjNkM2NjZjUxOWQzNDdlYjA0OTJjNDhlZWM3ZTFmMmRiY2ZkZWJhN2Q3YjEzZTY4
18
14
  Accept-Encoding:
19
15
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
16
  response:
21
17
  status:
22
18
  code: 200
23
19
  message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Wed, 26 Dec 2018 16:54:07 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- X-Ratelimit-Limit:
36
- - '5000'
37
- X-Ratelimit-Remaining:
38
- - '4997'
39
- X-Ratelimit-Reset:
40
- - '1545843600'
41
- Etag:
42
- - W/"8a42dc14d5a28a3e3e6d43948e3373bd"
43
- Cache-Control:
44
- - max-age=0, private, must-revalidate
45
- X-Request-Id:
46
- - 2e156a17-a333-4013-9b75-afa744485859
47
- X-Runtime:
48
- - '0.593999'
49
- Strict-Transport-Security:
50
- - max-age=15768000; includeSubDomains
51
- Content-Security-Policy:
52
- - default-src * blob:; connect-src 'self' 'unsafe-inline' wss://*.signalwire.com
53
- https://cdn.signalwire.com https://signalwire.s3-us-west-2.amazonaws.com https://api.stripe.com
54
- https://www.google-analytics.com https://app.termly.io https://developer.livehelpnow.net
55
- wss://app.livehelpnow.net; frame-src 'self' https://www.youtube.com https://youtube.com
56
- https://cdn.signalwire.com https://js.stripe.com https://app.termly.io; child-src
57
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
58
- style-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://fonts.gstatic.com
59
- https://fonts.googleapis.com https://developer.livehelpnow.net; worker-src
60
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
61
- script-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://www.google-analytics.com
62
- https://www.googletagmanager.com https://js.stripe.com https://connect.facebook.net
63
- https://app.termly.io https://developer.livehelpnow.net; font-src 'self' 'unsafe-inline'
64
- https://cdn.signalwire.com https://fonts.gstatic.com https://fonts.googleapis.com
65
- https://cdn.livehelpnow.net;
66
20
  body:
67
21
  encoding: UTF-8
68
- string: '{"uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/AvailablePhoneNumbers/US/Local?InRegion=WA","available_phone_numbers":[{"friendly_name":"206-201-1680","phone_number":"+12062011680","lata":null,"rate_center":"BAINBDG
22
+ string: '{"uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/AvailablePhoneNumbers/US/Local?InRegion=WA","available_phone_numbers":[{"friendly_name":"206-201-1680","phone_number":"+12062011680","lata":null,"rate_center":"BAINBDG
69
23
  IS","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-204-1820","phone_number":"+12062041820","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-204-1821","phone_number":"+12062041821","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-204-1822","phone_number":"+12062041822","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-204-5269","phone_number":"+12062045269","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-209-2839","phone_number":"+12062092839","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-209-2871","phone_number":"+12062092871","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-209-2872","phone_number":"+12062092872","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-209-2893","phone_number":"+12062092893","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-209-2897","phone_number":"+12062092897","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-209-2911","phone_number":"+12062092911","lata":null,"rate_center":"SEATTLE","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1051","phone_number":"+12062371051","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1052","phone_number":"+12062371052","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1053","phone_number":"+12062371053","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1054","phone_number":"+12062371054","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1055","phone_number":"+12062371055","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1056","phone_number":"+12062371056","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1057","phone_number":"+12062371057","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1058","phone_number":"+12062371058","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1059","phone_number":"+12062371059","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1060","phone_number":"+12062371060","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1062","phone_number":"+12062371062","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1063","phone_number":"+12062371063","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1064","phone_number":"+12062371064","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1065","phone_number":"+12062371065","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1066","phone_number":"+12062371066","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1067","phone_number":"+12062371067","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1068","phone_number":"+12062371068","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1069","phone_number":"+12062371069","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1070","phone_number":"+12062371070","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1071","phone_number":"+12062371071","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1072","phone_number":"+12062371072","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1073","phone_number":"+12062371073","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1074","phone_number":"+12062371074","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1075","phone_number":"+12062371075","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1076","phone_number":"+12062371076","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1077","phone_number":"+12062371077","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1078","phone_number":"+12062371078","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1079","phone_number":"+12062371079","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1080","phone_number":"+12062371080","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1081","phone_number":"+12062371081","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1082","phone_number":"+12062371082","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1083","phone_number":"+12062371083","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1084","phone_number":"+12062371084","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1085","phone_number":"+12062371085","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1086","phone_number":"+12062371086","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1087","phone_number":"+12062371087","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1088","phone_number":"+12062371088","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1089","phone_number":"+12062371089","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"206-237-1090","phone_number":"+12062371090","lata":null,"rate_center":"RICHMNDBCH","latitude":null,"longitude":null,"region":"WA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false}]}'
70
24
  http_version:
71
25
  recorded_at: Wed, 26 Dec 2018 16:54:07 GMT
@@ -2,72 +2,26 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://lpradovera.signalwire.com/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Recordings.json
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Recordings.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- User-Agent:
11
- - twilio-ruby/5.18.0 (ruby/x86_64-darwin17 2.5.0-p0)
12
10
  Accept-Charset:
13
11
  - utf-8
14
12
  Accept:
15
13
  - application/json
16
- Authorization:
17
- - Basic MjliYmEyZDQtZGRmMS00NTY5LThiNGEtNTkxNDQ0MGE1ZTEzOlBUMjNkM2NjZjUxOWQzNDdlYjA0OTJjNDhlZWM3ZTFmMmRiY2ZkZWJhN2Q3YjEzZTY4
18
14
  Accept-Encoding:
19
15
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
16
  response:
21
17
  status:
22
18
  code: 200
23
19
  message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Wed, 26 Dec 2018 17:03:37 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- X-Ratelimit-Limit:
36
- - '5000'
37
- X-Ratelimit-Remaining:
38
- - '4999'
39
- X-Ratelimit-Reset:
40
- - '1545847200'
41
- Etag:
42
- - W/"45c4693845b43283af55f52d9acd97fc"
43
- Cache-Control:
44
- - max-age=0, private, must-revalidate
45
- X-Request-Id:
46
- - cfe925d9-a363-4542-b00e-e16a7d8b8937
47
- X-Runtime:
48
- - '0.068194'
49
- Strict-Transport-Security:
50
- - max-age=15768000; includeSubDomains
51
- Content-Security-Policy:
52
- - default-src * blob:; connect-src 'self' 'unsafe-inline' wss://*.signalwire.com
53
- https://cdn.signalwire.com https://signalwire.s3-us-west-2.amazonaws.com https://api.stripe.com
54
- https://www.google-analytics.com https://app.termly.io https://developer.livehelpnow.net
55
- wss://app.livehelpnow.net; frame-src 'self' https://www.youtube.com https://youtube.com
56
- https://cdn.signalwire.com https://js.stripe.com https://app.termly.io; child-src
57
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
58
- style-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://fonts.gstatic.com
59
- https://fonts.googleapis.com https://developer.livehelpnow.net; worker-src
60
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
61
- script-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://www.google-analytics.com
62
- https://www.googletagmanager.com https://js.stripe.com https://connect.facebook.net
63
- https://app.termly.io https://developer.livehelpnow.net; font-src 'self' 'unsafe-inline'
64
- https://cdn.signalwire.com https://fonts.gstatic.com https://fonts.googleapis.com
65
- https://cdn.livehelpnow.net;
66
20
  body:
67
21
  encoding: UTF-8
68
- string: '{"uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Recordings?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Recordings?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"recordings":[{"sid":"e4c78e17-c0e2-441d-b5dd-39a6dad496f8","api_version":"2010-04-01","channel":"1","channels":"1","account_sid":"29bba2d4-ddf1-4569-8b4a-5914440a5e13","call_sid":"d411976d-d319-4fbd-923c-57c62b6f677a","conference_sid":null,"date_created":"Wed,
22
+ string: '{"uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Recordings?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Recordings?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"recordings":[{"sid":"e4c78e17-c0e2-441d-b5dd-39a6dad496f8","api_version":"2010-04-01","channel":"1","channels":"1","account_sid":"xyz123-xyz123-xyz123","call_sid":"d411976d-d319-4fbd-923c-57c62b6f677a","conference_sid":null,"date_created":"Wed,
69
23
  19 Dec 2018 16:28:16 +0000","date_updated":"Wed, 19 Dec 2018 16:28:16 +0000","duration":14,"start_time":"Wed,
70
- 19 Dec 2018 16:27:56 +0000","end_time":"Wed, 19 Dec 2018 16:28:16 +0000","error_code":null,"price":0.0,"price_unit":"USD","source":"RecordVerb","status":"completed","uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Calls/d411976d-d319-4fbd-923c-57c62b6f677a/Recordings/e4c78e17-c0e2-441d-b5dd-39a6dad496f8.json","subresource_uris":{"transcriptions":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Recordings/e4c78e17-c0e2-441d-b5dd-39a6dad496f8/Transcriptions.json"}}]}'
24
+ 19 Dec 2018 16:27:56 +0000","end_time":"Wed, 19 Dec 2018 16:28:16 +0000","error_code":null,"price":0.0,"price_unit":"USD","source":"RecordVerb","status":"completed","uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Calls/d411976d-d319-4fbd-923c-57c62b6f677a/Recordings/e4c78e17-c0e2-441d-b5dd-39a6dad496f8.json","subresource_uris":{"transcriptions":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Recordings/e4c78e17-c0e2-441d-b5dd-39a6dad496f8/Transcriptions.json"}}]}'
71
25
  http_version:
72
26
  recorded_at: Wed, 26 Dec 2018 17:03:37 GMT
73
27
  recorded_with: VCR 4.0.0
@@ -0,0 +1,27 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: From=%2B15556677888&MediaUrl=https%3A%2F%2Fwww.w3.org%2FWAI%2FER%2Ftests%2Fxhtml%2Ftestfiles%2Fresources%2Fpdf%2Fdummy.pdf&To=%2B15556677999
9
+ headers:
10
+ Accept-Charset:
11
+ - utf-8
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 201
21
+ message: Created
22
+ body:
23
+ encoding: UTF-8
24
+ string: '{"account_sid":"xyz123-xyz123-xyz123","api_version":"v1","date_created":"2019-01-04T16:28:33Z","date_updated":"2019-01-04T16:28:33Z","direction":"outbound","from":"+15556677888","media_url":null,"media_sid":"aff0684c-3445-49bc-802b-3a0a488139f5","num_pages":null,"price":null,"price_unit":"USD","quality":"fine","sid":"831455c6-574e-4d8b-b6ee-2418140bf4cd","status":"queued","to":"+15556677999","duration":0,"links":{"media":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd/Media"},"url":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Faxes/831455c6-574e-4d8b-b6ee-2418140bf4cd"}'
25
+ http_version:
26
+ recorded_at: Fri, 04 Jan 2019 16:28:33 GMT
27
+ recorded_with: VCR 4.0.0
@@ -2,70 +2,24 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://lpradovera.signalwire.com/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/AvailablePhoneNumbers/US/TollFree.json?AreaCode=310
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/AvailablePhoneNumbers/US/TollFree.json?AreaCode=310
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- User-Agent:
11
- - twilio-ruby/5.18.0 (ruby/x86_64-darwin17 2.5.0-p0)
12
10
  Accept-Charset:
13
11
  - utf-8
14
12
  Accept:
15
13
  - application/json
16
- Authorization:
17
- - Basic MjliYmEyZDQtZGRmMS00NTY5LThiNGEtNTkxNDQ0MGE1ZTEzOlBUMjNkM2NjZjUxOWQzNDdlYjA0OTJjNDhlZWM3ZTFmMmRiY2ZkZWJhN2Q3YjEzZTY4
18
14
  Accept-Encoding:
19
15
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
16
  response:
21
17
  status:
22
18
  code: 200
23
19
  message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Wed, 26 Dec 2018 16:56:45 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- X-Ratelimit-Limit:
36
- - '5000'
37
- X-Ratelimit-Remaining:
38
- - '4995'
39
- X-Ratelimit-Reset:
40
- - '1545843600'
41
- Etag:
42
- - W/"e813af3e1604ca52033e4966e3b9287b"
43
- Cache-Control:
44
- - max-age=0, private, must-revalidate
45
- X-Request-Id:
46
- - be18c737-7f67-494b-8964-503602b1fdee
47
- X-Runtime:
48
- - '0.504828'
49
- Strict-Transport-Security:
50
- - max-age=15768000; includeSubDomains
51
- Content-Security-Policy:
52
- - default-src * blob:; connect-src 'self' 'unsafe-inline' wss://*.signalwire.com
53
- https://cdn.signalwire.com https://signalwire.s3-us-west-2.amazonaws.com https://api.stripe.com
54
- https://www.google-analytics.com https://app.termly.io https://developer.livehelpnow.net
55
- wss://app.livehelpnow.net; frame-src 'self' https://www.youtube.com https://youtube.com
56
- https://cdn.signalwire.com https://js.stripe.com https://app.termly.io; child-src
57
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
58
- style-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://fonts.gstatic.com
59
- https://fonts.googleapis.com https://developer.livehelpnow.net; worker-src
60
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
61
- script-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://www.google-analytics.com
62
- https://www.googletagmanager.com https://js.stripe.com https://connect.facebook.net
63
- https://app.termly.io https://developer.livehelpnow.net; font-src 'self' 'unsafe-inline'
64
- https://cdn.signalwire.com https://fonts.gstatic.com https://fonts.googleapis.com
65
- https://cdn.livehelpnow.net;
66
20
  body:
67
21
  encoding: UTF-8
68
- string: '{"uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/AvailablePhoneNumbers/US/TollFree?AreaCode=310","available_phone_numbers":[{"friendly_name":"310-217-4822","phone_number":"+13102174822","lata":null,"rate_center":"CMTN
22
+ string: '{"uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/AvailablePhoneNumbers/US/TollFree?AreaCode=310","available_phone_numbers":[{"friendly_name":"310-217-4822","phone_number":"+13102174822","lata":null,"rate_center":"CMTN
69
23
  GRDN","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3059","phone_number":"+13103493059","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3184","phone_number":"+13103493184","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3207","phone_number":"+13103493207","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3272","phone_number":"+13103493272","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3603","phone_number":"+13103493603","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3629","phone_number":"+13103493629","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3651","phone_number":"+13103493651","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3662","phone_number":"+13103493662","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3664","phone_number":"+13103493664","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3669","phone_number":"+13103493669","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3670","phone_number":"+13103493670","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3671","phone_number":"+13103493671","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3672","phone_number":"+13103493672","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3673","phone_number":"+13103493673","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3674","phone_number":"+13103493674","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3675","phone_number":"+13103493675","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3676","phone_number":"+13103493676","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3682","phone_number":"+13103493682","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3683","phone_number":"+13103493683","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3684","phone_number":"+13103493684","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3685","phone_number":"+13103493685","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3686","phone_number":"+13103493686","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-349-3687","phone_number":"+13103493687","lata":null,"rate_center":"HAWTHORNE","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-356-0706","phone_number":"+13103560706","lata":null,"rate_center":"EL
70
24
  SEGUNDO","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-356-0721","phone_number":"+13103560721","lata":null,"rate_center":"EL
71
25
  SEGUNDO","latitude":null,"longitude":null,"region":"CA","postal_code":null,"iso_country":"US","capabilities":{"voice":true,"SMS":true,"MMS":true},"beta":false},{"friendly_name":"310-356-0733","phone_number":"+13103560733","lata":null,"rate_center":"EL
@@ -2,73 +2,27 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://lpradovera.signalwire.com/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Transcriptions.json
5
+ uri: https://testing.signalwire.com/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Transcriptions.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- User-Agent:
11
- - twilio-ruby/5.18.0 (ruby/x86_64-darwin17 2.5.0-p0)
12
10
  Accept-Charset:
13
11
  - utf-8
14
12
  Accept:
15
13
  - application/json
16
- Authorization:
17
- - Basic MjliYmEyZDQtZGRmMS00NTY5LThiNGEtNTkxNDQ0MGE1ZTEzOlBUMjNkM2NjZjUxOWQzNDdlYjA0OTJjNDhlZWM3ZTFmMmRiY2ZkZWJhN2Q3YjEzZTY4
18
14
  Accept-Encoding:
19
15
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
16
  response:
21
17
  status:
22
18
  code: 200
23
19
  message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Wed, 26 Dec 2018 17:05:41 GMT
29
- Content-Type:
30
- - application/json; charset=utf-8
31
- Transfer-Encoding:
32
- - chunked
33
- Connection:
34
- - keep-alive
35
- X-Ratelimit-Limit:
36
- - '5000'
37
- X-Ratelimit-Remaining:
38
- - '4998'
39
- X-Ratelimit-Reset:
40
- - '1545847200'
41
- Etag:
42
- - W/"cee4642906bf1186f73342fb95ccb39a"
43
- Cache-Control:
44
- - max-age=0, private, must-revalidate
45
- X-Request-Id:
46
- - 7e593b0d-b045-43e1-859f-0e7ce1ed265e
47
- X-Runtime:
48
- - '0.080638'
49
- Strict-Transport-Security:
50
- - max-age=15768000; includeSubDomains
51
- Content-Security-Policy:
52
- - default-src * blob:; connect-src 'self' 'unsafe-inline' wss://*.signalwire.com
53
- https://cdn.signalwire.com https://signalwire.s3-us-west-2.amazonaws.com https://api.stripe.com
54
- https://www.google-analytics.com https://app.termly.io https://developer.livehelpnow.net
55
- wss://app.livehelpnow.net; frame-src 'self' https://www.youtube.com https://youtube.com
56
- https://cdn.signalwire.com https://js.stripe.com https://app.termly.io; child-src
57
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
58
- style-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://fonts.gstatic.com
59
- https://fonts.googleapis.com https://developer.livehelpnow.net; worker-src
60
- 'self' 'unsafe-inline' https://cdn.signalwire.com https://js.stripe.com blob:;
61
- script-src 'self' 'unsafe-inline' https://cdn.signalwire.com https://www.google-analytics.com
62
- https://www.googletagmanager.com https://js.stripe.com https://connect.facebook.net
63
- https://app.termly.io https://developer.livehelpnow.net; font-src 'self' 'unsafe-inline'
64
- https://cdn.signalwire.com https://fonts.gstatic.com https://fonts.googleapis.com
65
- https://cdn.livehelpnow.net;
66
20
  body:
67
21
  encoding: UTF-8
68
- string: '{"uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Transcriptions?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Transcriptions?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"transcriptions":[{"sid":"425e8224-c4b0-4725-ab2c-ec9d41adbbe9","api_version":"2010-04-01","account_sid":"29bba2d4-ddf1-4569-8b4a-5914440a5e13","recording_sid":"e4c78e17-c0e2-441d-b5dd-39a6dad496f8","date_created":"Wed,
22
+ string: '{"uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Transcriptions?Page=0\u0026PageSize=50","first_page_uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Transcriptions?Page=0\u0026PageSize=50","next_page_uri":null,"previous_page_uri":null,"page":0,"page_size":50,"transcriptions":[{"sid":"425e8224-c4b0-4725-ab2c-ec9d41adbbe9","api_version":"2010-04-01","account_sid":"xyz123-xyz123-xyz123","recording_sid":"e4c78e17-c0e2-441d-b5dd-39a6dad496f8","date_created":"Wed,
69
23
  19 Dec 2018 16:28:16 +0000","date_updated":"Wed, 19 Dec 2018 16:30:04 +0000","duration":14,"price":0.0,"price_unit":"USD","status":"completed","transcription_text":"Hello.
70
24
  Hello? Hello? Hello? Hello? Hello? Recording. Recording, Recording, Recording,
71
- recording. Hang up. Hello?","uri":"/api/laml/2010-04-01/Accounts/29bba2d4-ddf1-4569-8b4a-5914440a5e13/Transcriptions/425e8224-c4b0-4725-ab2c-ec9d41adbbe9.json"}]}'
25
+ recording. Hang up. Hello?","uri":"/api/laml/2010-04-01/Accounts/xyz123-xyz123-xyz123/Transcriptions/425e8224-c4b0-4725-ab2c-ec9d41adbbe9.json"}]}'
72
26
  http_version:
73
27
  recorded_at: Wed, 26 Dec 2018 17:05:41 GMT
74
28
  recorded_with: VCR 4.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signalwire
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SignalWire Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-29 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twilio-ruby
@@ -191,6 +191,7 @@ files:
191
191
  - lib/signalwire/sdk/domain.rb
192
192
  - lib/signalwire/sdk/fax_response.rb
193
193
  - lib/signalwire/sdk/messaging_response.rb
194
+ - lib/signalwire/sdk/twilio_set_fax.rb
194
195
  - lib/signalwire/sdk/twilio_set_host.rb
195
196
  - lib/signalwire/sdk/voice_response.rb
196
197
  - signalwire.gemspec
@@ -204,8 +205,13 @@ files:
204
205
  - spec/spec_helper.rb
205
206
  - spec/vcr_cassettes/accounts.yml
206
207
  - spec/vcr_cassettes/applications.yml
208
+ - spec/vcr_cassettes/get_fax.yml
209
+ - spec/vcr_cassettes/get_fax_media_instance.yml
210
+ - spec/vcr_cassettes/get_fax_media_list.yml
211
+ - spec/vcr_cassettes/list_faxes.yml
207
212
  - spec/vcr_cassettes/local_numbers.yml
208
213
  - spec/vcr_cassettes/recordings.yml
214
+ - spec/vcr_cassettes/send_fax.yml
209
215
  - spec/vcr_cassettes/toll_free_numbers.yml
210
216
  - spec/vcr_cassettes/transcriptions.yml
211
217
  homepage: http://github.com/signalwire/signalwire-ruby