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.
Files changed (44) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +2 -1
  3. data/README.md +46 -13
  4. data/lib/phaxio.rb +2 -1
  5. data/lib/phaxio/client.rb +31 -10
  6. data/lib/phaxio/config.rb +1 -1
  7. data/lib/phaxio/resources/ata.rb +219 -0
  8. data/lib/phaxio/version.rb +1 -1
  9. data/phaxio.gemspec +1 -1
  10. data/spec/client_spec.rb +6 -6
  11. data/spec/resources/fax_spec.rb +40 -19
  12. data/spec/resources/phax_code_spec.rb +52 -24
  13. data/spec/support/vcr.rb +1 -2
  14. data/spec/support/vcr_cassettes/resources/account/status.yml +14 -13
  15. data/spec/support/vcr_cassettes/resources/fax/cancel.yml +16 -15
  16. data/spec/support/vcr_cassettes/resources/fax/create.yml +17 -197
  17. data/spec/support/vcr_cassettes/resources/fax/create_for_cancel.yml +50 -0
  18. data/spec/support/vcr_cassettes/resources/fax/create_for_delete.yml +50 -0
  19. data/spec/support/vcr_cassettes/resources/fax/create_for_delete_file.yml +50 -0
  20. data/spec/support/vcr_cassettes/resources/fax/create_for_download_file.yml +50 -0
  21. data/spec/support/vcr_cassettes/resources/fax/create_for_get.yml +50 -0
  22. data/spec/support/vcr_cassettes/resources/fax/create_for_reference.yml +50 -0
  23. data/spec/support/vcr_cassettes/resources/fax/create_for_resend.yml +50 -0
  24. data/spec/support/vcr_cassettes/resources/fax/delete.yml +11 -10
  25. data/spec/support/vcr_cassettes/resources/fax/delete_file.yml +11 -10
  26. data/spec/support/vcr_cassettes/resources/fax/file.yml +15 -216
  27. data/spec/support/vcr_cassettes/resources/fax/get.yml +14 -13
  28. data/spec/support/vcr_cassettes/resources/fax/list.yml +15 -20
  29. data/spec/support/vcr_cassettes/resources/fax/reference.yml +45 -0
  30. data/spec/support/vcr_cassettes/resources/fax/resend.yml +15 -14
  31. data/spec/support/vcr_cassettes/resources/fax/test_receive.yml +14 -194
  32. data/spec/support/vcr_cassettes/resources/phax_code/create.yml +12 -65
  33. data/spec/support/vcr_cassettes/resources/phax_code/create_png.yml +52 -0
  34. data/spec/support/vcr_cassettes/resources/phax_code/get.yml +13 -158
  35. data/spec/support/vcr_cassettes/resources/phax_code/get_id.yml +46 -0
  36. data/spec/support/vcr_cassettes/resources/phax_code/get_id_png.yml +50 -0
  37. data/spec/support/vcr_cassettes/resources/phax_code/get_png.yml +50 -0
  38. data/spec/support/vcr_cassettes/resources/phone_number/create.yml +16 -15
  39. data/spec/support/vcr_cassettes/resources/phone_number/get.yml +14 -13
  40. data/spec/support/vcr_cassettes/resources/phone_number/list.yml +24 -16
  41. data/spec/support/vcr_cassettes/resources/phone_number/release.yml +13 -12
  42. data/spec/support/vcr_cassettes/resources/public/area_codes/list.yml +23 -21
  43. data/spec/support/vcr_cassettes/resources/public/country/list.yml +15 -14
  44. 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: api_key=<API_KEY>&api_secret=<API_SECRET>&area_code=225&country_code=1
8
+ string: area_code=225&country_code=1
9
9
  headers:
10
+ Authorization:
11
+ - Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
10
12
  User-Agent:
11
- - Faraday v0.13.1
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
- - Tue, 31 Oct 2017 02:51:12 GMT
26
+ - Wed, 24 Feb 2021 19:44:18 GMT
25
27
  etag:
26
- - W/"8a85980fdbb5f8f3cb813a1704f55ac8"
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
- - ef857553-09d4-4144-95f3-e2681de3f72a
34
+ - f0ccfe6c-d616-42cf-8ba9-cb1fff17f3cd
33
35
  x-robots-tag:
34
36
  - noindex, nofollow, nosnippet, noarchive
35
37
  x-runtime:
36
- - '0.189105'
38
+ - '1.737176'
37
39
  content-length:
38
- - '307'
40
+ - '323'
39
41
  connection:
40
- - Close
42
+ - keep-alive
41
43
  body:
42
44
  encoding: UTF-8
