Class: Vonage::ProactiveConnect::Item
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::ProactiveConnect::Item
- Extended by:
- T::Sig
- Defined in:
- lib/vonage/proactive_connect/item.rb
Instance Method Summary collapse
- #create(list_id:, data:) ⇒ Object deprecated Deprecated.
- #delete(list_id:, item_id:) ⇒ Object deprecated Deprecated.
- #find(list_id:, item_id:) ⇒ Object deprecated Deprecated.
- #update(list_id:, item_id:, data:) ⇒ Object deprecated Deprecated.
Instance Method Details
#create(list_id:, data:) ⇒ Object
Deprecated.
Create a list item
29 30 31 32 33 34 35 36 37 |
# File 'lib/vonage/proactive_connect/item.rb', line 29 def create(list_id:, data:) logger.info('This method is deprecated and will be removed in a future release.') raise ArgumentError.new(":data must be a Hash") unless data.is_a? Hash request( "/v0.1/bulk/lists/#{list_id}/items", params: { data: data }, type: Post ) end |
#delete(list_id:, item_id:) ⇒ Object
Deprecated.
Delete list item
108 109 110 111 112 113 114 |
# File 'lib/vonage/proactive_connect/item.rb', line 108 def delete(list_id:, item_id:) logger.info('This method is deprecated and will be removed in a future release.') request( "/v0.1/bulk/lists/#{list_id}/items/#{item_id}", type: Delete ) end |
#find(list_id:, item_id:) ⇒ Object
Deprecated.
Get list item by id
54 55 56 57 |
# File 'lib/vonage/proactive_connect/item.rb', line 54 def find(list_id:, item_id:) logger.info('This method is deprecated and will be removed in a future release.') request("/v0.1/bulk/lists/#{list_id}/items/#{item_id}") end |
#update(list_id:, item_id:, data:) ⇒ Object
Deprecated.
Update list item
83 84 85 86 87 88 89 90 91 |
# File 'lib/vonage/proactive_connect/item.rb', line 83 def update(list_id:, item_id:, data:) logger.info('This method is deprecated and will be removed in a future release.') raise ArgumentError.new(":data must be a Hash") unless data.is_a? Hash request( "/v0.1/bulk/lists/#{list_id}/items/#{item_id}", params: { data: data }, type: Put ) end |