Sha256: 1d64d01c02aa7c03dbdd3a9cb7f30c1fc322ea01cece0e293665e8ea0c313158

Contents?: true

Size: 576 Bytes

Versions: 11

Compression:

Stored size: 576 Bytes

Contents

module Twilio
  # A Notification represenents a log entry made by Twilio in the course of handling 
  # your calls or using the REST API.
  # Example:
  #   Twilio.connect('my_twilio_sid', 'my_auth_token')
  #   Twilio::Notification.list
  class Notification < TwilioObject
    def list(optional = {})
      Twilio.get('/Notifications', :query => optional)
    end
    
    def get(notification_sid)
      Twilio.get("/Notifications/#{notification_sid}")
    end
    
    def delete(notification_sid)
      Twilio.delete("/Notifications/#{notification_sid}")
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
dancroak-twilio-2.3.1 lib/twilio/notification.rb
webficient-twilio-2.3.0 lib/twilio/notification.rb
webficient-twilio-2.4.0 lib/twilio/notification.rb
twilio-2.9.0 lib/twilio/notification.rb
twilio-2.8.0 lib/twilio/notification.rb
twilio-2.7.0 lib/twilio/notification.rb
twilio-2.6.0 lib/twilio/notification.rb
twilio-2.5.0 lib/twilio/notification.rb
twilio-2.4.1 lib/twilio/notification.rb
twilio-2.4.0 lib/twilio/notification.rb
twilio-2.3.0 lib/twilio/notification.rb