Sha256: b13f0e8f452cdb7cd41f6f27048cfd91699e405964aedd20be047924f8e3cc6a
Contents?: true
Size: 1003 Bytes
Versions: 6
Compression:
Stored size: 1003 Bytes
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. class OutgoingCallerId < TwilioObject def create(phone_number, friendly_name = phone_number, call_delay = 0) self.connection.class.post("/OutgoingCallerIds", :body => { :PhoneNumber => phone_number, :FriendlyName => friendly_name, :CallDelay => call_delay }) end def list(optional = {}) self.connection.class.get("/OutgoingCallerIds", :query => optional) end def get(callerid_sid) self.connection.class.get("/OutgoingCallerIds/#{callerid_sid}") end def update_name(callerid_sid, name) self.connection.class.put("/OutgoingCallerIds/#{callerid_sid}", :body => {:FriendlyName => name}) end def delete(callerid_sid) self.connection.class.delete("/OutgoingCallerIds/#{callerid_sid}") end end end
Version data entries
6 entries across 6 versions & 2 rubygems