twilio-ruby 7.2.1 → 7.2.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb9436f524c03cbde20414ac57dd64f44a8252bc
|
4
|
+
data.tar.gz: 44d08b5311da11479bdc4291f481e3a82f6f1572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3788776c80c73b448440d94544d0c9070eb080871ca75eee64b475e8a43e4dcda4f414aa163ec2fa139e7e47d6ca0983c698e79c52bee4ff56a949539028c40
|
7
|
+
data.tar.gz: 36cdb1d035fedcf8de62e07af6a4a201e25bd95cba8067dd099f819eaea3f4e801392a0797763d07a5824dafe73ac44981e46010b5da703198e28103f425dce4
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2024-07-02] Version 7.2.3
|
5
|
+
--------------------------
|
6
|
+
**Rubygems**
|
7
|
+
- Add docs link to gemspec
|
8
|
+
|
9
|
+
[2024-07-02] Version 7.2.2
|
10
|
+
--------------------------
|
11
|
+
**Intelligence**
|
12
|
+
- Deprecate account flag api.twilio-intelligence.v2
|
13
|
+
|
14
|
+
|
4
15
|
[2024-06-27] Version 7.2.1
|
5
16
|
--------------------------
|
6
17
|
**Api**
|
data/README.md
CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 7.2.
|
42
|
+
gem 'twilio-ruby', '~> 7.2.3'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 7.2.
|
48
|
+
gem install twilio-ruby -v 7.2.3
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Numbers < NumbersBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class WebhookList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the WebhookList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [WebhookList] WebhookList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,14 +31,14 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Fetch the
|
35
|
-
# @return [
|
34
|
+
# Fetch the WebhookInstance
|
35
|
+
# @return [WebhookInstance] Fetched WebhookInstance
|
36
36
|
def fetch
|
37
37
|
|
38
38
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
39
39
|
|
40
40
|
payload = @version.fetch('GET', @uri, headers: headers)
|
41
|
-
|
41
|
+
WebhookInstance.new(
|
42
42
|
@version,
|
43
43
|
payload,
|
44
44
|
)
|
@@ -49,17 +49,17 @@ module Twilio
|
|
49
49
|
|
50
50
|
# Provide a user friendly representation
|
51
51
|
def to_s
|
52
|
-
'#<Twilio.Numbers.V1.
|
52
|
+
'#<Twilio.Numbers.V1.WebhookList>'
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
class
|
56
|
+
class WebhookPage < Page
|
57
57
|
##
|
58
|
-
# Initialize the
|
58
|
+
# Initialize the WebhookPage
|
59
59
|
# @param [Version] version Version that contains the resource
|
60
60
|
# @param [Response] response Response from the API
|
61
61
|
# @param [Hash] solution Path solution for the resource
|
62
|
-
# @return [
|
62
|
+
# @return [WebhookPage] WebhookPage
|
63
63
|
def initialize(version, response, solution)
|
64
64
|
super(version, response)
|
65
65
|
|
@@ -68,29 +68,29 @@ module Twilio
|
|
68
68
|
end
|
69
69
|
|
70
70
|
##
|
71
|
-
# Build an instance of
|
71
|
+
# Build an instance of WebhookInstance
|
72
72
|
# @param [Hash] payload Payload response from the API
|
73
|
-
# @return [
|
73
|
+
# @return [WebhookInstance] WebhookInstance
|
74
74
|
def get_instance(payload)
|
75
|
-
|
75
|
+
WebhookInstance.new(@version, payload)
|
76
76
|
end
|
77
77
|
|
78
78
|
##
|
79
79
|
# Provide a user friendly representation
|
80
80
|
def to_s
|
81
|
-
'<Twilio.Numbers.V1.
|
81
|
+
'<Twilio.Numbers.V1.WebhookPage>'
|
82
82
|
end
|
83
83
|
end
|
84
|
-
class
|
84
|
+
class WebhookInstance < InstanceResource
|
85
85
|
##
|
86
|
-
# Initialize the
|
86
|
+
# Initialize the WebhookInstance
|
87
87
|
# @param [Version] version Version that contains the resource
|
88
88
|
# @param [Hash] payload payload that contains response from Twilio
|
89
89
|
# @param [String] account_sid The SID of the
|
90
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
90
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
|
91
91
|
# resource.
|
92
92
|
# @param [String] sid The SID of the Call resource to fetch.
|
93
|
-
# @return [
|
93
|
+
# @return [WebhookInstance] WebhookInstance
|
94
94
|
def initialize(version, payload )
|
95
95
|
super(version)
|
96
96
|
|
@@ -145,13 +145,13 @@ module Twilio
|
|
145
145
|
##
|
146
146
|
# Provide a user friendly representation
|
147
147
|
def to_s
|
148
|
-
"<Twilio.Numbers.V1.
|
148
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
149
149
|
end
|
150
150
|
|
151
151
|
##
|
152
152
|
# Provide a detailed, user friendly representation
|
153
153
|
def inspect
|
154
|
-
"<Twilio.Numbers.V1.
|
154
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
@@ -28,8 +28,8 @@ module Twilio
|
|
28
28
|
@porting_portabilities = nil
|
29
29
|
@porting_webhook_configurations = nil
|
30
30
|
@porting_webhook_configurations_delete = nil
|
31
|
-
@porting_webhook_configuration_fetch = nil
|
32
31
|
@signing_request_configurations = nil
|
32
|
+
@webhook = nil
|
33
33
|
end
|
34
34
|
|
35
35
|
##
|
@@ -135,16 +135,16 @@ module Twilio
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
##
|
138
|
-
# @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList]
|
139
|
-
def porting_webhook_configuration_fetch
|
140
|
-
@porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
|
141
|
-
end
|
142
|
-
##
|
143
138
|
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
144
139
|
def signing_request_configurations
|
145
140
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
146
141
|
end
|
147
142
|
##
|
143
|
+
# @return [Twilio::REST::Numbers::V1::WebhookList]
|
144
|
+
def webhook
|
145
|
+
@webhook ||= WebhookList.new self
|
146
|
+
end
|
147
|
+
##
|
148
148
|
# Provide a user friendly representation
|
149
149
|
def to_s
|
150
150
|
'<Twilio::REST::Numbers::V1>';
|
data/lib/twilio-ruby/version.rb
CHANGED
data/twilio-ruby.gemspec
CHANGED
@@ -14,7 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
'building TwiML, and generating Twilio JWT Capability Tokens'
|
15
15
|
spec.homepage = 'https://github.com/twilio/twilio-ruby'
|
16
16
|
spec.license = 'MIT'
|
17
|
-
spec.metadata = { '
|
17
|
+
spec.metadata = { 'documentation_uri' => 'https://www.twilio.com/docs/libraries/reference/twilio-ruby/',
|
18
|
+
'yard.run' => 'yri' } # use "yard" to build full HTML docs
|
18
19
|
|
19
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match?(%r{^(spec)/}) }
|
20
21
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.2.
|
4
|
+
version: 7.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -580,8 +580,8 @@ files:
|
|
580
580
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
581
581
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
582
582
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
583
|
-
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
584
583
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
584
|
+
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
585
585
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
586
586
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
587
587
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|
@@ -866,6 +866,7 @@ homepage: https://github.com/twilio/twilio-ruby
|
|
866
866
|
licenses:
|
867
867
|
- MIT
|
868
868
|
metadata:
|
869
|
+
documentation_uri: https://www.twilio.com/docs/libraries/reference/twilio-ruby/
|
869
870
|
yard.run: yri
|
870
871
|
post_install_message:
|
871
872
|
rdoc_options:
|