Module: BWAPI::Client::Brandwatch::Clients::Users
- Included in:
- BWAPI::Client::Brandwatch::Clients
- Defined in:
- lib/bwapi/client/brandwatch/clients/users.rb
Overview
Users module for brandwatch/users endpoints
Instance Method Summary collapse
-
#brandwatch_create_client_user(client_id, opts = {}) ⇒ Hash
Create a new client user.
-
#brandwatch_get_client_user(client_id, user_id, opts = {}) ⇒ Object
Get a user in a client.
-
#brandwatch_get_client_users(client_id, opts = {}) ⇒ Object
List all users in a client.
-
#brandwatch_update_client_user(client_id, user_id, opts = {}) ⇒ Object
Update a user in a client.
Instance Method Details
#brandwatch_create_client_user(client_id, opts = {}) ⇒ Hash
Create a new client user
40 41 42 |
# File 'lib/bwapi/client/brandwatch/clients/users.rb', line 40 def brandwatch_create_client_user(client_id, opts = {}) post "brandwatch/clients/#{client_id}/users", opts end |
#brandwatch_get_client_user(client_id, user_id, opts = {}) ⇒ Object
Get a user in a client
TODO: Add parameters documentation
47 48 49 |
# File 'lib/bwapi/client/brandwatch/clients/users.rb', line 47 def brandwatch_get_client_user(client_id, user_id, opts = {}) get "brandwatch/clients/#{client_id}/users/#{user_id}", opts end |
#brandwatch_get_client_users(client_id, opts = {}) ⇒ Object
List all users in a client
TODO: Add parameters documentation
10 11 12 |
# File 'lib/bwapi/client/brandwatch/clients/users.rb', line 10 def brandwatch_get_client_users(client_id, opts = {}) get "brandwatch/clients/#{client_id}/users", opts end |
#brandwatch_update_client_user(client_id, user_id, opts = {}) ⇒ Object
Update a user in a client
TODO: Add parameters documentation
54 55 56 |
# File 'lib/bwapi/client/brandwatch/clients/users.rb', line 54 def brandwatch_update_client_user(client_id, user_id, opts = {}) put "brandwatch/clients/#{client_id}/users/#{user_id}", opts end |