bwapi 11.0.1.pre.570 → 11.0.1.pre.575
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/users.rb +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTQyMjk3NWFlYzMzZTAwMThmNDdmYjhmOGY4NGQzMzdlYzlkYTRiYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTllYmQ3ZWNlMWJjNzExZTliNmFkODgyMGZlYWJhYTE4OTJjYWMxMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzM1ZWI5OGZlMjQyN2NjNDc2ODgxMmRhZmIwZDU3YzZjNTRhOGMxYzU5Yjg1
|
10
|
+
OTBmN2Q3MDc2NDM2NzEyYWM4ODBjNTJhMzg2NmU0NzNmNGI3ZGI1NzI5MmNi
|
11
|
+
YzBjNWU5YzYzNGYyNTYyYzgzZTQ4MDcwOTVkMjJkY2U0NTM5YjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjZlNWI1MTRmM2E4ZGFlMjdhMGI0Mzg4OGE0Y2EzZjBjYWFkODYxNzQ4Y2M0
|
14
|
+
YzU5Mzg0MmQ0OTA1YjQ2MTY2NjgxMWVjMWZiZWJiMTQ5YzE5ZTBlYjg0NzRi
|
15
|
+
NzUyMDlmMjBiMzI4ZTY4ZWMyMGE2ZDg1NmJiNTA1YTA5ZTg1YTU=
|
@@ -4,6 +4,13 @@ module BWAPI
|
|
4
4
|
module Clients
|
5
5
|
# Users module for brandwatch/users endpoints
|
6
6
|
module Users
|
7
|
+
# List all users in a client
|
8
|
+
#
|
9
|
+
# TODO: Add parameters documentation
|
10
|
+
def brandwatch_get_client_users(client_id, opts = {})
|
11
|
+
get "brandwatch/clients/#{client_id}/users", opts
|
12
|
+
end
|
13
|
+
|
7
14
|
# Create a new client user
|
8
15
|
#
|
9
16
|
# @param client_id [Integer] Id of the client
|
@@ -33,6 +40,20 @@ module BWAPI
|
|
33
40
|
def brandwatch_create_client_user(client_id, opts = {})
|
34
41
|
post "brandwatch/clients/#{client_id}/users", opts
|
35
42
|
end
|
43
|
+
|
44
|
+
# Get a user in a client
|
45
|
+
#
|
46
|
+
# TODO: Add parameters documentation
|
47
|
+
def brandwatch_get_client_user(client_id, user_id, opts = {})
|
48
|
+
get "brandwatch/clients/#{client_id}/users/#{user_id}", opts
|
49
|
+
end
|
50
|
+
|
51
|
+
# Update a user in a client
|
52
|
+
#
|
53
|
+
# TODO: Add parameters documentation
|
54
|
+
def brandwatch_update_client_user(client_id, user_id, opts = {})
|
55
|
+
put "brandwatch/clients/#{client_id}/users/#{user_id}", opts
|
56
|
+
end
|
36
57
|
end
|
37
58
|
end
|
38
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.1.pre.
|
4
|
+
version: 11.0.1.pre.575
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|