Sha256: 54d28c3610bd86d63aa17cf10ec398b6524de30cef163ad7ae35243929ffc12d
Contents?: true
Size: 850 Bytes
Versions: 1
Compression:
Stored size: 850 Bytes
Contents
module Twilio # This sub-resource represents only Local phone numbers, or in other words, not toll-free numbers. # Also allows you to request a new local phone number be added to your account. # Example: # Twilio.connect('my_twilio_sid', 'my_auth_token') # Twilio::LocalPhoneNumber.list class LocalPhoneNumber < TwilioObject def create(url, area_code = nil, method = 'POST', friendly_name = nil, options = {}) Twilio.post("/IncomingPhoneNumbers/Local", :body => { :VoiceUrl => url, :AreaCode => area_code, :VoiceMethod => method, :FriendlyName => friendly_name }.merge(options)) end def list Twilio.get("/IncomingPhoneNumbers/Local") end def delete(phone_number_sid) Twilio.delete("/IncomingPhoneNumbers/#{phone_number_sid}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twilio-2.9.0 | lib/twilio/local_phone_number.rb |