bwapi 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bwapi/client/admin/sub_clients.rb +16 -6
- data/lib/bwapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904d506afaeb1560040595525d29f49364a7831c
|
4
|
+
data.tar.gz: fd0873c993e831a8da42484111f32fbc4c0cde78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db707dbb2ccc834bbdec1498d1ebcd1d1b0f28a2783b95732cd3fafc565ab977a96b2802ef014dfd4a09e0f63260b5c15ebba23afdd06284525cf3478ac9521b
|
7
|
+
data.tar.gz: 27baf6f493f8478829440878be6fdb40fd115774bdec3098313e25ef1e7b39a066d9cb449ac7eac397a57dfa0f2dad27f7d3e18177e7cee91d5bf5ae77d3d444
|
@@ -14,7 +14,7 @@ module BWAPI
|
|
14
14
|
# @option opts [Integer] pageSize Results per page of results
|
15
15
|
# @return [Hashie::Mash] All sub clients for client
|
16
16
|
def client_sub_clients id
|
17
|
-
get "admin/clients/#{id}/
|
17
|
+
get "admin/clients/#{id}/subclients"
|
18
18
|
end
|
19
19
|
alias :sub_clients :client_sub_clients
|
20
20
|
|
@@ -22,9 +22,9 @@ module BWAPI
|
|
22
22
|
#
|
23
23
|
# @param client_id [Integer] Id of the client
|
24
24
|
# @param sub_client_id [Integer] Id of the sub client
|
25
|
-
# @return [Hashie::Mash] Specific sub
|
25
|
+
# @return [Hashie::Mash] Specific sub client for client
|
26
26
|
def get_client_sub_client client_id, sub_client_id
|
27
|
-
get "admin/clients/#{client_id}/
|
27
|
+
get "admin/clients/#{client_id}/subclients/#{sub_client_id}"
|
28
28
|
end
|
29
29
|
alias :sub_client :get_client_sub_client
|
30
30
|
|
@@ -61,7 +61,7 @@ module BWAPI
|
|
61
61
|
# @option opts [String] contactMobile The mobile number for the client
|
62
62
|
# @return [Hashie::Mash] New sub client
|
63
63
|
def create_client_sub_client id, opts
|
64
|
-
post "admin/clients/#{id}/
|
64
|
+
post "admin/clients/#{id}/subclients", opts
|
65
65
|
end
|
66
66
|
alias :create_sub_client :create_client_sub_client
|
67
67
|
|
@@ -97,12 +97,22 @@ module BWAPI
|
|
97
97
|
# @option opts [String] contactName The contact name of the client
|
98
98
|
# @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
|
99
99
|
# @option opts [String] contactMobile The mobile number for the client
|
100
|
-
# @return [Hashie::Mash]
|
100
|
+
# @return [Hashie::Mash] Edited sub client
|
101
101
|
def update_client_sub_client client_id, sub_client_id, opts
|
102
|
-
put "admin/clients/#{client_id}/
|
102
|
+
put "admin/clients/#{client_id}/subclients/#{sub_client_id}", opts
|
103
103
|
end
|
104
104
|
alias :update_sub_client :update_client_sub_client
|
105
105
|
|
106
|
+
# Delete specific sub client of client
|
107
|
+
#
|
108
|
+
# @param client_id [Integer] Id of the client
|
109
|
+
# @param sub_client_id [Integer] Id of the sub client
|
110
|
+
# @return [Hashie::Mash] Specific sub client for client
|
111
|
+
def delete_client_sub_client client_id, sub_client_id
|
112
|
+
delete "admin/clients/#{client_id}/subclients/#{sub_client_id}"
|
113
|
+
end
|
114
|
+
alias :delete_sub_client :delete_client_sub_client
|
115
|
+
|
106
116
|
end
|
107
117
|
end
|
108
118
|
end
|
data/lib/bwapi/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.0.5
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Brandwatch v2 API Wrapper
|