Sha256: c05792162be4ec750b81c9ae92fa96facfcaba53042da744f87b223731acb19a
Contents?: true
Size: 1.01 KB
Versions: 11
Compression:
Stored size: 1.01 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) Twilio.post("/OutgoingCallerIds", :body => { :PhoneNumber => phone_number, :FriendlyName => friendly_name, :CallDelay => call_delay }) end def list(optional = {}) Twilio.get("/OutgoingCallerIds", :query => optional) 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
11 entries across 11 versions & 3 rubygems