Sha256: fd805b159e680a6302e352ebf0b3aa67426c77362a0207bc6c01d2405b4efe41
Contents?: true
Size: 699 Bytes
Versions: 9
Compression:
Stored size: 699 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) Twilio.post("/IncomingPhoneNumbers/Local", :body => { :Url => url, :AreaCode => area_code, :Method => method, :FriendlyName => friendly_name }) end def list Twilio.get("/IncomingPhoneNumbers/Local") end end end
Version data entries
9 entries across 9 versions & 3 rubygems