We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df2b9fd commit ff71332Copy full SHA for ff71332
1 file changed
lib/twilio-ruby/rest/lookups/phone_numbers.rb
@@ -6,7 +6,7 @@ class PhoneNumbers < Twilio::REST::NextGenListResource;
6
include Twilio::REST::Utils
7
8
def get(number, query={})
9
- full_path = "#{@path}/#{number}"
+ full_path = "#{@path}/#{URI.encode(number)}"
10
full_path << "?#{url_encode(twilify(query))}" if !query.empty?
11
@instance_class.new full_path, @client
12
end
0 commit comments