bwapi 10.0.0.pre.462 → 10.0.0.pre.465

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2MxM2RiMzM4NjBiODljMmQyNDc0NTUzNWFhMWYxODNmZjlhZWMxYQ==
4
+ NzA4YjlhYzRmNGNkZmY3MDJmZTEwOTZhNGU0YmJhZjViOWU4ZjU5ZQ==
5
5
  data.tar.gz: !binary |-
6
- NTNkOTg3ZTM2NGRjMGRmYTIwZTQxNjE5NDcwZmExYThlZWIxYjA4Ng==
6
+ ZGU0NTEwNTY4OTc5NzcxZDVlOGM5MDRjYTJlZGVhYmVlOWJkYTU4ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGVhOTg5N2VhNDg3ZTM4NjQ4Y2IzMzI3MzM1NTI4ZjQzOGIxNWQ2NzYxNDIx
10
- Mzc5NjM2MTcyZDhmMzE0N2JjY2QzMGQ0N2M2YjZkODM5Y2IyMTc4YTRmYjA0
11
- MWMzNDcyM2NkNGJiOGE5OTg0ZWMyZWY5NGI3YWE4M2MxMmY5NmU=
9
+ N2FlYTdlYzY5MzBlZTI2NDE3ZWIxNTFjZDE5Yzk0YjdhNTJhMzU4NmVmY2E0
10
+ NDRkZjlmYmQ4MjU1NmMzZDQxNWYyYzUxOTQ0NzIzMzZkZGQ0ZTU2OTIxODcz
11
+ ZWUzYWVlY2QzZTFmMzA5N2JiZGZiMDUyN2ZmOTZhNmFlMTUwOTE=
12
12
  data.tar.gz: !binary |-
13
- NzgzY2EzNTViMTNkYWE3NDg0Zjc5MjdhOGM3NGViZTNjY2RhMThjYTg3NDgw
14
- ZTE0OGZjYjViNzBjNWU5OWMwMjI2MGZkMGUxNTAxMDQ0ZTlmMGYxNjIxOTM0
15
- Y2IwYWM2ZGFkNzNmZDA3ZDE5ZmM4M2FiODY0MTU0YWM1NTg5MDM=
13
+ ZDJhNzExMjFmNzFkMjVkYzk5ZTNjYWU2ZjZiNzI3Y2NiOTJkMTE3NGEzNGQx
14
+ YTU1YjBhODNlYzdhYWI4M2I1ODMzYjdiMzE5YTZkOTk0ZTE0NTk1N2FiMjc1
15
+ NjIyOTFlNDAzY2M2MzY1MmFmZGU3MDIyZTAyODZhNWJkMjVkZDU=
@@ -1,3 +1,4 @@
1
+ require 'bwapi/client/brandwatch/clients/users'
1
2
  require 'bwapi/client/brandwatch/clients/modules'
2
3
 
3
4
  module BWAPI
@@ -7,15 +8,19 @@ module BWAPI
7
8
  module Clients
8
9
  # Get specific clients
9
10
  #
11
+ # @note must be a super admin user
12
+ #
10
13
  # @param opts [Hash] options Hash of parameters
11
14
  # @options opts [String] nameContains Client name search (case insensitive)
12
15
  # @return [Hash] List of filtered clients
13
- def clients(opts = {})
16
+ def brandwatch_clients(opts = {})
14
17
  get 'brandwatch/clients', opts
15
18
  end
16
19
 
17
20
  # Create a new parent client
18
21
  #
22
+ # @note must be a super admin user
23
+ #
19
24
  # @param opts [Hash] options Hash of parameters
20
25
  # @option opts [String] address1 Address line one of the client
21
26
  # @option opts [String] address2 Address line two of the client
@@ -45,20 +50,24 @@ module BWAPI
45
50
  # @option opts [String] theme The theme of the client
46
51
  # @option opts [String] website The website for the client
47
52
  # @return [Hash] Newly created parent client
48
- def create_client(opts = {})
53
+ def brandwatch_create_client(opts = {})
49
54
  post 'brandwatch/clients', opts
50
55
  end
51
56
 
52
57
  # Get specific client
53
58
  #
59
+ # @note must be a super admin user
60
+ #
54
61
  # @param client_id [Integer] Id of the client
55
62
  # @return [Hash] Specific client
56
- def get_client(client_id)
63
+ def brandwatch_get_client(client_id)
57
64
  get "brandwatch/clients/#{client_id}"
58
65
  end
59
66
 
60
67
  # Update an existing parent client
61
68
  #
69
+ # @note must be a super admin user
70
+ #
62
71
  # @param client_id [Integer] Id of the client
63
72
  # @param opts [Hash] options Hash of parameters
64
73
  # @option opts [String] address1 Address line one of the client
@@ -89,10 +98,11 @@ module BWAPI
89
98
  # @option opts [String] theme The theme of the client
90
99
  # @option opts [String] website The website for the client
91
100
  # @return [Hash] Updated parent client
92
- def update_client(client_id, opts = {})
101
+ def brandwatch_update_client(client_id, opts = {})
93
102
  put "brandwatch/clients/#{client_id}", opts
94
103
  end
95
104
 
105
+ include BWAPI::Client::Brandwatch::Clients::Users
96
106
  include BWAPI::Client::Brandwatch::Clients::Modules
97
107
  end
98
108
  end
@@ -0,0 +1,42 @@
1
+ module BWAPI
2
+ class Client
3
+ module Brandwatch
4
+ module Clients
5
+ # Users module for brandwatch/users endpoints
6
+ module Users
7
+ # Create a new client user
8
+ #
9
+ # @note must be a super admin user
10
+ #
11
+ # @param client_id [Integer] Id of the client
12
+ # @param opts [Hash] options Hash of parameters
13
+ # @option opts [String] address The users address
14
+ # @option opts [Array] apiRole The users api role
15
+ # @option opts [String] ccAccess The user Vizia access level
16
+ # @option opts [Integer] clientId The users client id
17
+ # @option opts [Date] creationDate Date the user was created on
18
+ # @option opts [String] department The users department
19
+ # @option opts [Boolean] enabled The status of the user
20
+ # @option opts [String] externalId The Users external Id
21
+ # @option opts [String] firstName The users first name
22
+ # @option opts [Integer] id Id of the user
23
+ # @option opts [String] job The users job
24
+ # @option opts [String] lastName The last name of the user
25
+ # @option opts [String] messenger The users IM details
26
+ # @option opts [String] mobile The users mobile number
27
+ # @option opts [String] oldPassword The old password of the user
28
+ # @option opts [String] password The password of the user
29
+ # @option opts [String] passwordConfirmation The confirmed password
30
+ # @option opts [String] phone The users phone number
31
+ # @option opts [Hash] tags The users assigned tags
32
+ # @option opts [String] uiRole The users ui role
33
+ # @option opts [String] username The users username
34
+ # @return [Hash] New user
35
+ def brandwatch_create_client_user(client_id, opts = {})
36
+ post "brandwatch/clients/#{client_id}/users", opts
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.0.pre.462
4
+ version: 10.0.0.pre.465
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
@@ -139,6 +139,7 @@ files:
139
139
  - lib/bwapi/client/brandwatch/become.rb
140
140
  - lib/bwapi/client/brandwatch/clients.rb
141
141
  - lib/bwapi/client/brandwatch/clients/modules.rb
142
+ - lib/bwapi/client/brandwatch/clients/users.rb
142
143
  - lib/bwapi/client/client.rb
143
144
  - lib/bwapi/client/command_center.rb
144
145
  - lib/bwapi/client/command_center/client.rb