Class: Vonage::Conversations::Events
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Conversations::Events
- Defined in:
- lib/vonage/conversations/events.rb
Instance Method Summary collapse
-
#create(conversation_id, params) ⇒ Response
Create an event.
-
#delete(conversation_id, event_id) ⇒ Response
Delete an event.
-
#get(conversation_id, event_id) ⇒ Response
Retrieve an event.
-
#list(conversation_id, params = nil, auto_advance = true) ⇒ Response
List events.
Instance Method Details
#create(conversation_id, params) ⇒ Response
Create an event.
31 32 33 |
# File 'lib/vonage/conversations/events.rb', line 31 def create(conversation_id, params) request('/beta/conversations/' + conversation_id + '/events', params: params, type: Post) end |
#delete(conversation_id, event_id) ⇒ Response
Delete an event.
73 74 75 |
# File 'lib/vonage/conversations/events.rb', line 73 def delete(conversation_id, event_id) request('/beta/conversations/' + conversation_id + '/events/' + event_id.to_s, type: Delete) end |
#get(conversation_id, event_id) ⇒ Response
Retrieve an event.
60 61 62 |
# File 'lib/vonage/conversations/events.rb', line 60 def get(conversation_id, event_id) request('/beta/conversations/' + conversation_id + '/events/' + event_id.to_s) end |
#list(conversation_id, params = nil, auto_advance = true) ⇒ Response
List events.
47 48 49 |
# File 'lib/vonage/conversations/events.rb', line 47 def list(conversation_id, params = nil, auto_advance = true) request('/beta/conversations/' + conversation_id + '/events', params: params) end |