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

Version Path
webficient-twilio-1.3.0 lib/twilio/toll_free_phone_number.rb
webficient-twilio-1.4.0 lib/twilio/toll_free_phone_number.rb
webficient-twilio-2.0.0 lib/twilio/toll_free_phone_number.rb
webficient-twilio-2.1.0 lib/twilio/toll_free_phone_number.rb
webficient-twilio-2.2.0 lib/twilio/toll_free_phone_number.rb
twilio-1.4.0 lib/twilio/toll_free_phone_number.rb