Sha256: a6e85c92c818e9a90010ecf65085350db401a34fe03622cf62018c25fb672365
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
module Twilio # An OutgoingCallerId resource represents an outgoing Caller ID that you have # registered with Twilio for use when making an outgoing call or using the Dial Verb. # Example: # Twilio.connect('my_twilio_sid', 'my_auth_token') # Twilio::OutgoingCallerId.list class OutgoingCallerId < TwilioObject def create(phone_number, friendly_name = phone_number, call_delay = 0, extension = nil) Twilio.post("/OutgoingCallerIds", :body => { :PhoneNumber => phone_number, :FriendlyName => friendly_name, :CallDelay => call_delay, :Extension => extension }) end def list(opts = {}) Twilio.get("/OutgoingCallerIds", :query => (opts.empty? ? nil : opts)) end def get(callerid_sid) Twilio.get("/OutgoingCallerIds/#{callerid_sid}") end def update_name(callerid_sid, name) Twilio.put("/OutgoingCallerIds/#{callerid_sid}", :body => {:FriendlyName => name}) end def delete(callerid_sid) Twilio.delete("/OutgoingCallerIds/#{callerid_sid}") end end end
Version data entries
5 entries across 5 versions & 2 rubygems