Class: Vonage::Conversations::Users
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Conversations::Users
- Defined in:
- lib/vonage/conversations/users.rb
Instance Method Summary collapse
-
#create(params) ⇒ Response
deprecated
Deprecated.
Please use Users#create instead
-
#delete(id) ⇒ Response
deprecated
Deprecated.
Please use Users#delete instead
-
#get(id) ⇒ Response
deprecated
Deprecated.
Please use Users#find instead
-
#list(params = nil, auto_advance = true) ⇒ Response
deprecated
Deprecated.
Please use Users#list instead
-
#update(id, params) ⇒ Response
deprecated
Deprecated.
Please use Users#update instead
Instance Method Details
#create(params) ⇒ Response
Deprecated.
Please use Users#create instead
Create a user.
30 31 32 33 |
# File 'lib/vonage/conversations/users.rb', line 30 def create(params) logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Users#create` instead.') request('/beta/users', params: params, type: Post) end |
#delete(id) ⇒ Response
Deprecated.
Please use Users#delete instead
Delete a user.
107 108 109 110 |
# File 'lib/vonage/conversations/users.rb', line 107 def delete(id) logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Users#delete` instead.') request('/beta/users/' + id, type: Delete) end |
#get(id) ⇒ Response
Deprecated.
Please use Users#find instead
Retrieve a user.
62 63 64 65 |
# File 'lib/vonage/conversations/users.rb', line 62 def get(id) logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Users#find` instead.') request('/beta/users/' + id) end |
#list(params = nil, auto_advance = true) ⇒ Response
Deprecated.
Please use Users#list instead
List users.
47 48 49 50 |
# File 'lib/vonage/conversations/users.rb', line 47 def list(params = nil, auto_advance = true) logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Users#list` instead.') request('/beta/users', params: params) end |
#update(id, params) ⇒ Response
Deprecated.
Please use Users#update instead
Update a user.
92 93 94 95 |
# File 'lib/vonage/conversations/users.rb', line 92 def update(id, params) logger.info('This method is deprecated and will be removed in a future release. Please use `Vonage::Users#update` instead.') request('/beta/users/' + id, params: params, type: Put) end |