Module: BWAPI::Client::Brandwatch::Clients
- Included in:
- BWAPI::Client::Brandwatch
- Defined in:
- lib/bwapi/client/brandwatch/clients.rb,
lib/bwapi/client/brandwatch/clients/users.rb,
lib/bwapi/client/brandwatch/clients/modules.rb
Overview
Clients module for brandwatch/clients endpoints
Defined Under Namespace
Instance Method Summary collapse
-
#brandwatch_clients(opts = {}) ⇒ Hash
Get specific clients.
-
#brandwatch_create_client(opts = {}) ⇒ Hash
Create a new parent client.
-
#brandwatch_get_client(client_id) ⇒ Hash
Get specific client.
-
#brandwatch_update_client(client_id, opts = {}) ⇒ Hash
Update an existing parent client.
Methods included from Modules
#brandwatch_client_modules, #update_brandwatch_client_modules
Methods included from Users
#brandwatch_create_client_user
Instance Method Details
#brandwatch_clients(opts = {}) ⇒ Hash
Note:
must be a super admin user
Get specific clients
16 17 18 |
# File 'lib/bwapi/client/brandwatch/clients.rb', line 16 def brandwatch_clients(opts = {}) get 'brandwatch/clients', opts end |
#brandwatch_create_client(opts = {}) ⇒ Hash
Note:
must be a super admin user
Create a new parent client
53 54 55 |
# File 'lib/bwapi/client/brandwatch/clients.rb', line 53 def brandwatch_create_client(opts = {}) post 'brandwatch/clients', opts end |
#brandwatch_get_client(client_id) ⇒ Hash
Note:
must be a super admin user
Get specific client
63 64 65 |
# File 'lib/bwapi/client/brandwatch/clients.rb', line 63 def brandwatch_get_client(client_id) get "brandwatch/clients/#{client_id}" end |
#brandwatch_update_client(client_id, opts = {}) ⇒ Hash
Note:
must be a super admin user
Update an existing parent client
101 102 103 |
# File 'lib/bwapi/client/brandwatch/clients.rb', line 101 def brandwatch_update_client(client_id, opts = {}) put "brandwatch/clients/#{client_id}", opts end |