Sha256: 8f4b79aae6906dccfa84c3b9a4dafb4fdf072151e22b914246d2d6b26bb499f6
Contents?: true
Size: 833 Bytes
Versions: 2
Compression:
Stored size: 833 Bytes
Contents
module Twilio 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webficient-twilio-1.0.0 | lib/twilio/outgoing_caller_id.rb |
webficient-twilio-1.2.0 | lib/twilio/outgoing_caller_id.rb |