Sha256: 84cf5730ad9edbfe70a426695657d44bdc30eb1278637146dab2c35ec8c6bcd1
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 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 => { :Url => url, :AreaCode => area_code, :Method => 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.8.0 | lib/twilio/local_phone_number.rb |