phaxio 2.0.1 → 2.1.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +2 -1
- data/README.md +46 -13
- data/lib/phaxio.rb +2 -1
- data/lib/phaxio/client.rb +31 -10
- data/lib/phaxio/config.rb +1 -1
- data/lib/phaxio/resources/ata.rb +219 -0
- data/lib/phaxio/version.rb +1 -1
- data/phaxio.gemspec +1 -1
- data/spec/client_spec.rb +6 -6
- data/spec/resources/fax_spec.rb +40 -19
- data/spec/resources/phax_code_spec.rb +52 -24
- data/spec/support/vcr.rb +1 -2
- data/spec/support/vcr_cassettes/resources/account/status.yml +14 -13
- data/spec/support/vcr_cassettes/resources/fax/cancel.yml +16 -15
- data/spec/support/vcr_cassettes/resources/fax/create.yml +17 -197
- data/spec/support/vcr_cassettes/resources/fax/create_for_cancel.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_delete.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_delete_file.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_download_file.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_get.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_reference.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/create_for_resend.yml +50 -0
- data/spec/support/vcr_cassettes/resources/fax/delete.yml +11 -10
- data/spec/support/vcr_cassettes/resources/fax/delete_file.yml +11 -10
- data/spec/support/vcr_cassettes/resources/fax/file.yml +15 -216
- data/spec/support/vcr_cassettes/resources/fax/get.yml +14 -13
- data/spec/support/vcr_cassettes/resources/fax/list.yml +15 -20
- data/spec/support/vcr_cassettes/resources/fax/reference.yml +45 -0
- data/spec/support/vcr_cassettes/resources/fax/resend.yml +15 -14
- data/spec/support/vcr_cassettes/resources/fax/test_receive.yml +14 -194
- data/spec/support/vcr_cassettes/resources/phax_code/create.yml +12 -65
- data/spec/support/vcr_cassettes/resources/phax_code/create_png.yml +52 -0
- data/spec/support/vcr_cassettes/resources/phax_code/get.yml +13 -158
- data/spec/support/vcr_cassettes/resources/phax_code/get_id.yml +46 -0
- data/spec/support/vcr_cassettes/resources/phax_code/get_id_png.yml +50 -0
- data/spec/support/vcr_cassettes/resources/phax_code/get_png.yml +50 -0
- data/spec/support/vcr_cassettes/resources/phone_number/create.yml +16 -15
- data/spec/support/vcr_cassettes/resources/phone_number/get.yml +14 -13
- data/spec/support/vcr_cassettes/resources/phone_number/list.yml +24 -16
- data/spec/support/vcr_cassettes/resources/phone_number/release.yml +13 -12
- data/spec/support/vcr_cassettes/resources/public/area_codes/list.yml +23 -21
- data/spec/support/vcr_cassettes/resources/public/country/list.yml +15 -14
- metadata +26 -8
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/phax_codes/-Y3jxX
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.3.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Wed, 24 Feb 2021 19:43:33 GMT
|
25
|
+
etag:
|
26
|
+
- W/"78c920ebcae905a8a076a0af95923885"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-request-id:
|
32
|
+
- 152a4709-21c0-4af8-a04c-edd33bfebc92
|
33
|
+
x-robots-tag:
|
34
|
+
- noindex, nofollow, nosnippet, noarchive
|
35
|
+
x-runtime:
|
36
|
+
- '0.015573'
|
37
|
+
content-length:
|
38
|
+
- '159'
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"success":true,"message":"Info for PhaxCode","data":{"identifier":"-Y3jxX","created_at":"2017-11-06T02:57:46.000-06:00","metadata":"This
|
44
|
+
is a test PhaxCode"}}'
|
45
|
+
recorded_at: Wed, 24 Feb 2021 19:42:46 GMT
|
46
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/phax_codes/-Y3jxX.png
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.3.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- private
|
21
|
+
content-disposition:
|
22
|
+
- attachment
|
23
|
+
content-transfer-encoding:
|
24
|
+
- binary
|
25
|
+
content-type:
|
26
|
+
- image/png
|
27
|
+
date:
|
28
|
+
- Wed, 24 Feb 2021 19:43:34 GMT
|
29
|
+
etag:
|
30
|
+
- W/"dd5e58fe454c84aeba9f112d93810c72"
|
31
|
+
server:
|
32
|
+
- nginx
|
33
|
+
strict-transport-security:
|
34
|
+
- max-age=15768000; preload
|
35
|
+
x-request-id:
|
36
|
+
- 3cade227-4f4f-453c-ab4f-0bbcd53fba6d
|
37
|
+
x-robots-tag:
|
38
|
+
- noindex, nofollow, nosnippet, noarchive
|
39
|
+
x-runtime:
|
40
|
+
- '0.034310'
|
41
|
+
content-length:
|
42
|
+
- '288'
|
43
|
+
connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: ASCII-8BIT
|
47
|
+
string: !binary |-
|
48
|
+
iVBORw0KGgoAAAANSUhEUgAAARgAAAA+CAIAAAB/bpNEAAAA50lEQVR42u3YQQqDMBBAUUe8/5WnC0EKQ8LQZGHhvVUJJjbaj8XIzANYc7oEICQQEggJEBLsdNWhiHg+3+/07pHv93t1pK4wn1v9dsxopK7QmdvZdT2mv4s6a3Su0RnXd7q+/t57MT9+NNL/vc132rlTne/giQT+2oGQQEiAkEBIICQQEiAkEBIICYQECAmEBEICIQFCAiGBkEBIgJBASCAkEBIgJBASCAkQEggJhARCAoQEQgIhgZAAIYGQQEggJEBIICQQEggJEBIICYQEQgKEBEKCPxaZ6SqAJxIICYQECAmEBG/yAWi2dXdhYc11AAAAAElFTkSuQmCC
|
49
|
+
recorded_at: Wed, 24 Feb 2021 19:42:47 GMT
|
50
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/phax_code.png
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.3.0
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- private
|
21
|
+
content-disposition:
|
22
|
+
- attachment
|
23
|
+
content-transfer-encoding:
|
24
|
+
- binary
|
25
|
+
content-type:
|
26
|
+
- image/png
|
27
|
+
date:
|
28
|
+
- Wed, 24 Feb 2021 19:43:33 GMT
|
29
|
+
etag:
|
30
|
+
- W/"df5f92a4c6622343cee2edf6cd8e0efc"
|
31
|
+
server:
|
32
|
+
- nginx
|
33
|
+
strict-transport-security:
|
34
|
+
- max-age=15768000; preload
|
35
|
+
x-request-id:
|
36
|
+
- 5e398ae5-f30c-4fea-b015-6cb80275304c
|
37
|
+
x-robots-tag:
|
38
|
+
- noindex, nofollow, nosnippet, noarchive
|
39
|
+
x-runtime:
|
40
|
+
- '0.021169'
|
41
|
+
content-length:
|
42
|
+
- '286'
|
43
|
+
connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: ASCII-8BIT
|
47
|
+
string: !binary |-
|
48
|
+
iVBORw0KGgoAAAANSUhEUgAAARgAAAA+CAIAAAB/bpNEAAAA5UlEQVR42u3YQQqDMBBAUUe8/5XHhVCEwTBaBYX3ViVtQkz7sRiZOQH/mR0BCAmEBEIChAR3WupQRPxeb8/0tpH98706UlcYz62ufeZopK7Qmdu56s6e6wr13WsnWVcY762/QudUz/5Onvg2+7PGu7339NyRwF87EBIICRASCAmEBEIChARCAiGBkAAhgZBASCAkQEggJBASCAkQEggJhARCAoQEQgIhAUICIYGQQEiAkEBIICQQEiAkEBIICYQECAmEBEICIQFCAiGBkEBIgJBASPBhkZlOAdyRQEggJEBIICR4kxVkfXV3BcB7rQAAAABJRU5ErkJggg==
|
49
|
+
recorded_at: Wed, 24 Feb 2021 19:42:46 GMT
|
50
|
+
recorded_with: VCR 6.0.0
|
@@ -2,46 +2,47 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api.phaxio.com/v2/phone_numbers
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string:
|
8
|
+
string: area_code=225&country_code=1
|
9
9
|
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
10
12
|
User-Agent:
|
11
|
-
- Faraday
|
13
|
+
- Faraday v1.3.0
|
12
14
|
Content-Type:
|
13
15
|
- application/x-www-form-urlencoded
|
14
16
|
response:
|
15
17
|
status:
|
16
18
|
code: 200
|
17
|
-
message:
|
19
|
+
message: OK
|
18
20
|
headers:
|
19
21
|
cache-control:
|
20
22
|
- max-age=0, private, must-revalidate
|
21
23
|
content-type:
|
22
24
|
- application/json; charset=utf-8
|
23
25
|
date:
|
24
|
-
-
|
26
|
+
- Wed, 24 Feb 2021 19:44:18 GMT
|
25
27
|
etag:
|
26
|
-
- W/"
|
28
|
+
- W/"26f3258916adfa754e8f1b238e5db130"
|
27
29
|
server:
|
28
30
|
- nginx
|
29
31
|
strict-transport-security:
|
30
32
|
- max-age=15768000; preload
|
31
33
|
x-request-id:
|
32
|
-
-
|
34
|
+
- f0ccfe6c-d616-42cf-8ba9-cb1fff17f3cd
|
33
35
|
x-robots-tag:
|
34
36
|
- noindex, nofollow, nosnippet, noarchive
|
35
37
|
x-runtime:
|
36
|
-
- '
|
38
|
+
- '1.737176'
|
37
39
|
content-length:
|
38
|
-
- '
|
40
|
+
- '323'
|
39
41
|
connection:
|
40
|
-
-
|
42
|
+
- keep-alive
|
41
43
|
body:
|
42
44
|
encoding: UTF-8
|
43
|
-
string: '{"success":true,"message":"Number provisioned successfully!","data":{"phone_number":"+
|
44
|
-
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"
|
45
|
-
|
46
|
-
|
47
|
-
recorded_with: VCR 3.0.3
|
45
|
+
string: '{"success":true,"message":"Number provisioned successfully!","data":{"phone_number":"+12258675309","city":"Baton
|
46
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T13:44:18.000-06:00","provisioned_at":"2021-02-24T13:44:18.000-06:00","callback_url":null,"ata_name":null}}'
|
47
|
+
recorded_at: Wed, 24 Feb 2021 19:43:31 GMT
|
48
|
+
recorded_with: VCR 6.0.0
|
@@ -2,44 +2,45 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.phaxio.com/v2/phone_numbers/12258675309
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers/12258675309
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
10
12
|
User-Agent:
|
11
|
-
- Faraday
|
13
|
+
- Faraday v1.3.0
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
15
|
-
message:
|
17
|
+
message: OK
|
16
18
|
headers:
|
17
19
|
cache-control:
|
18
20
|
- max-age=0, private, must-revalidate
|
19
21
|
content-type:
|
20
22
|
- application/json; charset=utf-8
|
21
23
|
date:
|
22
|
-
-
|
24
|
+
- Wed, 24 Feb 2021 19:47:25 GMT
|
23
25
|
etag:
|
24
|
-
- W/"
|
26
|
+
- W/"ff9d755727aea40f301e2268235b9d19"
|
25
27
|
server:
|
26
28
|
- nginx
|
27
29
|
strict-transport-security:
|
28
30
|
- max-age=15768000; preload
|
29
31
|
x-request-id:
|
30
|
-
-
|
32
|
+
- ea6cdbaf-d4ab-4c38-be15-cb6cd12a3853
|
31
33
|
x-robots-tag:
|
32
34
|
- noindex, nofollow, nosnippet, noarchive
|
33
35
|
x-runtime:
|
34
|
-
- '0.
|
36
|
+
- '0.024176'
|
35
37
|
content-length:
|
36
|
-
- '
|
38
|
+
- '332'
|
37
39
|
connection:
|
38
|
-
-
|
40
|
+
- keep-alive
|
39
41
|
body:
|
40
42
|
encoding: UTF-8
|
41
43
|
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":{"phone_number":"+12258675309","city":"Baton
|
42
|
-
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"
|
43
|
-
|
44
|
-
|
45
|
-
recorded_with: VCR 3.0.3
|
44
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T13:44:18.000-06:00","provisioned_at":"2021-02-24T13:44:18.000-06:00","callback_url":null,"ata_name":null}}'
|
45
|
+
recorded_at: Wed, 24 Feb 2021 19:46:39 GMT
|
46
|
+
recorded_with: VCR 6.0.0
|
@@ -2,26 +2,28 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.phaxio.com/v2/phone_numbers
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
10
12
|
User-Agent:
|
11
|
-
- Faraday
|
13
|
+
- Faraday v1.3.0
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
15
|
-
message:
|
17
|
+
message: OK
|
16
18
|
headers:
|
17
19
|
cache-control:
|
18
20
|
- max-age=0, private, must-revalidate
|
19
21
|
content-type:
|
20
22
|
- application/json; charset=utf-8
|
21
23
|
date:
|
22
|
-
-
|
24
|
+
- Wed, 24 Feb 2021 19:48:23 GMT
|
23
25
|
etag:
|
24
|
-
- W/"
|
26
|
+
- W/"2a2b7f3b168cdda8e7f2bd456d9f53cd"
|
25
27
|
server:
|
26
28
|
- nginx
|
27
29
|
strict-transport-security:
|
@@ -31,22 +33,28 @@ http_interactions:
|
|
31
33
|
x-per-page:
|
32
34
|
- '25'
|
33
35
|
x-request-id:
|
34
|
-
-
|
36
|
+
- cb48b0e7-7536-42dd-96a2-95f1e6af0b9e
|
35
37
|
x-robots-tag:
|
36
38
|
- noindex, nofollow, nosnippet, noarchive
|
37
39
|
x-runtime:
|
38
|
-
- '0.
|
40
|
+
- '0.074689'
|
39
41
|
x-total:
|
40
|
-
- '
|
42
|
+
- '9'
|
41
43
|
content-length:
|
42
|
-
- '
|
44
|
+
- '2427'
|
43
45
|
connection:
|
44
|
-
-
|
46
|
+
- keep-alive
|
45
47
|
body:
|
46
48
|
encoding: UTF-8
|
47
|
-
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":[{"phone_number":"+
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":[{"phone_number":"+13372022383","city":"Lafayette,
|
50
|
+
Lake Charles","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-16T16:10:50.000-06:00","provisioned_at":"2019-09-16T17:10:50.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+15558675309","city":"Seattle","state":"Washington","country":"United
|
51
|
+
States of America","cost":200,"last_billed_at":"2021-02-04T15:25:35.000-06:00","provisioned_at":"2020-05-04T16:25:35.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250536","city":"Baton
|
52
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T10:42:25.000-06:00","provisioned_at":"2021-02-24T10:42:25.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250537","city":"Baton
|
53
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T11:08:29.000-06:00","provisioned_at":"2021-02-24T11:08:29.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250538","city":"Baton
|
54
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T11:17:49.000-06:00","provisioned_at":"2021-02-24T11:17:49.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250539","city":"Baton
|
55
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T11:58:15.000-06:00","provisioned_at":"2021-02-24T11:58:15.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250549","city":"Baton
|
56
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T12:44:31.000-06:00","provisioned_at":"2021-02-24T12:44:31.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250550","city":"Baton
|
57
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T12:45:24.000-06:00","provisioned_at":"2021-02-24T12:45:24.000-06:00","callback_url":null,"ata_name":null},{"phone_number":"+12253250554","city":"Baton
|
58
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-02-24T13:44:18.000-06:00","provisioned_at":"2021-02-24T13:44:18.000-06:00","callback_url":null,"ata_name":null}],"paging":{"total":9,"per_page":25,"page":1}}'
|
59
|
+
recorded_at: Wed, 24 Feb 2021 19:47:36 GMT
|
60
|
+
recorded_with: VCR 6.0.0
|
@@ -2,24 +2,26 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: https://api.phaxio.com/v2/phone_numbers/+12258675309
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers/+12258675309
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
10
12
|
User-Agent:
|
11
|
-
- Faraday
|
13
|
+
- Faraday v1.3.0
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
15
|
-
message:
|
17
|
+
message: OK
|
16
18
|
headers:
|
17
19
|
cache-control:
|
18
20
|
- max-age=0, private, must-revalidate
|
19
21
|
content-type:
|
20
22
|
- application/json; charset=utf-8
|
21
23
|
date:
|
22
|
-
-
|
24
|
+
- Wed, 24 Feb 2021 19:49:15 GMT
|
23
25
|
etag:
|
24
26
|
- W/"72f232a3122ac0559f594e0dc20e2512"
|
25
27
|
server:
|
@@ -27,18 +29,17 @@ http_interactions:
|
|
27
29
|
strict-transport-security:
|
28
30
|
- max-age=15768000; preload
|
29
31
|
x-request-id:
|
30
|
-
-
|
32
|
+
- 28a97db1-61d1-4b00-adb8-0e38ed8d3577
|
31
33
|
x-robots-tag:
|
32
34
|
- noindex, nofollow, nosnippet, noarchive
|
33
35
|
x-runtime:
|
34
|
-
- '0.
|
35
|
-
|
36
|
-
-
|
36
|
+
- '0.044131'
|
37
|
+
transfer-encoding:
|
38
|
+
- chunked
|
37
39
|
connection:
|
38
|
-
-
|
40
|
+
- keep-alive
|
39
41
|
body:
|
40
42
|
encoding: UTF-8
|
41
43
|
string: '{"success":true,"message":"Number released successfully!"}'
|
42
|
-
|
43
|
-
|
44
|
-
recorded_with: VCR 3.0.3
|
44
|
+
recorded_at: Wed, 24 Feb 2021 19:48:28 GMT
|
45
|
+
recorded_with: VCR 6.0.0
|
@@ -2,26 +2,28 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.phaxio.com/v2/public/area_codes
|
5
|
+
uri: https://api.phaxio.com/v2.1/public/area_codes
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
10
12
|
User-Agent:
|
11
|
-
- Faraday
|
13
|
+
- Faraday v1.3.0
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 200
|
15
|
-
message:
|
17
|
+
message: OK
|
16
18
|
headers:
|
17
19
|
cache-control:
|
18
20
|
- max-age=0, private, must-revalidate
|
19
21
|
content-type:
|
20
22
|
- application/json; charset=utf-8
|
21
23
|
date:
|
22
|
-
-
|
24
|
+
- Wed, 24 Feb 2021 19:38:52 GMT
|
23
25
|
etag:
|
24
|
-
- W/"
|
26
|
+
- W/"9c18315fdbc934efdcc5d98e24b54bef"
|
25
27
|
server:
|
26
28
|
- nginx
|
27
29
|
strict-transport-security:
|
@@ -31,24 +33,21 @@ http_interactions:
|
|
31
33
|
x-per-page:
|
32
34
|
- '25'
|
33
35
|
x-request-id:
|
34
|
-
-
|
36
|
+
- 1b4a830d-591d-49b1-b9f4-fbcb59136968
|
35
37
|
x-robots-tag:
|
36
38
|
- noindex, nofollow, nosnippet, noarchive
|
37
39
|
x-runtime:
|
38
|
-
- '0.
|
40
|
+
- '0.029816'
|
39
41
|
x-total:
|
40
|
-
- '
|
42
|
+
- '327'
|
41
43
|
content-length:
|
42
|
-
- '
|
44
|
+
- '3552'
|
43
45
|
connection:
|
44
|
-
-
|
46
|
+
- keep-alive
|
45
47
|
body:
|
46
48
|
encoding: UTF-8
|
47
|
-
string: '{"success":true,"message":"Data contains found available area codes","data":[{"country_code":1,"area_code":
|
48
|
-
|
49
|
-
America","toll_free":false},{"country_code":1,"area_code":202,"city":"Washington","state":"District
|
50
|
-
of Columbia","country":"United States of America","toll_free":false},{"country_code":1,"area_code":203,"city":"Bridgeport,
|
51
|
-
Danbury, Meriden","state":"Connecticut","country":"United States of America","toll_free":false},{"country_code":1,"area_code":204,"city":"Brandon,
|
49
|
+
string: '{"success":true,"message":"Data contains found available area codes","data":[{"country_code":1,"area_code":202,"city":"Washington","state":"District
|
50
|
+
of Columbia","country":"United States of America","toll_free":false},{"country_code":1,"area_code":204,"city":"Brandon,
|
52
51
|
Winnipeg","state":"Manitoba","country":"Canada","toll_free":false},{"country_code":1,"area_code":205,"city":"Birmingham,
|
53
52
|
Clanton, Jasper","state":"Alabama","country":"United States of America","toll_free":false},{"country_code":1,"area_code":206,"city":"Seattle","state":"Washington","country":"United
|
54
53
|
States of America","toll_free":false},{"country_code":1,"area_code":207,"city":"Portland","state":"Maine","country":"United
|
@@ -56,8 +55,7 @@ http_interactions:
|
|
56
55
|
Idaho Falls, Pocatello","state":"Idaho","country":"United States of America","toll_free":false},{"country_code":1,"area_code":209,"city":"Lodi,
|
57
56
|
Merced, Modesto","state":"California","country":"United States of America","toll_free":false},{"country_code":1,"area_code":210,"city":"San
|
58
57
|
Antonio","state":"Texas","country":"United States of America","toll_free":false},{"country_code":1,"area_code":213,"city":"Los
|
59
|
-
Angeles","state":"California","country":"United States of America","toll_free":false},{"country_code":1,"area_code":
|
60
|
-
States of America","toll_free":false},{"country_code":1,"area_code":215,"city":"Levittown,
|
58
|
+
Angeles","state":"California","country":"United States of America","toll_free":false},{"country_code":1,"area_code":215,"city":"Levittown,
|
61
59
|
Philadelphia","state":"Pennsylvania","country":"United States of America","toll_free":false},{"country_code":1,"area_code":216,"city":"Cleveland,
|
62
60
|
Euclid, Lakewood","state":"Ohio","country":"United States of America","toll_free":false},{"country_code":1,"area_code":217,"city":"Champaign,
|
63
61
|
Decatur, Springfield","state":"Illinois","country":"United States of America","toll_free":false},{"country_code":1,"area_code":218,"city":"Duluth,
|
@@ -71,7 +69,11 @@ http_interactions:
|
|
71
69
|
Americus, Bainbridge","state":"Georgia","country":"United States of America","toll_free":false},{"country_code":1,"area_code":231,"city":"Grant","state":"Michigan","country":"United
|
72
70
|
States of America","toll_free":false},{"country_code":1,"area_code":234,"city":"Akron,
|
73
71
|
Canton, Youngstown","state":"Ohio","country":"United States of America","toll_free":false},{"country_code":1,"area_code":236,"city":"Vancouver","state":"British
|
74
|
-
Columbia","country":"Canada","toll_free":false}
|
75
|
-
|
76
|
-
|
77
|
-
|
72
|
+
Columbia","country":"Canada","toll_free":false},{"country_code":1,"area_code":239,"city":"Cape
|
73
|
+
Coral","state":"Florida","country":"United States of America","toll_free":false},{"country_code":1,"area_code":240,"city":"Aspen
|
74
|
+
Hill, Bethesda, Frederick","state":"Maryland","country":"United States of
|
75
|
+
America","toll_free":false},{"country_code":1,"area_code":248,"city":"Farmington
|
76
|
+
Hills, Pontiac, Rochester Hills","state":"Michigan","country":"United States
|
77
|
+
of America","toll_free":false}],"paging":{"total":327,"per_page":25,"page":1}}'
|
78
|
+
recorded_at: Wed, 24 Feb 2021 19:38:05 GMT
|
79
|
+
recorded_with: VCR 6.0.0
|