bwapi 11.0.1.pre.615 → 11.0.1.pre.617
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
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGYyMWU2ZTliZTRkODljZmZhZmM3NWZiYTI4MjFkNGY3NWEzYzVhNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmYxZGY2MjZhNjZiNTgzYTNjMTk1OGE2NjFlZTU1MWZiYWI5MmEzYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODg1NTdmMDI0ZDA5ZWMzNmE4NTA2YjczOWZlODlmNTk4MjdjMmRmZGIzYjVi
|
10
|
+
MDMxZTM3YzhiOTgwYTM4NGQ2ZGRhYmM5OWUxM2Y3M2JmNWIzN2FhNDQ4NmE0
|
11
|
+
NGZkM2Q1MzEyMDkyOTBlMjU4MTJkY2IwYTAwMjFmMmFiMzZlZTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTI1ZGI5NDQ0YTFjMTJiZGFmNmE3MDcyZjQ3OWUwNDFhZDc0NzI3NmU0ZjMw
|
14
|
+
MWZiYWFmMGFmNjBmYzYwMjAyZTFkMDkyMDY3YzA3MGY1MzExMTFkZjY5NWMy
|
15
|
+
NTc2Zjg1M2Y1NmFkYThkOGM3YWFiN2ZhMjEwODJmMjFmNGMyMTI=
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'bwapi/client/admin/clients/sub_clients'
|
2
1
|
require 'bwapi/client/admin/clients/users'
|
3
2
|
require 'bwapi/client/admin/clients/user_groups'
|
4
3
|
|
@@ -21,7 +20,6 @@ module BWAPI
|
|
21
20
|
get "admin/clients/#{client_id}/usage/daily", opts
|
22
21
|
end
|
23
22
|
|
24
|
-
include BWAPI::Client::Admin::Clients::SubClients
|
25
23
|
include BWAPI::Client::Admin::Clients::Users
|
26
24
|
include BWAPI::Client::Admin::Clients::UserGroups
|
27
25
|
end
|
data/lib/bwapi/client/client.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'bwapi/client/client/grant_types'
|
2
|
+
require 'bwapi/client/client/sub_clients'
|
2
3
|
|
3
4
|
module BWAPI
|
4
5
|
class Client
|
@@ -40,6 +41,7 @@ module BWAPI
|
|
40
41
|
end
|
41
42
|
|
42
43
|
include BWAPI::Client::Client::GrantTypes
|
44
|
+
include BWAPI::Client::Client::SubClients
|
43
45
|
end
|
44
46
|
end
|
45
47
|
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Client
|
4
|
+
# Subclients module for client/subclient endpoints
|
5
|
+
module SubClients
|
6
|
+
# Get all sub clients
|
7
|
+
#
|
8
|
+
# @param client_id [Integer] Id of the client
|
9
|
+
# @param opts [Hash] options hash of parameters
|
10
|
+
# @option opts [Integer] page Page of projects to retrieve
|
11
|
+
# @option opts [Integer] pageSize Results per page of results
|
12
|
+
# @return [Hash] All sub clients for client
|
13
|
+
def client_sub_clients(client_id, opts = {})
|
14
|
+
get "/client/#{client_id}/subclients", opts
|
15
|
+
end
|
16
|
+
|
17
|
+
# Get specific sub client of client
|
18
|
+
#
|
19
|
+
# @param client_id [Integer] Id of the client
|
20
|
+
# @param sub_client_id [Integer] Id of the sub client
|
21
|
+
# @return [Hash] Specific sub client for client
|
22
|
+
def get_client_sub_client(client_id, sub_client_id)
|
23
|
+
get "/client/#{client_id}/subclients/#{sub_client_id}"
|
24
|
+
end
|
25
|
+
|
26
|
+
# Create new subclient
|
27
|
+
#
|
28
|
+
# @param client_id [Integer] Id of the client
|
29
|
+
# @param opts [Hash] options hash of parameters
|
30
|
+
# @option opts [Date] startDate Start date of the client
|
31
|
+
# @option opts [String] contactTitle Contact title of the client
|
32
|
+
# @option opts [String] address1 Address line one of the client
|
33
|
+
# @option opts [String] address2 Address line two of the client
|
34
|
+
# @option opts [String] address3 Address line three of the client
|
35
|
+
# @option opts [String] pricingModel Pricing model of the client
|
36
|
+
# @option opts [Integer] mentionArchiveSize Mention archive size for the client
|
37
|
+
# @option opts [Integer] id Id of the sub client
|
38
|
+
# @option opts [Integer] parentId Parent id of the sub client
|
39
|
+
# @option opts [Integer] maxUsers Maxiumum number of users for the client
|
40
|
+
# @option opts [Boolean] isLegacy Legacy status of the client
|
41
|
+
# @option opts [String] name Name of the client
|
42
|
+
# @option opts [String] contactTelephone Telephone number of the client
|
43
|
+
# @option opts [Integer] priceStructureId Id of the price structure for client
|
44
|
+
# @option opts [Hash] tags Tags for the client
|
45
|
+
# @option opts [String] website The website for the client
|
46
|
+
# @option opts [String] contactEmail The contact email for the client
|
47
|
+
# @option opts [Date] expiryDate The expiry date for the client
|
48
|
+
# @option opts [String] theme The theme of the client
|
49
|
+
# @option opts [Integer] priceStructureLineId The level of the price structure for the client
|
50
|
+
# @option opts [Integer] mentionBasedPricingMatrixLevel The amount of mentions allowed
|
51
|
+
# @option opts [String] postcode The postcode of the client
|
52
|
+
# @option opts [String] country The country of the client
|
53
|
+
# @option opts [String] contactName The contact name of the client
|
54
|
+
# @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
|
55
|
+
# @option opts [String] contactMobile The mobile number for the client
|
56
|
+
# @return [Hash] New sub client
|
57
|
+
def create_client_sub_client(client_id, opts = {})
|
58
|
+
post "/client/#{client_id}/subclients", opts
|
59
|
+
end
|
60
|
+
|
61
|
+
# Update new subclient
|
62
|
+
#
|
63
|
+
# @param client_id [Integer] Id of the client
|
64
|
+
# @param sub_client_id [Integer] Id of the sub client
|
65
|
+
# @param opts [Hash] options hash of parameters
|
66
|
+
# @option opts [Date] startDate Start date of the client
|
67
|
+
# @option opts [String] contactTitle Contact title of the client
|
68
|
+
# @option opts [String] address1 Address line one of the client
|
69
|
+
# @option opts [String] address2 Address line two of the client
|
70
|
+
# @option opts [String] address3 Address line three of the client
|
71
|
+
# @option opts [String] pricingModel Pricing model of the client
|
72
|
+
# @option opts [Integer] mentionArchiveSize Mention archive size for the client
|
73
|
+
# @option opts [Integer] id Id of the sub client
|
74
|
+
# @option opts [Integer] parentId Parent id of the sub client
|
75
|
+
# @option opts [Integer] maxUsers Maxiumum number of users for the client
|
76
|
+
# @option opts [Boolean] isLegacy Legacy status of the client
|
77
|
+
# @option opts [String] name Name of the client
|
78
|
+
# @option opts [String] contactTelephone Telephone number of the client
|
79
|
+
# @option opts [Integer] priceStructureId Id of the price structure for client
|
80
|
+
# @option opts [Hash] tags Tags for the client
|
81
|
+
# @option opts [String] website The website for the client
|
82
|
+
# @option opts [String] contactEmail The contact email for the client
|
83
|
+
# @option opts [Date] expiryDate The expiry date for the client
|
84
|
+
# @option opts [String] theme The theme of the client
|
85
|
+
# @option opts [Integer] priceStructureLineId The level of the price structure for the client
|
86
|
+
# @option opts [Integer] mentionBasedPricingMatrixLevel The amount of mentions allowed
|
87
|
+
# @option opts [String] postcode The postcode of the client
|
88
|
+
# @option opts [String] country The country of the client
|
89
|
+
# @option opts [String] contactName The contact name of the client
|
90
|
+
# @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
|
91
|
+
# @option opts [String] contactMobile The mobile number for the client
|
92
|
+
# @return [Hash] Edited sub client
|
93
|
+
def update_client_sub_client(client_id, sub_client_id, opts = {})
|
94
|
+
put "/client/#{client_id}/subclients/#{sub_client_id}", opts
|
95
|
+
end
|
96
|
+
|
97
|
+
# Delete specific sub client of client
|
98
|
+
#
|
99
|
+
# @param client_id [Integer] Id of the client
|
100
|
+
# @param sub_client_id [Integer] Id of the sub client
|
101
|
+
# @return [Hash] Specific sub client for client
|
102
|
+
def delete_client_sub_client(client_id, sub_client_id)
|
103
|
+
delete "/client/#{client_id}/subclients/#{sub_client_id}"
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
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.617
|
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-08-
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -146,7 +146,6 @@ files:
|
|
146
146
|
- lib/bwapi/client/admin/become.rb
|
147
147
|
- lib/bwapi/client/admin/client.rb
|
148
148
|
- lib/bwapi/client/admin/clients.rb
|
149
|
-
- lib/bwapi/client/admin/clients/sub_clients.rb
|
150
149
|
- lib/bwapi/client/admin/clients/user_groups.rb
|
151
150
|
- lib/bwapi/client/admin/clients/users.rb
|
152
151
|
- lib/bwapi/client/admin/clients/users/sharing.rb
|
@@ -180,6 +179,7 @@ files:
|
|
180
179
|
- lib/bwapi/client/brandwatch/usage_report.rb
|
181
180
|
- lib/bwapi/client/client.rb
|
182
181
|
- lib/bwapi/client/client/grant_types.rb
|
182
|
+
- lib/bwapi/client/client/sub_clients.rb
|
183
183
|
- lib/bwapi/client/command_center.rb
|
184
184
|
- lib/bwapi/client/command_center/category_colours.rb
|
185
185
|
- lib/bwapi/client/command_center/client.rb
|
@@ -1,110 +0,0 @@
|
|
1
|
-
module BWAPI
|
2
|
-
class Client
|
3
|
-
module Admin
|
4
|
-
module Clients
|
5
|
-
# Subclients module for admin/subclient endpoints
|
6
|
-
module SubClients
|
7
|
-
# Get all sub clients
|
8
|
-
#
|
9
|
-
# @param client_id [Integer] Id of the client
|
10
|
-
# @param opts [Hash] options hash of parameters
|
11
|
-
# @option opts [Integer] page Page of projects to retrieve
|
12
|
-
# @option opts [Integer] pageSize Results per page of results
|
13
|
-
# @return [Hash] All sub clients for client
|
14
|
-
def client_sub_clients(client_id, opts = {})
|
15
|
-
get "admin/clients/#{client_id}/subclients", opts
|
16
|
-
end
|
17
|
-
|
18
|
-
# Get specific sub client of client
|
19
|
-
#
|
20
|
-
# @param client_id [Integer] Id of the client
|
21
|
-
# @param sub_client_id [Integer] Id of the sub client
|
22
|
-
# @return [Hash] Specific sub client for client
|
23
|
-
def get_client_sub_client(client_id, sub_client_id)
|
24
|
-
get "admin/clients/#{client_id}/subclients/#{sub_client_id}"
|
25
|
-
end
|
26
|
-
|
27
|
-
# Create new subclient
|
28
|
-
#
|
29
|
-
# @param client_id [Integer] Id of the client
|
30
|
-
# @param opts [Hash] options hash of parameters
|
31
|
-
# @option opts [Date] startDate Start date of the client
|
32
|
-
# @option opts [String] contactTitle Contact title of the client
|
33
|
-
# @option opts [String] address1 Address line one of the client
|
34
|
-
# @option opts [String] address2 Address line two of the client
|
35
|
-
# @option opts [String] address3 Address line three of the client
|
36
|
-
# @option opts [String] pricingModel Pricing model of the client
|
37
|
-
# @option opts [Integer] mentionArchiveSize Mention archive size for the client
|
38
|
-
# @option opts [Integer] id Id of the sub client
|
39
|
-
# @option opts [Integer] parentId Parent id of the sub client
|
40
|
-
# @option opts [Integer] maxUsers Maxiumum number of users for the client
|
41
|
-
# @option opts [Boolean] isLegacy Legacy status of the client
|
42
|
-
# @option opts [String] name Name of the client
|
43
|
-
# @option opts [String] contactTelephone Telephone number of the client
|
44
|
-
# @option opts [Integer] priceStructureId Id of the price structure for client
|
45
|
-
# @option opts [Hash] tags Tags for the client
|
46
|
-
# @option opts [String] website The website for the client
|
47
|
-
# @option opts [String] contactEmail The contact email for the client
|
48
|
-
# @option opts [Date] expiryDate The expiry date for the client
|
49
|
-
# @option opts [String] theme The theme of the client
|
50
|
-
# @option opts [Integer] priceStructureLineId The level of the price structure for the client
|
51
|
-
# @option opts [Integer] mentionBasedPricingMatrixLevel The amount of mentions allowed
|
52
|
-
# @option opts [String] postcode The postcode of the client
|
53
|
-
# @option opts [String] country The country of the client
|
54
|
-
# @option opts [String] contactName The contact name of the client
|
55
|
-
# @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
|
56
|
-
# @option opts [String] contactMobile The mobile number for the client
|
57
|
-
# @return [Hash] New sub client
|
58
|
-
def create_client_sub_client(client_id, opts = {})
|
59
|
-
post "admin/clients/#{client_id}/subclients", opts
|
60
|
-
end
|
61
|
-
|
62
|
-
# Update new subclient
|
63
|
-
#
|
64
|
-
# @param client_id [Integer] Id of the client
|
65
|
-
# @param sub_client_id [Integer] Id of the sub client
|
66
|
-
# @param opts [Hash] options hash of parameters
|
67
|
-
# @option opts [Date] startDate Start date of the client
|
68
|
-
# @option opts [String] contactTitle Contact title of the client
|
69
|
-
# @option opts [String] address1 Address line one of the client
|
70
|
-
# @option opts [String] address2 Address line two of the client
|
71
|
-
# @option opts [String] address3 Address line three of the client
|
72
|
-
# @option opts [String] pricingModel Pricing model of the client
|
73
|
-
# @option opts [Integer] mentionArchiveSize Mention archive size for the client
|
74
|
-
# @option opts [Integer] id Id of the sub client
|
75
|
-
# @option opts [Integer] parentId Parent id of the sub client
|
76
|
-
# @option opts [Integer] maxUsers Maxiumum number of users for the client
|
77
|
-
# @option opts [Boolean] isLegacy Legacy status of the client
|
78
|
-
# @option opts [String] name Name of the client
|
79
|
-
# @option opts [String] contactTelephone Telephone number of the client
|
80
|
-
# @option opts [Integer] priceStructureId Id of the price structure for client
|
81
|
-
# @option opts [Hash] tags Tags for the client
|
82
|
-
# @option opts [String] website The website for the client
|
83
|
-
# @option opts [String] contactEmail The contact email for the client
|
84
|
-
# @option opts [Date] expiryDate The expiry date for the client
|
85
|
-
# @option opts [String] theme The theme of the client
|
86
|
-
# @option opts [Integer] priceStructureLineId The level of the price structure for the client
|
87
|
-
# @option opts [Integer] mentionBasedPricingMatrixLevel The amount of mentions allowed
|
88
|
-
# @option opts [String] postcode The postcode of the client
|
89
|
-
# @option opts [String] country The country of the client
|
90
|
-
# @option opts [String] contactName The contact name of the client
|
91
|
-
# @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
|
92
|
-
# @option opts [String] contactMobile The mobile number for the client
|
93
|
-
# @return [Hash] Edited sub client
|
94
|
-
def update_client_sub_client(client_id, sub_client_id, opts = {})
|
95
|
-
put "admin/clients/#{client_id}/subclients/#{sub_client_id}", opts
|
96
|
-
end
|
97
|
-
|
98
|
-
# Delete specific sub client of client
|
99
|
-
#
|
100
|
-
# @param client_id [Integer] Id of the client
|
101
|
-
# @param sub_client_id [Integer] Id of the sub client
|
102
|
-
# @return [Hash] Specific sub client for client
|
103
|
-
def delete_client_sub_client(client_id, sub_client_id)
|
104
|
-
delete "admin/clients/#{client_id}/subclients/#{sub_client_id}"
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|