43
- string: '{"success":true,"message":"Number provisioned successfully!","data":{"phone_number":"+12255000373","city":"Baton
44
- Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2017-10-30T21:51:12.000-05:00","provisioned_at":"2017-10-30T21:51:12.000-05:00","callback_url":null}}'
45
- http_version:
46
- recorded_at: Tue, 31 Oct 2017 02:51:13 GMT
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?api_key=<API_KEY>&api_secret=<API_SECRET>
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 v0.13.1
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
- - Tue, 31 Oct 2017 02:55:10 GMT
24
+ - Wed, 24 Feb 2021 19:47:25 GMT
23
25
  etag:
24
- - W/"b1274ae296f2576fae570b91c9baa18d"
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
- - 0499ad65-5f3c-4830-aa10-12c88973d2ee
32
+ - ea6cdbaf-d4ab-4c38-be15-cb6cd12a3853
31
33
  x-robots-tag:
32
34
  - noindex, nofollow, nosnippet, noarchive
33
35
  x-runtime:
34
- - '0.041250'
36
+ - '0.024176'
35
37
  content-length:
36
- - '316'
38
+ - '332'
37
39
  connection:
38
- - Close
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":"2017-10-30T21:51:12.000-05:00","provisioned_at":"2017-10-30T21:51:12.000-05:00","callback_url":null}}'
43
- http_version:
44
- recorded_at: Tue, 31 Oct 2017 02:55:10 GMT
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?api_key=<API_KEY>&api_secret=<API_SECRET>
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 v0.13.1
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
- - Tue, 31 Oct 2017 02:57:00 GMT
24
+ - Wed, 24 Feb 2021 19:48:23 GMT
23
25
  etag:
24
- - W/"d146491212cda96fc08f7e8a8e6e5147"
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
- - 711de3a2-8f35-4983-b349-c57dba2a550d
36
+ - cb48b0e7-7536-42dd-96a2-95f1e6af0b9e
35
37
  x-robots-tag:
36
38
  - noindex, nofollow, nosnippet, noarchive
37
39
  x-runtime:
38
- - '0.060597'
40
+ - '0.074689'
39
41
  x-total:
40
- - '2'
42
+ - '9'
41
43
  content-length:
42
- - '601'
44
+ - '2427'
43
45
  connection:
44
- - Close
46
+ - keep-alive
45
47
  body:
46
48
  encoding: UTF-8
47
- string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":[{"phone_number":"+15558675309","city":"Baton
48
- Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2017-10-13T15:32:37.000-05:00","provisioned_at":"2016-10-13T15:32:37.000-05:00","callback_url":null},{"phone_number":"+12255000373","city":"Baton
49
- Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2017-10-30T21:51:12.000-05:00","provisioned_at":"2017-10-30T21:51:12.000-05:00","callback_url":null}],"paging":{"total":2,"per_page":25,"page":1}}'
50
- http_version:
51
- recorded_at: Tue, 31 Oct 2017 02:57:01 GMT
52
- recorded_with: VCR 3.0.3
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?api_key=<API_KEY>&api_secret=<API_SECRET>
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 v0.13.1
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
- - Tue, 31 Oct 2017 03:01:31 GMT
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
- - 5d9baff3-8717-45d1-a3e8-519163964b82
32
+ - 28a97db1-61d1-4b00-adb8-0e38ed8d3577
31
33
  x-robots-tag:
32
34
  - noindex, nofollow, nosnippet, noarchive
33
35
  x-runtime:
34
- - '0.093251'
35
- content-length:
36
- - '58'
36
+ - '0.044131'
37
+ transfer-encoding:
38
+ - chunked
37
39
  connection:
38
- - Close
40
+ - keep-alive
39
41
  body:
40
42
  encoding: UTF-8
41
43
  string: '{"success":true,"message":"Number released successfully!"}'
42
- http_version:
43
- recorded_at: Tue, 31 Oct 2017 03:01:31 GMT
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?api_key=<API_KEY>&api_secret=<API_SECRET>
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 v0.13.1
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
- - Thu, 07 Dec 2017 20:38:37 GMT
24
+ - Wed, 24 Feb 2021 19:38:52 GMT
23
25
  etag:
24
- - W/"56470adee9a78769884080bc4b628386"
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
- - ed022755-362a-4d88-83e3-e76c7dfb102e
36
+ - 1b4a830d-591d-49b1-b9f4-fbcb59136968
35
37
  x-robots-tag:
36
38
  - noindex, nofollow, nosnippet, noarchive
37
39
  x-runtime:
38
- - '0.047382'
40
+ - '0.029816'
39
41
  x-total:
40
- - '329'
42
+ - '327'
41
43
  content-length:
42
- - '3538'
44
+ - '3552'
43
45
  connection:
44
- - Close
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":201,"city":"Bayonne,
48
- Jersey City, Union City","state":"New Jersey","country":"United States of
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":214,"city":"Dallas","state":"Texas","country":"United
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}],"paging":{"total":329,"per_page":25,"page":1}}'
75
- http_version:
76
- recorded_at: Thu, 07 Dec 2017 20:38:37 GMT
77
- recorded_with: VCR 3.0.3
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