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

Instance Method Details

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

Create a new client user

Parameters:

  • client_id (Integer) —

    Id of the client

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

    options Hash of parameters

Options Hash (opts):

  • address (String) —

    The users address

  • apiRole (Array) —

    The users api role

  • ccAccess (String) —

    The user Vizia access level

  • clientId (Integer) —

    The users client id

  • creationDate (Date) —

    Date the user was created on

  • department (String) —

    The users department

  • enabled (Boolean) —

    The status of the user

  • externalId (String) —

    The Users external Id

  • firstName (String) —

    The users first name

  • id (Integer) —

    Id of the user

  • job (String) —

    The users job

  • lastName (String) —

    The last name of the user

  • messenger (String) —

    The users IM details

  • mobile (String) —

    The users mobile number

  • oldPassword (String) —

    The old password of the user

  • password (String) —

    The password of the user

  • passwordConfirmation (String) —

    The confirmed password

  • phone (String) —

    The users phone number

  • tags (Hash) —

    The users assigned tags

  • uiRole (String) —

    The users ui role

  • username (String) —

    The users username

Returns:

  • (Hash) —

    New user



33
34
35
# File 'lib/bwapi/client/brandwatch/clients/users.rb', line 33

def brandwatch_create_client_user(client_id, opts = {})
  post "brandwatch/clients/#{client_id}/users", opts
end