phaxio 2.0.1 → 2.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -2,26 +2,28 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.phaxio.com/v2/public/countries
|
5
|
+
uri: https://api.phaxio.com/v2.1/public/countries
|
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:37:27 GMT
|
23
25
|
etag:
|
24
|
-
- W/"
|
26
|
+
- W/"1662637ad255ab3635318bef0bf5068b"
|
25
27
|
server:
|
26
28
|
- nginx
|
27
29
|
strict-transport-security:
|
@@ -31,24 +33,23 @@ http_interactions:
|
|
31
33
|
x-per-page:
|
32
34
|
- '25'
|
33
35
|
x-request-id:
|
34
|
-
-
|
36
|
+
- b394b58a-a31e-42ba-b342-d8441dedc7c9
|
35
37
|
x-robots-tag:
|
36
38
|
- noindex, nofollow, nosnippet, noarchive
|
37
39
|
x-runtime:
|
38
|
-
- '0.
|
40
|
+
- '0.014810'
|
39
41
|
x-total:
|
40
|
-
- '
|
42
|
+
- '250'
|
41
43
|
content-length:
|
42
44
|
- '3128'
|
43
45
|
connection:
|
44
|
-
-
|
46
|
+
- keep-alive
|
45
47
|
body:
|
46
48
|
encoding: UTF-8
|
47
49
|
string: '{"success":true,"message":"Data contains countries info","data":[{"name":"United
|
48
50
|
States of America","alpha2":"US","country_code":1,"price_per_page":7,"send_support":"full","receive_support":"full"},{"name":"Canada","alpha2":"CA","country_code":1,"price_per_page":7,"send_support":"full","receive_support":"full"},{"name":"Puerto
|
49
|
-
Rico","alpha2":"PR","country_code":1,"price_per_page":
|
51
|
+
Rico","alpha2":"PR","country_code":1,"price_per_page":7,"send_support":"full","receive_support":"none"},{"name":"Argentina","alpha2":"AR","country_code":54,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Austria","alpha2":"AT","country_code":43,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Australia","alpha2":"AU","country_code":61,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Belgium","alpha2":"BE","country_code":32,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Brazil","alpha2":"BR","country_code":55,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Switzerland","alpha2":"CH","country_code":41,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Germany","alpha2":"DE","country_code":49,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Denmark","alpha2":"DK","country_code":45,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Spain","alpha2":"ES","country_code":34,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"France","alpha2":"FR","country_code":33,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"United
|
50
52
|
Kingdom of Great Britain and Northern Ireland","alpha2":"GB","country_code":44,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Greece","alpha2":"GR","country_code":30,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Hong
|
51
|
-
Kong","alpha2":"HK","country_code":852,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Ireland","alpha2":"IE","country_code":353,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Israel","alpha2":"IL","country_code":972,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"India","alpha2":"IN","country_code":91,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Italy","alpha2":"IT","country_code":39,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Jersey","alpha2":"JE","country_code":44,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Japan","alpha2":"JP","country_code":81,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Luxembourg","alpha2":"LU","country_code":352,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Netherlands","alpha2":"NL","country_code":31,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Norway","alpha2":"NO","country_code":47,"price_per_page":10,"send_support":"full","receive_support":"none"}],"paging":{"total":
|
52
|
-
|
53
|
-
|
54
|
-
recorded_with: VCR 3.0.3
|
53
|
+
Kong","alpha2":"HK","country_code":852,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Ireland","alpha2":"IE","country_code":353,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Israel","alpha2":"IL","country_code":972,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"India","alpha2":"IN","country_code":91,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Italy","alpha2":"IT","country_code":39,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Jersey","alpha2":"JE","country_code":44,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Japan","alpha2":"JP","country_code":81,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Luxembourg","alpha2":"LU","country_code":352,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Netherlands","alpha2":"NL","country_code":31,"price_per_page":10,"send_support":"full","receive_support":"none"},{"name":"Norway","alpha2":"NO","country_code":47,"price_per_page":10,"send_support":"full","receive_support":"none"}],"paging":{"total":250,"per_page":25,"page":1}}'
|
54
|
+
recorded_at: Wed, 24 Feb 2021 19:36:40 GMT
|
55
|
+
recorded_with: VCR 6.0.0
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phaxio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.1.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Negrotto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.10'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.10'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: mime-types
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,6 +79,7 @@ files:
|
|
73
79
|
- lib/phaxio/resource.rb
|
74
80
|
- lib/phaxio/resources.rb
|
75
81
|
- lib/phaxio/resources/account.rb
|
82
|
+
- lib/phaxio/resources/ata.rb
|
76
83
|
- lib/phaxio/resources/callback.rb
|
77
84
|
- lib/phaxio/resources/fax.rb
|
78
85
|
- lib/phaxio/resources/fax_recipient.rb
|
@@ -102,15 +109,27 @@ files:
|
|
102
109
|
- spec/support/vcr_cassettes/resources/account/status.yml
|
103
110
|
- spec/support/vcr_cassettes/resources/fax/cancel.yml
|
104
111
|
- spec/support/vcr_cassettes/resources/fax/create.yml
|
112
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_cancel.yml
|
113
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_delete.yml
|
114
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_delete_file.yml
|
115
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_download_file.yml
|
116
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_get.yml
|
117
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_reference.yml
|
118
|
+
- spec/support/vcr_cassettes/resources/fax/create_for_resend.yml
|
105
119
|
- spec/support/vcr_cassettes/resources/fax/delete.yml
|
106
120
|
- spec/support/vcr_cassettes/resources/fax/delete_file.yml
|
107
121
|
- spec/support/vcr_cassettes/resources/fax/file.yml
|
108
122
|
- spec/support/vcr_cassettes/resources/fax/get.yml
|
109
123
|
- spec/support/vcr_cassettes/resources/fax/list.yml
|
124
|
+
- spec/support/vcr_cassettes/resources/fax/reference.yml
|
110
125
|
- spec/support/vcr_cassettes/resources/fax/resend.yml
|
111
126
|
- spec/support/vcr_cassettes/resources/fax/test_receive.yml
|
112
127
|
- spec/support/vcr_cassettes/resources/phax_code/create.yml
|
128
|
+
- spec/support/vcr_cassettes/resources/phax_code/create_png.yml
|
113
129
|
- spec/support/vcr_cassettes/resources/phax_code/get.yml
|
130
|
+
- spec/support/vcr_cassettes/resources/phax_code/get_id.yml
|
131
|
+
- spec/support/vcr_cassettes/resources/phax_code/get_id_png.yml
|
132
|
+
- spec/support/vcr_cassettes/resources/phax_code/get_png.yml
|
114
133
|
- spec/support/vcr_cassettes/resources/phone_number/create.yml
|
115
134
|
- spec/support/vcr_cassettes/resources/phone_number/get.yml
|
116
135
|
- spec/support/vcr_cassettes/resources/phone_number/list.yml
|
@@ -132,12 +151,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
151
|
version: '2.0'
|
133
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
153
|
requirements:
|
135
|
-
- - "
|
154
|
+
- - ">"
|
136
155
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
156
|
+
version: 1.3.1
|
138
157
|
requirements: []
|
139
|
-
|
140
|
-
rubygems_version: 2.5.2.2
|
158
|
+
rubygems_version: 3.2.11
|
141
159
|
signing_key:
|
142
160
|
specification_version: 4
|
143
161
|
summary: Official ruby gem for interacting with Phaxio's API.
|