Sha256: 16c5823c27ffbe067d66da88428c7bcfbb8fed72c49702dada7b78d9901e8d2e
Contents?: true
Size: 639 Bytes
Versions: 6
Compression:
Stored size: 639 Bytes
Contents
module Twilio # This sub-resource represents only Toll Free phone numbers, or in other words, not local numbers. # Also allows you to request a new toll free phone number be added to your account. class TollFreePhoneNumber < TwilioObject def create(url, area_code = nil, method = 'POST', friendly_name = nil) self.connection.class.post("/IncomingPhoneNumbers/TollFree", :body => { :Url => url, :AreaCode => area_code, :Method => method, :FriendlyName => friendly_name }) end def list self.connection.class.get("/IncomingPhoneNumbers/TollFree") end end end
Version data entries
6 entries across 6 versions & 2 rubygems