bwapi 9.2.0.pre.447 → 9.2.0.pre.452
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/bwapi/client/brandwatch/clients.rb +16 -4
- data/lib/bwapi/client/brandwatch/clients/users.rb +42 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDdlZTczMGM3YjY1OWMxYzdmZjNjMzg0ZDJlNGUwOTA5Y2YwMGFmNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTMzMzMxMzQ3NDM3NjhmODA2ZGMyNzc2MjZiM2Q1Yzc4OThhMWFmYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWJlMmNmYjY4MGI1NzIwZTllMTQ3OTBjMTdlZjQwNGI3NzRkNzI3YTY5YzZm
|
10
|
+
MGE5NjNhZDNmNDdlNGFlNGM3MjljNDYzZWYwNWNjZGUxYTdmNDJkMzNhYzMx
|
11
|
+
M2Q3MjIzNDQxMzQ1ZjczMGQyYzNkZWM1OWJhZTE4Y2UwOTU0Mjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmExZWVhODYwOWQ5ODVlZmM0MTY2ZjZmYWIzN2FmOGY2Njc2M2JjZDE5NjU3
|
14
|
+
OTRjNGU4YzMwODBjYThiYzFlMWMzYmI1YzU2NmFkMTk4ZDYzYWI5NzNiNzI1
|
15
|
+
MDQ0YzQ2YzhmMmM5MGVkY2ExZGY2N2ZhODFmMjljMWRiMjcxMWM=
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'bwapi/client/brandwatch/clients/users'
|
2
|
+
|
1
3
|
module BWAPI
|
2
4
|
class Client
|
3
5
|
module Brandwatch
|
@@ -5,15 +7,19 @@ module BWAPI
|
|
5
7
|
module Clients
|
6
8
|
# Get specific clients
|
7
9
|
#
|
10
|
+
# @note must be a super admin user
|
11
|
+
#
|
8
12
|
# @param opts [Hash] options Hash of parameters
|
9
13
|
# @options opts [String] nameContains Client name search (case insensitive)
|
10
14
|
# @return [Hash] List of filtered clients
|
11
|
-
def
|
15
|
+
def brandwatch_clients(opts = {})
|
12
16
|
get 'brandwatch/clients', opts
|
13
17
|
end
|
14
18
|
|
15
19
|
# Create a new parent client
|
16
20
|
#
|
21
|
+
# @note must be a super admin user
|
22
|
+
#
|
17
23
|
# @param opts [Hash] options Hash of parameters
|
18
24
|
# @option opts [String] address1 Address line one of the client
|
19
25
|
# @option opts [String] address2 Address line two of the client
|
@@ -43,20 +49,24 @@ module BWAPI
|
|
43
49
|
# @option opts [String] theme The theme of the client
|
44
50
|
# @option opts [String] website The website for the client
|
45
51
|
# @return [Hash] Newly created parent client
|
46
|
-
def
|
52
|
+
def brandwatch_create_client(opts = {})
|
47
53
|
post 'brandwatch/clients', opts
|
48
54
|
end
|
49
55
|
|
50
56
|
# Get specific client
|
51
57
|
#
|
58
|
+
# @note must be a super admin user
|
59
|
+
#
|
52
60
|
# @param client_id [Integer] Id of the client
|
53
61
|
# @return [Hash] Specific client
|
54
|
-
def
|
62
|
+
def brandwatch_get_client(client_id)
|
55
63
|
get "brandwatch/clients/#{client_id}"
|
56
64
|
end
|
57
65
|
|
58
66
|
# Update an existing parent client
|
59
67
|
#
|
68
|
+
# @note must be a super admin user
|
69
|
+
#
|
60
70
|
# @param client_id [Integer] Id of the client
|
61
71
|
# @param opts [Hash] options Hash of parameters
|
62
72
|
# @option opts [String] address1 Address line one of the client
|
@@ -87,9 +97,11 @@ module BWAPI
|
|
87
97
|
# @option opts [String] theme The theme of the client
|
88
98
|
# @option opts [String] website The website for the client
|
89
99
|
# @return [Hash] Updated parent client
|
90
|
-
def
|
100
|
+
def brandwatch_update_client(client_id, opts = {})
|
91
101
|
put "brandwatch/clients/#{client_id}", opts
|
92
102
|
end
|
103
|
+
|
104
|
+
include BWAPI::Client::Brandwatch::Clients::Users
|
93
105
|
end
|
94
106
|
end
|
95
107
|
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: 9.2.0.pre.
|
4
|
+
version: 9.2.0.pre.452
|
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/client_modules.rb
|
141
141
|
- lib/bwapi/client/brandwatch/clients.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
|