Module: BWAPI::Client::Brandwatch::Clients::Modules

Included in:
BWAPI::Client::Brandwatch::Clients
Defined in:
lib/bwapi/client/brandwatch/clients/modules.rb

Overview

Clientmodules module for brandwatch/client/modules endpoints

Instance Method Summary collapse

Instance Method Details

#brandwatch_client_modules(client_id) ⇒ Hash

Get a specific clients modules

Parameters:

  • client_id (Integer)

    Id of the client

Returns:

  • (Hash)

    Specific clients modules



11
12
13
# File 'lib/bwapi/client/brandwatch/clients/modules.rb', line 11

def brandwatch_client_modules(client_id)
  get "brandwatch/clients/#{client_id}/modules"
end

#update_brandwatch_client_modules(client_id, opts = {}) ⇒ Hash

Update brandwatch client modules

Parameters:

  • client_id (Integer)

    Id of the client

  • opts (Hash) (defaults to: {})

    options Hash of parameters

  • opts (Integer) (defaults to: {})

    client_id Id of the client

Options Hash (opts):

  • modules (Array)

    Client Modules to update

Returns:

  • (Hash)

    Updated client modules



22
23
24
# File 'lib/bwapi/client/brandwatch/clients/modules.rb', line 22

def update_brandwatch_client_modules(client_id, opts = {})
  put "brandwatch/clients/#{client_id}/modules", opts
end