bombbomb 2.0.25797 → 2.0.25798
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +68 -33
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AccountsApi.md +164 -5
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/ContactsApi.md +9 -6
- data/docs/EmailsApi.md +220 -0
- data/docs/FormsApi.md +60 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/IntegrationsApi.md +223 -0
- data/docs/JerichoConfiguration.md +2 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptSocialPrompt.md +20 -0
- data/docs/PromptsApi.md +230 -3
- data/docs/SocialsApi.md +167 -2
- data/docs/TeamsApi.md +300 -16
- data/docs/UsersApi.md +100 -0
- data/docs/VideoEmailPrompt.md +15 -15
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +8 -14
- data/lib/bombbomb/api/accounts_api.rb +189 -51
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +58 -86
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +262 -66
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +77 -0
- data/lib/bombbomb/api/integrations_api.rb +238 -20
- data/lib/bombbomb/api/lists_api.rb +32 -53
- data/lib/bombbomb/api/orders_api.rb +8 -21
- data/lib/bombbomb/api/prompts_api.rb +347 -112
- data/lib/bombbomb/api/socials_api.rb +242 -87
- data/lib/bombbomb/api/teams_api.rb +485 -193
- data/lib/bombbomb/api/users_api.rb +119 -0
- data/lib/bombbomb/api/utilities_api.rb +23 -44
- data/lib/bombbomb/api/videos_api.rb +38 -55
- data/lib/bombbomb/api/webhooks_api.rb +23 -50
- data/lib/bombbomb/api_client.rb +55 -45
- data/lib/bombbomb/api_error.rb +9 -18
- data/lib/bombbomb/configuration.rb +8 -13
- data/lib/bombbomb/models/bb_web_hook.rb +6 -17
- data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
- data/lib/bombbomb/models/curriculum.rb +6 -17
- data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
- data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
- data/lib/bombbomb/models/hosted_doc.rb +6 -17
- data/lib/bombbomb/models/inline_response_200.rb +7 -18
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +34 -21
- data/lib/bombbomb/models/jericho_performance.rb +6 -17
- data/lib/bombbomb/models/o_auth_client.rb +6 -17
- data/lib/bombbomb/models/prompt_bot.rb +6 -17
- data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
- data/lib/bombbomb/models/prompt_overview.rb +219 -0
- data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
- data/lib/bombbomb/models/sign_upload_request.rb +6 -17
- data/lib/bombbomb/models/sign_upload_response.rb +6 -17
- data/lib/bombbomb/models/string.rb +6 -17
- data/lib/bombbomb/models/team_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_email_prompt.rb +128 -144
- data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
- data/lib/bombbomb/models/video_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
- data/lib/bombbomb/version.rb +3 -14
- data/spec/api/forms_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +57 -0
- data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
- data/spec/models/prompt_monthly_performance_spec.rb +60 -0
- data/spec/models/prompt_overview_spec.rb +60 -0
- data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
- metadata +40 -20
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -35,9 +24,10 @@ module BombBomb
|
|
35
24
|
# Adds a member to a team.
|
36
25
|
# @param team_id The team id
|
37
26
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :user_id The user id of the member being added to the team.
|
39
|
-
# @option opts [String] :user_email The email of the member being added to the team.
|
40
27
|
# @option opts [BOOLEAN] :admin Set if the user is an admin of this team.
|
28
|
+
# @option opts [String] :subgroup_ids Subgroup IDs to add user to
|
29
|
+
# @option opts [String] :user_email The email of the member being added to the team.
|
30
|
+
# @option opts [String] :user_id The user id of the member being added to the team.
|
41
31
|
# @return [String]
|
42
32
|
def add_team_member(team_id, opts = {})
|
43
33
|
data, _status_code, _headers = add_team_member_with_http_info(team_id, opts)
|
@@ -48,38 +38,38 @@ module BombBomb
|
|
48
38
|
# Adds a member to a team.
|
49
39
|
# @param team_id The team id
|
50
40
|
# @param [Hash] opts the optional parameters
|
51
|
-
# @option opts [String] :user_id The user id of the member being added to the team.
|
52
|
-
# @option opts [String] :user_email The email of the member being added to the team.
|
53
41
|
# @option opts [BOOLEAN] :admin Set if the user is an admin of this team.
|
42
|
+
# @option opts [String] :subgroup_ids Subgroup IDs to add user to
|
43
|
+
# @option opts [String] :user_email The email of the member being added to the team.
|
44
|
+
# @option opts [String] :user_id The user id of the member being added to the team.
|
54
45
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
55
46
|
def add_team_member_with_http_info(team_id, opts = {})
|
56
47
|
if @api_client.config.debugging
|
57
48
|
@api_client.config.logger.debug "Calling API: TeamsApi.add_team_member ..."
|
58
49
|
end
|
59
50
|
# verify the required parameter 'team_id' is set
|
60
|
-
|
51
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.add_team_member"
|
53
|
+
end
|
61
54
|
# resource path
|
62
|
-
local_var_path = "/team/{teamId}/member".sub('{
|
55
|
+
local_var_path = "/team/{teamId}/member".sub('{' + 'teamId' + '}', team_id.to_s)
|
63
56
|
|
64
57
|
# query parameters
|
65
58
|
query_params = {}
|
66
59
|
|
67
60
|
# header parameters
|
68
61
|
header_params = {}
|
69
|
-
|
70
62
|
# HTTP header 'Accept' (if needed)
|
71
|
-
|
72
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
73
|
-
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
74
64
|
# HTTP header 'Content-Type'
|
75
|
-
|
76
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
77
66
|
|
78
67
|
# form parameters
|
79
68
|
form_params = {}
|
80
|
-
form_params["userId"] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
81
|
-
form_params["userEmail"] = opts[:'user_email'] if !opts[:'user_email'].nil?
|
82
69
|
form_params["admin"] = opts[:'admin'] if !opts[:'admin'].nil?
|
70
|
+
form_params["subgroupIds"] = opts[:'subgroup_ids'] if !opts[:'subgroup_ids'].nil?
|
71
|
+
form_params["userEmail"] = opts[:'user_email'] if !opts[:'user_email'].nil?
|
72
|
+
form_params["userId"] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
83
73
|
|
84
74
|
# http body (model)
|
85
75
|
post_body = nil
|
@@ -97,6 +87,147 @@ module BombBomb
|
|
97
87
|
return data, status_code, headers
|
98
88
|
end
|
99
89
|
|
90
|
+
# Add users to group.
|
91
|
+
# Add a new or existing user to group.
|
92
|
+
# @param team_id The team id
|
93
|
+
# @param user_details Array of emails or objects containing details needed to create user
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [String] :send_welcome_email Whether to send welcome email to new users
|
96
|
+
# @option opts [String] :subgroup_ids Subgroup IDs to add user to
|
97
|
+
# @return [nil]
|
98
|
+
def add_users(team_id, user_details, opts = {})
|
99
|
+
add_users_with_http_info(team_id, user_details, opts)
|
100
|
+
return nil
|
101
|
+
end
|
102
|
+
|
103
|
+
# Add users to group.
|
104
|
+
# Add a new or existing user to group.
|
105
|
+
# @param team_id The team id
|
106
|
+
# @param user_details Array of emails or objects containing details needed to create user
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [String] :send_welcome_email Whether to send welcome email to new users
|
109
|
+
# @option opts [String] :subgroup_ids Subgroup IDs to add user to
|
110
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
111
|
+
def add_users_with_http_info(team_id, user_details, opts = {})
|
112
|
+
if @api_client.config.debugging
|
113
|
+
@api_client.config.logger.debug "Calling API: TeamsApi.add_users ..."
|
114
|
+
end
|
115
|
+
# verify the required parameter 'team_id' is set
|
116
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.add_users"
|
118
|
+
end
|
119
|
+
# verify the required parameter 'user_details' is set
|
120
|
+
if @api_client.config.client_side_validation && user_details.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'user_details' when calling TeamsApi.add_users"
|
122
|
+
end
|
123
|
+
# resource path
|
124
|
+
local_var_path = "/team/{teamId}/members".sub('{' + 'teamId' + '}', team_id.to_s)
|
125
|
+
|
126
|
+
# query parameters
|
127
|
+
query_params = {}
|
128
|
+
|
129
|
+
# header parameters
|
130
|
+
header_params = {}
|
131
|
+
# HTTP header 'Accept' (if needed)
|
132
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
133
|
+
# HTTP header 'Content-Type'
|
134
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
135
|
+
|
136
|
+
# form parameters
|
137
|
+
form_params = {}
|
138
|
+
form_params["userDetails"] = user_details
|
139
|
+
form_params["sendWelcomeEmail"] = opts[:'send_welcome_email'] if !opts[:'send_welcome_email'].nil?
|
140
|
+
form_params["subgroupIds"] = opts[:'subgroup_ids'] if !opts[:'subgroup_ids'].nil?
|
141
|
+
|
142
|
+
# http body (model)
|
143
|
+
post_body = nil
|
144
|
+
auth_names = ['BBOAuth2']
|
145
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
146
|
+
:header_params => header_params,
|
147
|
+
:query_params => query_params,
|
148
|
+
:form_params => form_params,
|
149
|
+
:body => post_body,
|
150
|
+
:auth_names => auth_names)
|
151
|
+
if @api_client.config.debugging
|
152
|
+
@api_client.config.logger.debug "API called: TeamsApi#add_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
153
|
+
end
|
154
|
+
return data, status_code, headers
|
155
|
+
end
|
156
|
+
|
157
|
+
# Add members to group from CSV
|
158
|
+
# Imports members to a group from a given CSV ID.
|
159
|
+
# @param team_id The team id
|
160
|
+
# @param csv_import_id ID of the CSV to import
|
161
|
+
# @param map Object to use when mapping import to AccountCreateDetails. Key is property name on details, value is CSV column number.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @option opts [String] :send_welcome_email Whether to send welcome email to new users
|
164
|
+
# @option opts [String] :subgroup_ids Subgroup IDs to add user to
|
165
|
+
# @return [nil]
|
166
|
+
def add_users_from_csv(team_id, csv_import_id, map, opts = {})
|
167
|
+
add_users_from_csv_with_http_info(team_id, csv_import_id, map, opts)
|
168
|
+
return nil
|
169
|
+
end
|
170
|
+
|
171
|
+
# Add members to group from CSV
|
172
|
+
# Imports members to a group from a given CSV ID.
|
173
|
+
# @param team_id The team id
|
174
|
+
# @param csv_import_id ID of the CSV to import
|
175
|
+
# @param map Object to use when mapping import to AccountCreateDetails. Key is property name on details, value is CSV column number.
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [String] :send_welcome_email Whether to send welcome email to new users
|
178
|
+
# @option opts [String] :subgroup_ids Subgroup IDs to add user to
|
179
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
180
|
+
def add_users_from_csv_with_http_info(team_id, csv_import_id, map, opts = {})
|
181
|
+
if @api_client.config.debugging
|
182
|
+
@api_client.config.logger.debug "Calling API: TeamsApi.add_users_from_csv ..."
|
183
|
+
end
|
184
|
+
# verify the required parameter 'team_id' is set
|
185
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
186
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.add_users_from_csv"
|
187
|
+
end
|
188
|
+
# verify the required parameter 'csv_import_id' is set
|
189
|
+
if @api_client.config.client_side_validation && csv_import_id.nil?
|
190
|
+
fail ArgumentError, "Missing the required parameter 'csv_import_id' when calling TeamsApi.add_users_from_csv"
|
191
|
+
end
|
192
|
+
# verify the required parameter 'map' is set
|
193
|
+
if @api_client.config.client_side_validation && map.nil?
|
194
|
+
fail ArgumentError, "Missing the required parameter 'map' when calling TeamsApi.add_users_from_csv"
|
195
|
+
end
|
196
|
+
# resource path
|
197
|
+
local_var_path = "/team/{teamId}/members/csv".sub('{' + 'teamId' + '}', team_id.to_s)
|
198
|
+
|
199
|
+
# query parameters
|
200
|
+
query_params = {}
|
201
|
+
|
202
|
+
# header parameters
|
203
|
+
header_params = {}
|
204
|
+
# HTTP header 'Accept' (if needed)
|
205
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
206
|
+
# HTTP header 'Content-Type'
|
207
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
208
|
+
|
209
|
+
# form parameters
|
210
|
+
form_params = {}
|
211
|
+
form_params["csvImportId"] = csv_import_id
|
212
|
+
form_params["map"] = map
|
213
|
+
form_params["sendWelcomeEmail"] = opts[:'send_welcome_email'] if !opts[:'send_welcome_email'].nil?
|
214
|
+
form_params["subgroupIds"] = opts[:'subgroup_ids'] if !opts[:'subgroup_ids'].nil?
|
215
|
+
|
216
|
+
# http body (model)
|
217
|
+
post_body = nil
|
218
|
+
auth_names = ['BBOAuth2']
|
219
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
220
|
+
:header_params => header_params,
|
221
|
+
:query_params => query_params,
|
222
|
+
:form_params => form_params,
|
223
|
+
:body => post_body,
|
224
|
+
:auth_names => auth_names)
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug "API called: TeamsApi#add_users_from_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
227
|
+
end
|
228
|
+
return data, status_code, headers
|
229
|
+
end
|
230
|
+
|
100
231
|
# Cancel a Jericho Send
|
101
232
|
# Cancels a scheduled Jericho send from being sent.
|
102
233
|
# @param jericho_id ID of the Jericho Job to cancel
|
@@ -117,23 +248,21 @@ module BombBomb
|
|
117
248
|
@api_client.config.logger.debug "Calling API: TeamsApi.cancel_jericho_send ..."
|
118
249
|
end
|
119
250
|
# verify the required parameter 'jericho_id' is set
|
120
|
-
|
251
|
+
if @api_client.config.client_side_validation && jericho_id.nil?
|
252
|
+
fail ArgumentError, "Missing the required parameter 'jericho_id' when calling TeamsApi.cancel_jericho_send"
|
253
|
+
end
|
121
254
|
# resource path
|
122
|
-
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{
|
255
|
+
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{' + 'jerichoId' + '}', jericho_id.to_s)
|
123
256
|
|
124
257
|
# query parameters
|
125
258
|
query_params = {}
|
126
259
|
|
127
260
|
# header parameters
|
128
261
|
header_params = {}
|
129
|
-
|
130
262
|
# HTTP header 'Accept' (if needed)
|
131
|
-
|
132
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
133
|
-
|
263
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
134
264
|
# HTTP header 'Content-Type'
|
135
|
-
|
136
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
265
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
137
266
|
|
138
267
|
# form parameters
|
139
268
|
form_params = {}
|
@@ -175,25 +304,25 @@ module BombBomb
|
|
175
304
|
@api_client.config.logger.debug "Calling API: TeamsApi.create_subteam ..."
|
176
305
|
end
|
177
306
|
# verify the required parameter 'team_id' is set
|
178
|
-
|
307
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
308
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.create_subteam"
|
309
|
+
end
|
179
310
|
# verify the required parameter 'name' is set
|
180
|
-
|
311
|
+
if @api_client.config.client_side_validation && name.nil?
|
312
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling TeamsApi.create_subteam"
|
313
|
+
end
|
181
314
|
# resource path
|
182
|
-
local_var_path = "/team/{teamId}/subteam".sub('{
|
315
|
+
local_var_path = "/team/{teamId}/subteam".sub('{' + 'teamId' + '}', team_id.to_s)
|
183
316
|
|
184
317
|
# query parameters
|
185
318
|
query_params = {}
|
186
319
|
|
187
320
|
# header parameters
|
188
321
|
header_params = {}
|
189
|
-
|
190
322
|
# HTTP header 'Accept' (if needed)
|
191
|
-
|
192
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
193
|
-
|
323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
194
324
|
# HTTP header 'Content-Type'
|
195
|
-
|
196
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
197
326
|
|
198
327
|
# form parameters
|
199
328
|
form_params = {}
|
@@ -237,25 +366,25 @@ module BombBomb
|
|
237
366
|
@api_client.config.logger.debug "Calling API: TeamsApi.delete_subteam ..."
|
238
367
|
end
|
239
368
|
# verify the required parameter 'team_id' is set
|
240
|
-
|
369
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
370
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.delete_subteam"
|
371
|
+
end
|
241
372
|
# verify the required parameter 'subteam_id' is set
|
242
|
-
|
373
|
+
if @api_client.config.client_side_validation && subteam_id.nil?
|
374
|
+
fail ArgumentError, "Missing the required parameter 'subteam_id' when calling TeamsApi.delete_subteam"
|
375
|
+
end
|
243
376
|
# resource path
|
244
|
-
local_var_path = "/team/{teamId}/subteam".sub('{
|
377
|
+
local_var_path = "/team/{teamId}/subteam".sub('{' + 'teamId' + '}', team_id.to_s)
|
245
378
|
|
246
379
|
# query parameters
|
247
380
|
query_params = {}
|
248
381
|
|
249
382
|
# header parameters
|
250
383
|
header_params = {}
|
251
|
-
|
252
384
|
# HTTP header 'Accept' (if needed)
|
253
|
-
|
254
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
255
|
-
|
385
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
256
386
|
# HTTP header 'Content-Type'
|
257
|
-
|
258
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
387
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
259
388
|
|
260
389
|
# form parameters
|
261
390
|
form_params = {}
|
@@ -297,9 +426,11 @@ module BombBomb
|
|
297
426
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_all_client_group_associations ..."
|
298
427
|
end
|
299
428
|
# verify the required parameter 'client_id' is set
|
300
|
-
|
429
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
430
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling TeamsApi.get_all_client_group_associations"
|
431
|
+
end
|
301
432
|
# resource path
|
302
|
-
local_var_path = "/team/associations/"
|
433
|
+
local_var_path = "/team/associations/"
|
303
434
|
|
304
435
|
# query parameters
|
305
436
|
query_params = {}
|
@@ -307,14 +438,10 @@ module BombBomb
|
|
307
438
|
|
308
439
|
# header parameters
|
309
440
|
header_params = {}
|
310
|
-
|
311
441
|
# HTTP header 'Accept' (if needed)
|
312
|
-
|
313
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
314
|
-
|
442
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
315
443
|
# HTTP header 'Content-Type'
|
316
|
-
|
317
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
444
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
318
445
|
|
319
446
|
# form parameters
|
320
447
|
form_params = {}
|
@@ -364,13 +491,15 @@ module BombBomb
|
|
364
491
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_client_group_assets ..."
|
365
492
|
end
|
366
493
|
# verify the required parameter 'asset_type' is set
|
367
|
-
|
494
|
+
if @api_client.config.client_side_validation && asset_type.nil?
|
495
|
+
fail ArgumentError, "Missing the required parameter 'asset_type' when calling TeamsApi.get_client_group_assets"
|
496
|
+
end
|
368
497
|
# verify enum value
|
369
|
-
|
498
|
+
if @api_client.config.client_side_validation && !['email', 'video'].include?(asset_type)
|
370
499
|
fail ArgumentError, "invalid value for 'asset_type', must be one of email, video"
|
371
500
|
end
|
372
501
|
# resource path
|
373
|
-
local_var_path = "/team/assets/"
|
502
|
+
local_var_path = "/team/assets/"
|
374
503
|
|
375
504
|
# query parameters
|
376
505
|
query_params = {}
|
@@ -383,14 +512,10 @@ module BombBomb
|
|
383
512
|
|
384
513
|
# header parameters
|
385
514
|
header_params = {}
|
386
|
-
|
387
515
|
# HTTP header 'Accept' (if needed)
|
388
|
-
|
389
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
390
|
-
|
516
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
391
517
|
# HTTP header 'Content-Type'
|
392
|
-
|
393
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
518
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
394
519
|
|
395
520
|
# form parameters
|
396
521
|
form_params = {}
|
@@ -433,12 +558,14 @@ module BombBomb
|
|
433
558
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_client_group_statistics ..."
|
434
559
|
end
|
435
560
|
# verify the required parameter 'team_id' is set
|
436
|
-
|
437
|
-
|
561
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
562
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_client_group_statistics"
|
563
|
+
end
|
564
|
+
if @api_client.config.client_side_validation && opts[:'member_status'] && !['all', 'active', 'inactive', 'self-paid'].include?(opts[:'member_status'])
|
438
565
|
fail ArgumentError, 'invalid value for "member_status", must be one of all, active, inactive, self-paid'
|
439
566
|
end
|
440
567
|
# resource path
|
441
|
-
local_var_path = "/team/{teamId}/stats".sub('{
|
568
|
+
local_var_path = "/team/{teamId}/stats".sub('{' + 'teamId' + '}', team_id.to_s)
|
442
569
|
|
443
570
|
# query parameters
|
444
571
|
query_params = {}
|
@@ -446,14 +573,10 @@ module BombBomb
|
|
446
573
|
|
447
574
|
# header parameters
|
448
575
|
header_params = {}
|
449
|
-
|
450
576
|
# HTTP header 'Accept' (if needed)
|
451
|
-
|
452
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
453
|
-
|
577
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
454
578
|
# HTTP header 'Content-Type'
|
455
|
-
|
456
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
579
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
457
580
|
|
458
581
|
# form parameters
|
459
582
|
form_params = {}
|
@@ -493,23 +616,21 @@ module BombBomb
|
|
493
616
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_jericho_sends ..."
|
494
617
|
end
|
495
618
|
# verify the required parameter 'team_id' is set
|
496
|
-
|
619
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
620
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_jericho_sends"
|
621
|
+
end
|
497
622
|
# resource path
|
498
|
-
local_var_path = "/team/{teamId}/jericho".sub('{
|
623
|
+
local_var_path = "/team/{teamId}/jericho".sub('{' + 'teamId' + '}', team_id.to_s)
|
499
624
|
|
500
625
|
# query parameters
|
501
626
|
query_params = {}
|
502
627
|
|
503
628
|
# header parameters
|
504
629
|
header_params = {}
|
505
|
-
|
506
630
|
# HTTP header 'Accept' (if needed)
|
507
|
-
|
508
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
509
|
-
|
631
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
510
632
|
# HTTP header 'Content-Type'
|
511
|
-
|
512
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
633
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
513
634
|
|
514
635
|
# form parameters
|
515
636
|
form_params = {}
|
@@ -552,25 +673,25 @@ module BombBomb
|
|
552
673
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_jericho_stats ..."
|
553
674
|
end
|
554
675
|
# verify the required parameter 'jericho_id' is set
|
555
|
-
|
676
|
+
if @api_client.config.client_side_validation && jericho_id.nil?
|
677
|
+
fail ArgumentError, "Missing the required parameter 'jericho_id' when calling TeamsApi.get_jericho_stats"
|
678
|
+
end
|
556
679
|
# verify the required parameter 'team_id' is set
|
557
|
-
|
680
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
681
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_jericho_stats"
|
682
|
+
end
|
558
683
|
# resource path
|
559
|
-
local_var_path = "/team/{teamId}/jericho/{jerichoId}/performance".sub('{
|
684
|
+
local_var_path = "/team/{teamId}/jericho/{jerichoId}/performance".sub('{' + 'jerichoId' + '}', jericho_id.to_s).sub('{' + 'teamId' + '}', team_id.to_s)
|
560
685
|
|
561
686
|
# query parameters
|
562
687
|
query_params = {}
|
563
688
|
|
564
689
|
# header parameters
|
565
690
|
header_params = {}
|
566
|
-
|
567
691
|
# HTTP header 'Accept' (if needed)
|
568
|
-
|
569
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
570
|
-
|
692
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
571
693
|
# HTTP header 'Content-Type'
|
572
|
-
|
573
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
694
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
574
695
|
|
575
696
|
# form parameters
|
576
697
|
form_params = {}
|
@@ -623,19 +744,25 @@ module BombBomb
|
|
623
744
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_paged_client_group_members ..."
|
624
745
|
end
|
625
746
|
# verify the required parameter 'team_id' is set
|
626
|
-
|
747
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
748
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_paged_client_group_members"
|
749
|
+
end
|
627
750
|
# verify the required parameter 'page_size' is set
|
628
|
-
|
751
|
+
if @api_client.config.client_side_validation && page_size.nil?
|
752
|
+
fail ArgumentError, "Missing the required parameter 'page_size' when calling TeamsApi.get_paged_client_group_members"
|
753
|
+
end
|
629
754
|
# verify the required parameter 'page' is set
|
630
|
-
|
631
|
-
|
755
|
+
if @api_client.config.client_side_validation && page.nil?
|
756
|
+
fail ArgumentError, "Missing the required parameter 'page' when calling TeamsApi.get_paged_client_group_members"
|
757
|
+
end
|
758
|
+
if @api_client.config.client_side_validation && opts[:'order_by'] && !['jobs', 'logins', 'videos', 'contacts', 'firstName', 'lastName', 'status', 'isAdmin'].include?(opts[:'order_by'])
|
632
759
|
fail ArgumentError, 'invalid value for "order_by", must be one of jobs, logins, videos, contacts, firstName, lastName, status, isAdmin'
|
633
760
|
end
|
634
|
-
if opts[:'order_direction'] && !['ASC', 'DESC'].include?(opts[:'order_direction'])
|
761
|
+
if @api_client.config.client_side_validation && opts[:'order_direction'] && !['ASC', 'DESC'].include?(opts[:'order_direction'])
|
635
762
|
fail ArgumentError, 'invalid value for "order_direction", must be one of ASC, DESC'
|
636
763
|
end
|
637
764
|
# resource path
|
638
|
-
local_var_path = "/team/{teamId}/members".sub('{
|
765
|
+
local_var_path = "/team/{teamId}/members".sub('{' + 'teamId' + '}', team_id.to_s)
|
639
766
|
|
640
767
|
# query parameters
|
641
768
|
query_params = {}
|
@@ -648,14 +775,10 @@ module BombBomb
|
|
648
775
|
|
649
776
|
# header parameters
|
650
777
|
header_params = {}
|
651
|
-
|
652
778
|
# HTTP header 'Accept' (if needed)
|
653
|
-
|
654
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
655
|
-
|
779
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
656
780
|
# HTTP header 'Content-Type'
|
657
|
-
|
658
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
781
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
659
782
|
|
660
783
|
# form parameters
|
661
784
|
form_params = {}
|
@@ -675,6 +798,116 @@ module BombBomb
|
|
675
798
|
return data, status_code, headers
|
676
799
|
end
|
677
800
|
|
801
|
+
# Jericho Monthly Stats
|
802
|
+
# Jericho Monthly Stats
|
803
|
+
# @param month The month whose Jericho sends you wish to see.
|
804
|
+
# @param year The year whose Jericho sends you wish to see.
|
805
|
+
# @param [Hash] opts the optional parameters
|
806
|
+
# @return [String]
|
807
|
+
def get_prompt_monthly_stats(month, year, opts = {})
|
808
|
+
data, _status_code, _headers = get_prompt_monthly_stats_with_http_info(month, year, opts)
|
809
|
+
return data
|
810
|
+
end
|
811
|
+
|
812
|
+
# Jericho Monthly Stats
|
813
|
+
# Jericho Monthly Stats
|
814
|
+
# @param month The month whose Jericho sends you wish to see.
|
815
|
+
# @param year The year whose Jericho sends you wish to see.
|
816
|
+
# @param [Hash] opts the optional parameters
|
817
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
818
|
+
def get_prompt_monthly_stats_with_http_info(month, year, opts = {})
|
819
|
+
if @api_client.config.debugging
|
820
|
+
@api_client.config.logger.debug "Calling API: TeamsApi.get_prompt_monthly_stats ..."
|
821
|
+
end
|
822
|
+
# verify the required parameter 'month' is set
|
823
|
+
if @api_client.config.client_side_validation && month.nil?
|
824
|
+
fail ArgumentError, "Missing the required parameter 'month' when calling TeamsApi.get_prompt_monthly_stats"
|
825
|
+
end
|
826
|
+
# verify the required parameter 'year' is set
|
827
|
+
if @api_client.config.client_side_validation && year.nil?
|
828
|
+
fail ArgumentError, "Missing the required parameter 'year' when calling TeamsApi.get_prompt_monthly_stats"
|
829
|
+
end
|
830
|
+
# resource path
|
831
|
+
local_var_path = "/team/{month}/{year}/monthStats".sub('{' + 'month' + '}', month.to_s).sub('{' + 'year' + '}', year.to_s)
|
832
|
+
|
833
|
+
# query parameters
|
834
|
+
query_params = {}
|
835
|
+
|
836
|
+
# header parameters
|
837
|
+
header_params = {}
|
838
|
+
# HTTP header 'Accept' (if needed)
|
839
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
840
|
+
# HTTP header 'Content-Type'
|
841
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
842
|
+
|
843
|
+
# form parameters
|
844
|
+
form_params = {}
|
845
|
+
|
846
|
+
# http body (model)
|
847
|
+
post_body = nil
|
848
|
+
auth_names = ['BBOAuth2']
|
849
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
850
|
+
:header_params => header_params,
|
851
|
+
:query_params => query_params,
|
852
|
+
:form_params => form_params,
|
853
|
+
:body => post_body,
|
854
|
+
:auth_names => auth_names,
|
855
|
+
:return_type => 'String')
|
856
|
+
if @api_client.config.debugging
|
857
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_prompt_monthly_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
858
|
+
end
|
859
|
+
return data, status_code, headers
|
860
|
+
end
|
861
|
+
|
862
|
+
# Get Prompt Overview
|
863
|
+
# Get Prompt Overview
|
864
|
+
# @param [Hash] opts the optional parameters
|
865
|
+
# @return [String]
|
866
|
+
def get_prompt_overview(opts = {})
|
867
|
+
data, _status_code, _headers = get_prompt_overview_with_http_info(opts)
|
868
|
+
return data
|
869
|
+
end
|
870
|
+
|
871
|
+
# Get Prompt Overview
|
872
|
+
# Get Prompt Overview
|
873
|
+
# @param [Hash] opts the optional parameters
|
874
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
875
|
+
def get_prompt_overview_with_http_info(opts = {})
|
876
|
+
if @api_client.config.debugging
|
877
|
+
@api_client.config.logger.debug "Calling API: TeamsApi.get_prompt_overview ..."
|
878
|
+
end
|
879
|
+
# resource path
|
880
|
+
local_var_path = "/team/promptOverview"
|
881
|
+
|
882
|
+
# query parameters
|
883
|
+
query_params = {}
|
884
|
+
|
885
|
+
# header parameters
|
886
|
+
header_params = {}
|
887
|
+
# HTTP header 'Accept' (if needed)
|
888
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
889
|
+
# HTTP header 'Content-Type'
|
890
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
891
|
+
|
892
|
+
# form parameters
|
893
|
+
form_params = {}
|
894
|
+
|
895
|
+
# http body (model)
|
896
|
+
post_body = nil
|
897
|
+
auth_names = ['BBOAuth2']
|
898
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
899
|
+
:header_params => header_params,
|
900
|
+
:query_params => query_params,
|
901
|
+
:form_params => form_params,
|
902
|
+
:body => post_body,
|
903
|
+
:auth_names => auth_names,
|
904
|
+
:return_type => 'String')
|
905
|
+
if @api_client.config.debugging
|
906
|
+
@api_client.config.logger.debug "API called: TeamsApi#get_prompt_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
907
|
+
end
|
908
|
+
return data, status_code, headers
|
909
|
+
end
|
910
|
+
|
678
911
|
# List Subteams
|
679
912
|
# Returns a collection of subteams for a parent team
|
680
913
|
# @param team_id The team id
|
@@ -695,30 +928,28 @@ module BombBomb
|
|
695
928
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_subteams ..."
|
696
929
|
end
|
697
930
|
# verify the required parameter 'team_id' is set
|
698
|
-
|
931
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
932
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.get_subteams"
|
933
|
+
end
|
699
934
|
# resource path
|
700
|
-
local_var_path = "/team/{teamId}/subteam".sub('{
|
935
|
+
local_var_path = "/team/{teamId}/subteam".sub('{' + 'teamId' + '}', team_id.to_s)
|
701
936
|
|
702
937
|
# query parameters
|
703
938
|
query_params = {}
|
704
939
|
|
705
940
|
# header parameters
|
706
941
|
header_params = {}
|
707
|
-
|
708
942
|
# HTTP header 'Accept' (if needed)
|
709
|
-
|
710
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
711
|
-
|
943
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
712
944
|
# HTTP header 'Content-Type'
|
713
|
-
|
714
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
945
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
715
946
|
|
716
947
|
# form parameters
|
717
948
|
form_params = {}
|
718
949
|
|
719
950
|
# http body (model)
|
720
951
|
post_body = nil
|
721
|
-
auth_names = [
|
952
|
+
auth_names = []
|
722
953
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
723
954
|
:header_params => header_params,
|
724
955
|
:query_params => query_params,
|
@@ -752,23 +983,21 @@ module BombBomb
|
|
752
983
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_team_prompt_aggregate_stats ..."
|
753
984
|
end
|
754
985
|
# verify the required parameter 'client_group_id' is set
|
755
|
-
|
986
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
987
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling TeamsApi.get_team_prompt_aggregate_stats"
|
988
|
+
end
|
756
989
|
# resource path
|
757
|
-
local_var_path = "/team/{clientGroupId}/campaign/stats".sub('{
|
990
|
+
local_var_path = "/team/{clientGroupId}/campaign/stats".sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
|
758
991
|
|
759
992
|
# query parameters
|
760
993
|
query_params = {}
|
761
994
|
|
762
995
|
# header parameters
|
763
996
|
header_params = {}
|
764
|
-
|
765
997
|
# HTTP header 'Accept' (if needed)
|
766
|
-
|
767
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
768
|
-
|
998
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
769
999
|
# HTTP header 'Content-Type'
|
770
|
-
|
771
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1000
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
772
1001
|
|
773
1002
|
# form parameters
|
774
1003
|
form_params = {}
|
@@ -793,8 +1022,7 @@ module BombBomb
|
|
793
1022
|
# @param client_group_id ID of the client group association
|
794
1023
|
# @param [Hash] opts the optional parameters
|
795
1024
|
# @option opts [String] :search_term The value to search for in prompt subject
|
796
|
-
# @option opts [String] :
|
797
|
-
# @option opts [String] :asc Ascending or not
|
1025
|
+
# @option opts [String] :current_page The current page
|
798
1026
|
# @return [nil]
|
799
1027
|
def get_team_prompt_campaigns(client_group_id, opts = {})
|
800
1028
|
get_team_prompt_campaigns_with_http_info(client_group_id, opts)
|
@@ -806,34 +1034,30 @@ module BombBomb
|
|
806
1034
|
# @param client_group_id ID of the client group association
|
807
1035
|
# @param [Hash] opts the optional parameters
|
808
1036
|
# @option opts [String] :search_term The value to search for in prompt subject
|
809
|
-
# @option opts [String] :
|
810
|
-
# @option opts [String] :asc Ascending or not
|
1037
|
+
# @option opts [String] :current_page The current page
|
811
1038
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
812
1039
|
def get_team_prompt_campaigns_with_http_info(client_group_id, opts = {})
|
813
1040
|
if @api_client.config.debugging
|
814
1041
|
@api_client.config.logger.debug "Calling API: TeamsApi.get_team_prompt_campaigns ..."
|
815
1042
|
end
|
816
1043
|
# verify the required parameter 'client_group_id' is set
|
817
|
-
|
1044
|
+
if @api_client.config.client_side_validation && client_group_id.nil?
|
1045
|
+
fail ArgumentError, "Missing the required parameter 'client_group_id' when calling TeamsApi.get_team_prompt_campaigns"
|
1046
|
+
end
|
818
1047
|
# resource path
|
819
|
-
local_var_path = "/team/{clientGroupId}/campaign".sub('{
|
1048
|
+
local_var_path = "/team/{clientGroupId}/campaign".sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
|
820
1049
|
|
821
1050
|
# query parameters
|
822
1051
|
query_params = {}
|
823
1052
|
query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
|
824
|
-
query_params[:'
|
825
|
-
query_params[:'asc'] = opts[:'asc'] if !opts[:'asc'].nil?
|
1053
|
+
query_params[:'currentPage'] = opts[:'current_page'] if !opts[:'current_page'].nil?
|
826
1054
|
|
827
1055
|
# header parameters
|
828
1056
|
header_params = {}
|
829
|
-
|
830
1057
|
# HTTP header 'Accept' (if needed)
|
831
|
-
|
832
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
833
|
-
|
1058
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
834
1059
|
# HTTP header 'Content-Type'
|
835
|
-
|
836
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1060
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
837
1061
|
|
838
1062
|
# form parameters
|
839
1063
|
form_params = {}
|
@@ -853,6 +1077,68 @@ module BombBomb
|
|
853
1077
|
return data, status_code, headers
|
854
1078
|
end
|
855
1079
|
|
1080
|
+
# Invite a list to join the admin's social prompt team
|
1081
|
+
# Invite to Social Prompt Team
|
1082
|
+
# @param team_id The team id
|
1083
|
+
# @param list_id List to invite to the social prompt team.
|
1084
|
+
# @param [Hash] opts the optional parameters
|
1085
|
+
# @return [nil]
|
1086
|
+
def invite_to_social_prompt_team(team_id, list_id, opts = {})
|
1087
|
+
invite_to_social_prompt_team_with_http_info(team_id, list_id, opts)
|
1088
|
+
return nil
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
# Invite a list to join the admin's social prompt team
|
1092
|
+
# Invite to Social Prompt Team
|
1093
|
+
# @param team_id The team id
|
1094
|
+
# @param list_id List to invite to the social prompt team.
|
1095
|
+
# @param [Hash] opts the optional parameters
|
1096
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1097
|
+
def invite_to_social_prompt_team_with_http_info(team_id, list_id, opts = {})
|
1098
|
+
if @api_client.config.debugging
|
1099
|
+
@api_client.config.logger.debug "Calling API: TeamsApi.invite_to_social_prompt_team ..."
|
1100
|
+
end
|
1101
|
+
# verify the required parameter 'team_id' is set
|
1102
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1103
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.invite_to_social_prompt_team"
|
1104
|
+
end
|
1105
|
+
# verify the required parameter 'list_id' is set
|
1106
|
+
if @api_client.config.client_side_validation && list_id.nil?
|
1107
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling TeamsApi.invite_to_social_prompt_team"
|
1108
|
+
end
|
1109
|
+
# resource path
|
1110
|
+
local_var_path = "/teams/prompt/invite"
|
1111
|
+
|
1112
|
+
# query parameters
|
1113
|
+
query_params = {}
|
1114
|
+
|
1115
|
+
# header parameters
|
1116
|
+
header_params = {}
|
1117
|
+
# HTTP header 'Accept' (if needed)
|
1118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1119
|
+
# HTTP header 'Content-Type'
|
1120
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1121
|
+
|
1122
|
+
# form parameters
|
1123
|
+
form_params = {}
|
1124
|
+
form_params["teamId"] = team_id
|
1125
|
+
form_params["listId"] = list_id
|
1126
|
+
|
1127
|
+
# http body (model)
|
1128
|
+
post_body = nil
|
1129
|
+
auth_names = ['BBOAuth2']
|
1130
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1131
|
+
:header_params => header_params,
|
1132
|
+
:query_params => query_params,
|
1133
|
+
:form_params => form_params,
|
1134
|
+
:body => post_body,
|
1135
|
+
:auth_names => auth_names)
|
1136
|
+
if @api_client.config.debugging
|
1137
|
+
@api_client.config.logger.debug "API called: TeamsApi#invite_to_social_prompt_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1138
|
+
end
|
1139
|
+
return data, status_code, headers
|
1140
|
+
end
|
1141
|
+
|
856
1142
|
# Creates a Jericho send.
|
857
1143
|
# Sends email content on behalf of members of a client group. There are two forms this send can take: Static Email, and Video Prompt. Static emails require only an emailId. Video Prompts build emails dynamically and require most of the other fields. You must be an administrator of a Team Account to use this method.
|
858
1144
|
# @param config JSON representing a Jericho configuration
|
@@ -875,25 +1161,25 @@ module BombBomb
|
|
875
1161
|
@api_client.config.logger.debug "Calling API: TeamsApi.queue_jericho_send ..."
|
876
1162
|
end
|
877
1163
|
# verify the required parameter 'config' is set
|
878
|
-
|
1164
|
+
if @api_client.config.client_side_validation && config.nil?
|
1165
|
+
fail ArgumentError, "Missing the required parameter 'config' when calling TeamsApi.queue_jericho_send"
|
1166
|
+
end
|
879
1167
|
# verify the required parameter 'team_id' is set
|
880
|
-
|
1168
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1169
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.queue_jericho_send"
|
1170
|
+
end
|
881
1171
|
# resource path
|
882
|
-
local_var_path = "/team/{teamId}/jericho".sub('{
|
1172
|
+
local_var_path = "/team/{teamId}/jericho".sub('{' + 'teamId' + '}', team_id.to_s)
|
883
1173
|
|
884
1174
|
# query parameters
|
885
1175
|
query_params = {}
|
886
1176
|
|
887
1177
|
# header parameters
|
888
1178
|
header_params = {}
|
889
|
-
|
890
1179
|
# HTTP header 'Accept' (if needed)
|
891
|
-
|
892
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
893
|
-
|
1180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
894
1181
|
# HTTP header 'Content-Type'
|
895
|
-
|
896
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1182
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
897
1183
|
|
898
1184
|
# form parameters
|
899
1185
|
form_params = {}
|
@@ -936,25 +1222,25 @@ module BombBomb
|
|
936
1222
|
@api_client.config.logger.debug "Calling API: TeamsApi.remove_member_from_team ..."
|
937
1223
|
end
|
938
1224
|
# verify the required parameter 'team_id' is set
|
939
|
-
|
1225
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1226
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.remove_member_from_team"
|
1227
|
+
end
|
940
1228
|
# verify the required parameter 'user_id' is set
|
941
|
-
|
1229
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
1230
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling TeamsApi.remove_member_from_team"
|
1231
|
+
end
|
942
1232
|
# resource path
|
943
|
-
local_var_path = "/team/{teamId}/member/{userId}".sub('{
|
1233
|
+
local_var_path = "/team/{teamId}/member/{userId}".sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
|
944
1234
|
|
945
1235
|
# query parameters
|
946
1236
|
query_params = {}
|
947
1237
|
|
948
1238
|
# header parameters
|
949
1239
|
header_params = {}
|
950
|
-
|
951
1240
|
# HTTP header 'Accept' (if needed)
|
952
|
-
|
953
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
954
|
-
|
1241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
955
1242
|
# HTTP header 'Content-Type'
|
956
|
-
|
957
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1243
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
958
1244
|
|
959
1245
|
# form parameters
|
960
1246
|
form_params = {}
|
@@ -997,25 +1283,25 @@ module BombBomb
|
|
997
1283
|
@api_client.config.logger.debug "Calling API: TeamsApi.resend_team_member_invitation ..."
|
998
1284
|
end
|
999
1285
|
# verify the required parameter 'team_id' is set
|
1000
|
-
|
1286
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1287
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.resend_team_member_invitation"
|
1288
|
+
end
|
1001
1289
|
# verify the required parameter 'member_user_id' is set
|
1002
|
-
|
1290
|
+
if @api_client.config.client_side_validation && member_user_id.nil?
|
1291
|
+
fail ArgumentError, "Missing the required parameter 'member_user_id' when calling TeamsApi.resend_team_member_invitation"
|
1292
|
+
end
|
1003
1293
|
# resource path
|
1004
|
-
local_var_path = "/team/{teamId}/{memberUserId}/rewelcome".sub('{
|
1294
|
+
local_var_path = "/team/{teamId}/{memberUserId}/rewelcome".sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'memberUserId' + '}', member_user_id.to_s)
|
1005
1295
|
|
1006
1296
|
# query parameters
|
1007
1297
|
query_params = {}
|
1008
1298
|
|
1009
1299
|
# header parameters
|
1010
1300
|
header_params = {}
|
1011
|
-
|
1012
1301
|
# HTTP header 'Accept' (if needed)
|
1013
|
-
|
1014
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1015
|
-
|
1302
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1016
1303
|
# HTTP header 'Content-Type'
|
1017
|
-
|
1018
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1304
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1019
1305
|
|
1020
1306
|
# form parameters
|
1021
1307
|
form_params = {}
|
@@ -1058,25 +1344,25 @@ module BombBomb
|
|
1058
1344
|
@api_client.config.logger.debug "Calling API: TeamsApi.update_jericho_prompt_send ..."
|
1059
1345
|
end
|
1060
1346
|
# verify the required parameter 'team_id' is set
|
1061
|
-
|
1347
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1348
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_jericho_prompt_send"
|
1349
|
+
end
|
1062
1350
|
# verify the required parameter 'jericho_id' is set
|
1063
|
-
|
1351
|
+
if @api_client.config.client_side_validation && jericho_id.nil?
|
1352
|
+
fail ArgumentError, "Missing the required parameter 'jericho_id' when calling TeamsApi.update_jericho_prompt_send"
|
1353
|
+
end
|
1064
1354
|
# resource path
|
1065
|
-
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{
|
1355
|
+
local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'jerichoId' + '}', jericho_id.to_s)
|
1066
1356
|
|
1067
1357
|
# query parameters
|
1068
1358
|
query_params = {}
|
1069
1359
|
|
1070
1360
|
# header parameters
|
1071
1361
|
header_params = {}
|
1072
|
-
|
1073
1362
|
# HTTP header 'Accept' (if needed)
|
1074
|
-
|
1075
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1076
|
-
|
1363
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1077
1364
|
# HTTP header 'Content-Type'
|
1078
|
-
|
1079
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1365
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1080
1366
|
|
1081
1367
|
# form parameters
|
1082
1368
|
form_params = {}
|
@@ -1102,6 +1388,7 @@ module BombBomb
|
|
1102
1388
|
# @param [Hash] opts the optional parameters
|
1103
1389
|
# @option opts [String] :name The name of the team
|
1104
1390
|
# @option opts [String] :state The status of the login permissions
|
1391
|
+
# @option opts [BOOLEAN] :subteams_can_add_members Updates subteam member adding setting on group
|
1105
1392
|
# @return [TeamPublicRepresentation]
|
1106
1393
|
def update_team(team_id, opts = {})
|
1107
1394
|
data, _status_code, _headers = update_team_with_http_info(team_id, opts)
|
@@ -1114,34 +1401,34 @@ module BombBomb
|
|
1114
1401
|
# @param [Hash] opts the optional parameters
|
1115
1402
|
# @option opts [String] :name The name of the team
|
1116
1403
|
# @option opts [String] :state The status of the login permissions
|
1404
|
+
# @option opts [BOOLEAN] :subteams_can_add_members Updates subteam member adding setting on group
|
1117
1405
|
# @return [Array<(TeamPublicRepresentation, Fixnum, Hash)>] TeamPublicRepresentation data, response status code and response headers
|
1118
1406
|
def update_team_with_http_info(team_id, opts = {})
|
1119
1407
|
if @api_client.config.debugging
|
1120
1408
|
@api_client.config.logger.debug "Calling API: TeamsApi.update_team ..."
|
1121
1409
|
end
|
1122
1410
|
# verify the required parameter 'team_id' is set
|
1123
|
-
|
1411
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1412
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_team"
|
1413
|
+
end
|
1124
1414
|
# resource path
|
1125
|
-
local_var_path = "/team/{teamId}".sub('{
|
1415
|
+
local_var_path = "/team/{teamId}".sub('{' + 'teamId' + '}', team_id.to_s)
|
1126
1416
|
|
1127
1417
|
# query parameters
|
1128
1418
|
query_params = {}
|
1129
1419
|
|
1130
1420
|
# header parameters
|
1131
1421
|
header_params = {}
|
1132
|
-
|
1133
1422
|
# HTTP header 'Accept' (if needed)
|
1134
|
-
|
1135
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1136
|
-
|
1423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1137
1424
|
# HTTP header 'Content-Type'
|
1138
|
-
|
1139
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1425
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1140
1426
|
|
1141
1427
|
# form parameters
|
1142
1428
|
form_params = {}
|
1143
1429
|
form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
|
1144
1430
|
form_params["state"] = opts[:'state'] if !opts[:'state'].nil?
|
1431
|
+
form_params["subteamsCanAddMembers"] = opts[:'subteams_can_add_members'] if !opts[:'subteams_can_add_members'].nil?
|
1145
1432
|
|
1146
1433
|
# http body (model)
|
1147
1434
|
post_body = nil
|
@@ -1165,6 +1452,7 @@ module BombBomb
|
|
1165
1452
|
# @param user_id The user id of the member being added to the team.
|
1166
1453
|
# @param admin Set if the user is an admin of this team.
|
1167
1454
|
# @param [Hash] opts the optional parameters
|
1455
|
+
# @option opts [String] :permission_suite_id Set if the user is an admin of this team.
|
1168
1456
|
# @return [nil]
|
1169
1457
|
def update_team_member(team_id, user_id, admin, opts = {})
|
1170
1458
|
update_team_member_with_http_info(team_id, user_id, admin, opts)
|
@@ -1177,38 +1465,42 @@ module BombBomb
|
|
1177
1465
|
# @param user_id The user id of the member being added to the team.
|
1178
1466
|
# @param admin Set if the user is an admin of this team.
|
1179
1467
|
# @param [Hash] opts the optional parameters
|
1468
|
+
# @option opts [String] :permission_suite_id Set if the user is an admin of this team.
|
1180
1469
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1181
1470
|
def update_team_member_with_http_info(team_id, user_id, admin, opts = {})
|
1182
1471
|
if @api_client.config.debugging
|
1183
1472
|
@api_client.config.logger.debug "Calling API: TeamsApi.update_team_member ..."
|
1184
1473
|
end
|
1185
1474
|
# verify the required parameter 'team_id' is set
|
1186
|
-
|
1475
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
1476
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_team_member"
|
1477
|
+
end
|
1187
1478
|
# verify the required parameter 'user_id' is set
|
1188
|
-
|
1479
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
1480
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling TeamsApi.update_team_member"
|
1481
|
+
end
|
1189
1482
|
# verify the required parameter 'admin' is set
|
1190
|
-
|
1483
|
+
if @api_client.config.client_side_validation && admin.nil?
|
1484
|
+
fail ArgumentError, "Missing the required parameter 'admin' when calling TeamsApi.update_team_member"
|
1485
|
+
end
|
1191
1486
|
# resource path
|
1192
|
-
local_var_path = "/team/{teamId}/member".sub('{
|
1487
|
+
local_var_path = "/team/{teamId}/member".sub('{' + 'teamId' + '}', team_id.to_s)
|
1193
1488
|
|
1194
1489
|
# query parameters
|
1195
1490
|
query_params = {}
|
1196
1491
|
|
1197
1492
|
# header parameters
|
1198
1493
|
header_params = {}
|
1199
|
-
|
1200
1494
|
# HTTP header 'Accept' (if needed)
|
1201
|
-
|
1202
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
1203
|
-
|
1495
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1204
1496
|
# HTTP header 'Content-Type'
|
1205
|
-
|
1206
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
1497
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1207
1498
|
|
1208
1499
|
# form parameters
|
1209
1500
|
form_params = {}
|
1210
1501
|
form_params["userId"] = user_id
|
1211
1502
|
form_params["admin"] = admin
|
1503
|
+
form_params["permissionSuiteId"] = opts[:'permission_suite_id'] if !opts[:'permission_suite_id'].nil?
|
1212
1504
|
|
1213
1505
|
# http body (model)
|
1214
1506
|
post_body = nil
|