twilio-ruby 5.0.0.rc11 → 5.0.0.rc12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS.md +45 -32
- data/Makefile +3 -0
- data/README.md +2 -2
- data/Rakefile +52 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +52 -3
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +52 -3
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/twiml/twiml_response_spec.rb +47 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a096dffb0a9572aa6b6e044688cea15da9b7d2cd
|
4
|
+
data.tar.gz: 1f519a1ccc31b4330e754520e04a507c585bd795
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f94c203b11f93418fad5dde7ab39b33a50f74c900d9218a8e67ffd5673fd1f9b0fdf117cd9d1b6889a658cb4e2261c5bd064e443441f38adf54b2ffa155b365b
|
7
|
+
data.tar.gz: 96d32c7f3a028f6961b11d0963cd4c5932742741b079dd60a3f261113478aa24acd5be4842d74f38226232f2c39836794b1e12369bf066ef7a2f9972ad16813c
|
data/AUTHORS.md
CHANGED
@@ -4,35 +4,48 @@ Authors
|
|
4
4
|
A huge thanks to all of our contributors:
|
5
5
|
|
6
6
|
|
7
|
-
- Adam Ballai
|
8
|
-
- Alexander Murmann & Ryan Spore
|
9
|
-
- Alexandre Payment
|
10
|
-
- Andrew Benton
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
7
|
+
- Adam Ballai
|
8
|
+
- Alexander Murmann & Ryan Spore
|
9
|
+
- Alexandre Payment
|
10
|
+
- Andrew Benton
|
11
|
+
- Billy Chia
|
12
|
+
- Brian Levine
|
13
|
+
- Caley Woods
|
14
|
+
- Carlos Diaz-Padron
|
15
|
+
- Connor Montgomery
|
16
|
+
- Doug Black
|
17
|
+
- Elaine Tsai
|
18
|
+
- Fiona Tay & Will Read
|
19
|
+
- Geoff Petrie
|
20
|
+
- Guille Carlos
|
21
|
+
- Jeremy Franz
|
22
|
+
- Jingming Niu
|
23
|
+
- Josh Hull
|
24
|
+
- Joël Franusic
|
25
|
+
- K Gautam Pai
|
26
|
+
- Karl Freeman
|
27
|
+
- Karthik Sirasanagandla
|
28
|
+
- Kevin Burke
|
29
|
+
- Kush Kella
|
30
|
+
- Kyle Conroy
|
31
|
+
- Leo Adamek
|
32
|
+
- Matt Eldridge
|
33
|
+
- Matt Nowack
|
34
|
+
- Michael Wawra
|
35
|
+
- Moncef Belyamani
|
36
|
+
- Nate Berkopec
|
37
|
+
- Oscar
|
38
|
+
- Oscar Sanchez
|
39
|
+
- Phil Nash
|
40
|
+
- Rafael Chacon
|
41
|
+
- Ryan Bigg
|
42
|
+
- Ryan Cavicchioni
|
43
|
+
- Ryan Spore
|
44
|
+
- Sam Kimbrel
|
45
|
+
- Senthil Ramakrishnan
|
46
|
+
- Tom Moor
|
47
|
+
- Torey Heinz
|
48
|
+
- Vipul A M
|
49
|
+
- liz rush
|
50
|
+
- matt
|
51
|
+
- vfrride
|
data/Makefile
CHANGED
@@ -12,4 +12,7 @@ authors:
|
|
12
12
|
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
|
13
13
|
|
14
14
|
deploy:
|
15
|
+
bundle exec rake deploy
|
16
|
+
|
17
|
+
gem:
|
15
18
|
bundle exec rake build | sed -e 's/.*pkg/pkg/g' | sed -e "s/\.$$//g" | xargs gem push
|
data/README.md
CHANGED
@@ -11,13 +11,13 @@ A module for using the Twilio REST API and generating valid [TwiML](http://www.t
|
|
11
11
|
To install using [Bundler][bundler] grab the latest stable version:
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
gem 'twilio-ruby', '~> 5.0.0.
|
14
|
+
gem 'twilio-ruby', '~> 5.0.0.rc12'
|
15
15
|
```
|
16
16
|
|
17
17
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
18
18
|
|
19
19
|
```bash
|
20
|
-
gem install twilio-ruby -v 5.0.0.
|
20
|
+
gem install twilio-ruby -v 5.0.0.rc12
|
21
21
|
```
|
22
22
|
|
23
23
|
To build and install the development branch yourself from the latest source:
|
data/Rakefile
CHANGED
@@ -8,3 +8,55 @@ RSpec::Core::RakeTask.new(:spec)
|
|
8
8
|
|
9
9
|
task default: :spec
|
10
10
|
task test: :spec
|
11
|
+
|
12
|
+
task :authors do
|
13
|
+
`make authors`
|
14
|
+
end
|
15
|
+
|
16
|
+
task :deploy, [:version] => [:spec, :authors] do |t, args|
|
17
|
+
current_version = Twilio::VERSION
|
18
|
+
|
19
|
+
if args.version.nil?
|
20
|
+
version = Twilio::VERSION
|
21
|
+
version_parts = version.split('.')
|
22
|
+
increment = version_parts.pop
|
23
|
+
increment_prefix = increment.split(/\d/)[0]
|
24
|
+
|
25
|
+
if increment_prefix
|
26
|
+
increment = increment[increment_prefix.length..-1]
|
27
|
+
end
|
28
|
+
|
29
|
+
increment = increment.to_i + 1
|
30
|
+
if increment_prefix
|
31
|
+
increment = "#{increment_prefix}#{increment}"
|
32
|
+
end
|
33
|
+
|
34
|
+
version = [*version_parts, increment].join('.')
|
35
|
+
else
|
36
|
+
version = args.version
|
37
|
+
end
|
38
|
+
|
39
|
+
puts("Deploying #{version}")
|
40
|
+
|
41
|
+
# Update version.rb
|
42
|
+
version_file = <<SRC
|
43
|
+
module Twilio
|
44
|
+
VERSION = '#{version}'
|
45
|
+
end
|
46
|
+
SRC
|
47
|
+
File.write('lib/twilio-ruby/version.rb', version_file)
|
48
|
+
|
49
|
+
# Update README.md
|
50
|
+
current_readme = File.read('README.md')
|
51
|
+
new_readme = current_readme.gsub(Regexp.new(current_version.gsub('.', '\.')), version)
|
52
|
+
File.write('README.md', new_readme)
|
53
|
+
|
54
|
+
# Make a git commit
|
55
|
+
`git commit -am "Bumping to version #{version}"`
|
56
|
+
|
57
|
+
# Do the gem deployment
|
58
|
+
`make gem`
|
59
|
+
|
60
|
+
# Push the branch back up
|
61
|
+
`git push`
|
62
|
+
end
|
@@ -44,6 +44,13 @@ module Twilio
|
|
44
44
|
# @param [Boolean] exclude_foreign_address_required The
|
45
45
|
# exclude_foreign_address_required
|
46
46
|
# @param [Boolean] beta The beta
|
47
|
+
# @param [String] near_number The near_number
|
48
|
+
# @param [String] near_lat_long The near_lat_long
|
49
|
+
# @param [String] distance The distance
|
50
|
+
# @param [String] in_postal_code The in_postal_code
|
51
|
+
# @param [String] in_region The in_region
|
52
|
+
# @param [String] in_rate_center The in_rate_center
|
53
|
+
# @param [String] in_lata The in_lata
|
47
54
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
48
55
|
# guarantees to never return more than limit. Default is no limit
|
49
56
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -51,7 +58,7 @@ module Twilio
|
|
51
58
|
# but a limit is defined, stream() will attempt to read the
|
52
59
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
53
60
|
# @return [Array] Array of up to limit results
|
54
|
-
def list(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, limit: nil, page_size: nil)
|
61
|
+
def list(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, limit: nil, page_size: nil)
|
55
62
|
self.stream(
|
56
63
|
area_code: area_code,
|
57
64
|
contains: contains,
|
@@ -62,6 +69,13 @@ module Twilio
|
|
62
69
|
exclude_local_address_required: exclude_local_address_required,
|
63
70
|
exclude_foreign_address_required: exclude_foreign_address_required,
|
64
71
|
beta: beta,
|
72
|
+
near_number: near_number,
|
73
|
+
near_lat_long: near_lat_long,
|
74
|
+
distance: distance,
|
75
|
+
in_postal_code: in_postal_code,
|
76
|
+
in_region: in_region,
|
77
|
+
in_rate_center: in_rate_center,
|
78
|
+
in_lata: in_lata,
|
65
79
|
limit: limit,
|
66
80
|
page_size: page_size
|
67
81
|
).entries
|
@@ -82,6 +96,13 @@ module Twilio
|
|
82
96
|
# @param [Boolean] exclude_foreign_address_required The
|
83
97
|
# exclude_foreign_address_required
|
84
98
|
# @param [Boolean] beta The beta
|
99
|
+
# @param [String] near_number The near_number
|
100
|
+
# @param [String] near_lat_long The near_lat_long
|
101
|
+
# @param [String] distance The distance
|
102
|
+
# @param [String] in_postal_code The in_postal_code
|
103
|
+
# @param [String] in_region The in_region
|
104
|
+
# @param [String] in_rate_center The in_rate_center
|
105
|
+
# @param [String] in_lata The in_lata
|
85
106
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
86
107
|
# guarantees to never return more than limit. Default is no limit
|
87
108
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -89,7 +110,7 @@ module Twilio
|
|
89
110
|
# but a limit is defined, stream() will attempt to read the
|
90
111
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
91
112
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
92
|
-
def stream(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, limit: nil, page_size: nil)
|
113
|
+
def stream(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, limit: nil, page_size: nil)
|
93
114
|
limits = @version.read_limits(limit, page_size)
|
94
115
|
|
95
116
|
page = self.page(
|
@@ -102,6 +123,13 @@ module Twilio
|
|
102
123
|
exclude_local_address_required: exclude_local_address_required,
|
103
124
|
exclude_foreign_address_required: exclude_foreign_address_required,
|
104
125
|
beta: beta,
|
126
|
+
near_number: near_number,
|
127
|
+
near_lat_long: near_lat_long,
|
128
|
+
distance: distance,
|
129
|
+
in_postal_code: in_postal_code,
|
130
|
+
in_region: in_region,
|
131
|
+
in_rate_center: in_rate_center,
|
132
|
+
in_lata: in_lata,
|
105
133
|
page_size: limits['page_size'],
|
106
134
|
)
|
107
135
|
|
@@ -123,6 +151,13 @@ module Twilio
|
|
123
151
|
# @param [Boolean] exclude_foreign_address_required The
|
124
152
|
# exclude_foreign_address_required
|
125
153
|
# @param [Boolean] beta The beta
|
154
|
+
# @param [String] near_number The near_number
|
155
|
+
# @param [String] near_lat_long The near_lat_long
|
156
|
+
# @param [String] distance The distance
|
157
|
+
# @param [String] in_postal_code The in_postal_code
|
158
|
+
# @param [String] in_region The in_region
|
159
|
+
# @param [String] in_rate_center The in_rate_center
|
160
|
+
# @param [String] in_lata The in_lata
|
126
161
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
127
162
|
# guarantees to never return more than limit. Default is no limit
|
128
163
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -155,11 +190,18 @@ module Twilio
|
|
155
190
|
# @param [Boolean] exclude_foreign_address_required The
|
156
191
|
# exclude_foreign_address_required
|
157
192
|
# @param [Boolean] beta The beta
|
193
|
+
# @param [String] near_number The near_number
|
194
|
+
# @param [String] near_lat_long The near_lat_long
|
195
|
+
# @param [String] distance The distance
|
196
|
+
# @param [String] in_postal_code The in_postal_code
|
197
|
+
# @param [String] in_region The in_region
|
198
|
+
# @param [String] in_rate_center The in_rate_center
|
199
|
+
# @param [String] in_lata The in_lata
|
158
200
|
# @param [String] page_token PageToken provided by the API
|
159
201
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
160
202
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
161
203
|
# @return [Page] Page of LocalInstance
|
162
|
-
def page(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, page_token: nil, page_number: nil, page_size: nil)
|
204
|
+
def page(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, page_token: nil, page_number: nil, page_size: nil)
|
163
205
|
params = {
|
164
206
|
'AreaCode' => area_code,
|
165
207
|
'Contains' => contains,
|
@@ -170,6 +212,13 @@ module Twilio
|
|
170
212
|
'ExcludeLocalAddressRequired' => exclude_local_address_required,
|
171
213
|
'ExcludeForeignAddressRequired' => exclude_foreign_address_required,
|
172
214
|
'Beta' => beta,
|
215
|
+
'NearNumber' => near_number,
|
216
|
+
'NearLatLong' => near_lat_long,
|
217
|
+
'Distance' => distance,
|
218
|
+
'InPostalCode' => in_postal_code,
|
219
|
+
'InRegion' => in_region,
|
220
|
+
'InRateCenter' => in_rate_center,
|
221
|
+
'InLata' => in_lata,
|
173
222
|
'PageToken' => page_token,
|
174
223
|
'Page' => page_number,
|
175
224
|
'PageSize' => page_size,
|
@@ -44,6 +44,13 @@ module Twilio
|
|
44
44
|
# @param [Boolean] exclude_foreign_address_required The
|
45
45
|
# exclude_foreign_address_required
|
46
46
|
# @param [Boolean] beta The beta
|
47
|
+
# @param [String] near_number The near_number
|
48
|
+
# @param [String] near_lat_long The near_lat_long
|
49
|
+
# @param [String] distance The distance
|
50
|
+
# @param [String] in_postal_code The in_postal_code
|
51
|
+
# @param [String] in_region The in_region
|
52
|
+
# @param [String] in_rate_center The in_rate_center
|
53
|
+
# @param [String] in_lata The in_lata
|
47
54
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
48
55
|
# guarantees to never return more than limit. Default is no limit
|
49
56
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -51,7 +58,7 @@ module Twilio
|
|
51
58
|
# but a limit is defined, stream() will attempt to read the
|
52
59
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
53
60
|
# @return [Array] Array of up to limit results
|
54
|
-
def list(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, limit: nil, page_size: nil)
|
61
|
+
def list(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, limit: nil, page_size: nil)
|
55
62
|
self.stream(
|
56
63
|
area_code: area_code,
|
57
64
|
contains: contains,
|
@@ -62,6 +69,13 @@ module Twilio
|
|
62
69
|
exclude_local_address_required: exclude_local_address_required,
|
63
70
|
exclude_foreign_address_required: exclude_foreign_address_required,
|
64
71
|
beta: beta,
|
72
|
+
near_number: near_number,
|
73
|
+
near_lat_long: near_lat_long,
|
74
|
+
distance: distance,
|
75
|
+
in_postal_code: in_postal_code,
|
76
|
+
in_region: in_region,
|
77
|
+
in_rate_center: in_rate_center,
|
78
|
+
in_lata: in_lata,
|
65
79
|
limit: limit,
|
66
80
|
page_size: page_size
|
67
81
|
).entries
|
@@ -82,6 +96,13 @@ module Twilio
|
|
82
96
|
# @param [Boolean] exclude_foreign_address_required The
|
83
97
|
# exclude_foreign_address_required
|
84
98
|
# @param [Boolean] beta The beta
|
99
|
+
# @param [String] near_number The near_number
|
100
|
+
# @param [String] near_lat_long The near_lat_long
|
101
|
+
# @param [String] distance The distance
|
102
|
+
# @param [String] in_postal_code The in_postal_code
|
103
|
+
# @param [String] in_region The in_region
|
104
|
+
# @param [String] in_rate_center The in_rate_center
|
105
|
+
# @param [String] in_lata The in_lata
|
85
106
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
86
107
|
# guarantees to never return more than limit. Default is no limit
|
87
108
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -89,7 +110,7 @@ module Twilio
|
|
89
110
|
# but a limit is defined, stream() will attempt to read the
|
90
111
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
91
112
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
92
|
-
def stream(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, limit: nil, page_size: nil)
|
113
|
+
def stream(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, limit: nil, page_size: nil)
|
93
114
|
limits = @version.read_limits(limit, page_size)
|
94
115
|
|
95
116
|
page = self.page(
|
@@ -102,6 +123,13 @@ module Twilio
|
|
102
123
|
exclude_local_address_required: exclude_local_address_required,
|
103
124
|
exclude_foreign_address_required: exclude_foreign_address_required,
|
104
125
|
beta: beta,
|
126
|
+
near_number: near_number,
|
127
|
+
near_lat_long: near_lat_long,
|
128
|
+
distance: distance,
|
129
|
+
in_postal_code: in_postal_code,
|
130
|
+
in_region: in_region,
|
131
|
+
in_rate_center: in_rate_center,
|
132
|
+
in_lata: in_lata,
|
105
133
|
page_size: limits['page_size'],
|
106
134
|
)
|
107
135
|
|
@@ -123,6 +151,13 @@ module Twilio
|
|
123
151
|
# @param [Boolean] exclude_foreign_address_required The
|
124
152
|
# exclude_foreign_address_required
|
125
153
|
# @param [Boolean] beta The beta
|
154
|
+
# @param [String] near_number The near_number
|
155
|
+
# @param [String] near_lat_long The near_lat_long
|
156
|
+
# @param [String] distance The distance
|
157
|
+
# @param [String] in_postal_code The in_postal_code
|
158
|
+
# @param [String] in_region The in_region
|
159
|
+
# @param [String] in_rate_center The in_rate_center
|
160
|
+
# @param [String] in_lata The in_lata
|
126
161
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
127
162
|
# guarantees to never return more than limit. Default is no limit
|
128
163
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -155,11 +190,18 @@ module Twilio
|
|
155
190
|
# @param [Boolean] exclude_foreign_address_required The
|
156
191
|
# exclude_foreign_address_required
|
157
192
|
# @param [Boolean] beta The beta
|
193
|
+
# @param [String] near_number The near_number
|
194
|
+
# @param [String] near_lat_long The near_lat_long
|
195
|
+
# @param [String] distance The distance
|
196
|
+
# @param [String] in_postal_code The in_postal_code
|
197
|
+
# @param [String] in_region The in_region
|
198
|
+
# @param [String] in_rate_center The in_rate_center
|
199
|
+
# @param [String] in_lata The in_lata
|
158
200
|
# @param [String] page_token PageToken provided by the API
|
159
201
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
160
202
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
161
203
|
# @return [Page] Page of MobileInstance
|
162
|
-
def page(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, page_token: nil, page_number: nil, page_size: nil)
|
204
|
+
def page(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, page_token: nil, page_number: nil, page_size: nil)
|
163
205
|
params = {
|
164
206
|
'AreaCode' => area_code,
|
165
207
|
'Contains' => contains,
|
@@ -170,6 +212,13 @@ module Twilio
|
|
170
212
|
'ExcludeLocalAddressRequired' => exclude_local_address_required,
|
171
213
|
'ExcludeForeignAddressRequired' => exclude_foreign_address_required,
|
172
214
|
'Beta' => beta,
|
215
|
+
'NearNumber' => near_number,
|
216
|
+
'NearLatLong' => near_lat_long,
|
217
|
+
'Distance' => distance,
|
218
|
+
'InPostalCode' => in_postal_code,
|
219
|
+
'InRegion' => in_region,
|
220
|
+
'InRateCenter' => in_rate_center,
|
221
|
+
'InLata' => in_lata,
|
173
222
|
'PageToken' => page_token,
|
174
223
|
'Page' => page_number,
|
175
224
|
'PageSize' => page_size,
|
@@ -44,6 +44,13 @@ module Twilio
|
|
44
44
|
# @param [Boolean] exclude_foreign_address_required The
|
45
45
|
# exclude_foreign_address_required
|
46
46
|
# @param [Boolean] beta The beta
|
47
|
+
# @param [String] near_number The near_number
|
48
|
+
# @param [String] near_lat_long The near_lat_long
|
49
|
+
# @param [String] distance The distance
|
50
|
+
# @param [String] in_postal_code The in_postal_code
|
51
|
+
# @param [String] in_region The in_region
|
52
|
+
# @param [String] in_rate_center The in_rate_center
|
53
|
+
# @param [String] in_lata The in_lata
|
47
54
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
48
55
|
# guarantees to never return more than limit. Default is no limit
|
49
56
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -51,7 +58,7 @@ module Twilio
|
|
51
58
|
# but a limit is defined, stream() will attempt to read the
|
52
59
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
53
60
|
# @return [Array] Array of up to limit results
|
54
|
-
def list(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, limit: nil, page_size: nil)
|
61
|
+
def list(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, limit: nil, page_size: nil)
|
55
62
|
self.stream(
|
56
63
|
area_code: area_code,
|
57
64
|
contains: contains,
|
@@ -62,6 +69,13 @@ module Twilio
|
|
62
69
|
exclude_local_address_required: exclude_local_address_required,
|
63
70
|
exclude_foreign_address_required: exclude_foreign_address_required,
|
64
71
|
beta: beta,
|
72
|
+
near_number: near_number,
|
73
|
+
near_lat_long: near_lat_long,
|
74
|
+
distance: distance,
|
75
|
+
in_postal_code: in_postal_code,
|
76
|
+
in_region: in_region,
|
77
|
+
in_rate_center: in_rate_center,
|
78
|
+
in_lata: in_lata,
|
65
79
|
limit: limit,
|
66
80
|
page_size: page_size
|
67
81
|
).entries
|
@@ -82,6 +96,13 @@ module Twilio
|
|
82
96
|
# @param [Boolean] exclude_foreign_address_required The
|
83
97
|
# exclude_foreign_address_required
|
84
98
|
# @param [Boolean] beta The beta
|
99
|
+
# @param [String] near_number The near_number
|
100
|
+
# @param [String] near_lat_long The near_lat_long
|
101
|
+
# @param [String] distance The distance
|
102
|
+
# @param [String] in_postal_code The in_postal_code
|
103
|
+
# @param [String] in_region The in_region
|
104
|
+
# @param [String] in_rate_center The in_rate_center
|
105
|
+
# @param [String] in_lata The in_lata
|
85
106
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
86
107
|
# guarantees to never return more than limit. Default is no limit
|
87
108
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -89,7 +110,7 @@ module Twilio
|
|
89
110
|
# but a limit is defined, stream() will attempt to read the
|
90
111
|
# limit with the most efficient page size, i.e. min(limit, 1000)
|
91
112
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
92
|
-
def stream(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, limit: nil, page_size: nil)
|
113
|
+
def stream(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, limit: nil, page_size: nil)
|
93
114
|
limits = @version.read_limits(limit, page_size)
|
94
115
|
|
95
116
|
page = self.page(
|
@@ -102,6 +123,13 @@ module Twilio
|
|
102
123
|
exclude_local_address_required: exclude_local_address_required,
|
103
124
|
exclude_foreign_address_required: exclude_foreign_address_required,
|
104
125
|
beta: beta,
|
126
|
+
near_number: near_number,
|
127
|
+
near_lat_long: near_lat_long,
|
128
|
+
distance: distance,
|
129
|
+
in_postal_code: in_postal_code,
|
130
|
+
in_region: in_region,
|
131
|
+
in_rate_center: in_rate_center,
|
132
|
+
in_lata: in_lata,
|
105
133
|
page_size: limits['page_size'],
|
106
134
|
)
|
107
135
|
|
@@ -123,6 +151,13 @@ module Twilio
|
|
123
151
|
# @param [Boolean] exclude_foreign_address_required The
|
124
152
|
# exclude_foreign_address_required
|
125
153
|
# @param [Boolean] beta The beta
|
154
|
+
# @param [String] near_number The near_number
|
155
|
+
# @param [String] near_lat_long The near_lat_long
|
156
|
+
# @param [String] distance The distance
|
157
|
+
# @param [String] in_postal_code The in_postal_code
|
158
|
+
# @param [String] in_region The in_region
|
159
|
+
# @param [String] in_rate_center The in_rate_center
|
160
|
+
# @param [String] in_lata The in_lata
|
126
161
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
127
162
|
# guarantees to never return more than limit. Default is no limit
|
128
163
|
# @param [Integer] page_size Number of records to fetch per request, when not set will use
|
@@ -155,11 +190,18 @@ module Twilio
|
|
155
190
|
# @param [Boolean] exclude_foreign_address_required The
|
156
191
|
# exclude_foreign_address_required
|
157
192
|
# @param [Boolean] beta The beta
|
193
|
+
# @param [String] near_number The near_number
|
194
|
+
# @param [String] near_lat_long The near_lat_long
|
195
|
+
# @param [String] distance The distance
|
196
|
+
# @param [String] in_postal_code The in_postal_code
|
197
|
+
# @param [String] in_region The in_region
|
198
|
+
# @param [String] in_rate_center The in_rate_center
|
199
|
+
# @param [String] in_lata The in_lata
|
158
200
|
# @param [String] page_token PageToken provided by the API
|
159
201
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
160
202
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
161
203
|
# @return [Page] Page of TollFreeInstance
|
162
|
-
def page(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, page_token: nil, page_number: nil, page_size: nil)
|
204
|
+
def page(area_code: nil, contains: nil, sms_enabled: nil, mms_enabled: nil, voice_enabled: nil, exclude_all_address_required: nil, exclude_local_address_required: nil, exclude_foreign_address_required: nil, beta: nil, near_number: nil, near_lat_long: nil, distance: nil, in_postal_code: nil, in_region: nil, in_rate_center: nil, in_lata: nil, page_token: nil, page_number: nil, page_size: nil)
|
163
205
|
params = {
|
164
206
|
'AreaCode' => area_code,
|
165
207
|
'Contains' => contains,
|
@@ -170,6 +212,13 @@ module Twilio
|
|
170
212
|
'ExcludeLocalAddressRequired' => exclude_local_address_required,
|
171
213
|
'ExcludeForeignAddressRequired' => exclude_foreign_address_required,
|
172
214
|
'Beta' => beta,
|
215
|
+
'NearNumber' => near_number,
|
216
|
+
'NearLatLong' => near_lat_long,
|
217
|
+
'Distance' => distance,
|
218
|
+
'InPostalCode' => in_postal_code,
|
219
|
+
'InRegion' => in_region,
|
220
|
+
'InRateCenter' => in_rate_center,
|
221
|
+
'InLata' => in_lata,
|
173
222
|
'PageToken' => page_token,
|
174
223
|
'Page' => page_number,
|
175
224
|
'PageSize' => page_size,
|