bombbomb 2.0.0 → 2.0.831
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/Gemfile +7 -0
- data/README.md +16 -9
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/JerichoConfiguration.md +1 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptsApi.md +53 -1
- data/docs/TeamsApi.md +103 -5
- data/docs/UsersApi.md +100 -0
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +6 -14
- data/lib/bombbomb/api/accounts_api.rb +41 -68
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +47 -76
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +53 -96
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +8 -21
- data/lib/bombbomb/api/integrations_api.rb +26 -51
- 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 +177 -139
- data/lib/bombbomb/api/socials_api.rb +80 -111
- data/lib/bombbomb/api/teams_api.rb +294 -209
- 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/jericho_configuration.rb +24 -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 +6 -17
- 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 +6 -17
- 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/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
- metadata +31 -19
- data/spec/models/prompt_bot_bot_spec.rb +0 -113
data/docs/UsersApi.md
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# BombBomb::UsersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.bombbomb.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_client_contact_information**](UsersApi.md#get_client_contact_information) | **GET** /clients/contact/information | Get client contact information.
|
8
|
+
[**get_user_profile_info**](UsersApi.md#get_user_profile_info) | **GET** /users/profile/information | Get user profile information.
|
9
|
+
|
10
|
+
|
11
|
+
# **get_client_contact_information**
|
12
|
+
> get_client_contact_information
|
13
|
+
|
14
|
+
Get client contact information.
|
15
|
+
|
16
|
+
Get the client contact information of the user's account.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'bombbomb'
|
22
|
+
# setup authorization
|
23
|
+
BombBomb.configure do |config|
|
24
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
25
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = BombBomb::UsersApi.new
|
29
|
+
|
30
|
+
begin
|
31
|
+
#Get client contact information.
|
32
|
+
api_instance.get_client_contact_information
|
33
|
+
rescue BombBomb::ApiError => e
|
34
|
+
puts "Exception when calling UsersApi->get_client_contact_information: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
This endpoint does not need any parameter.
|
40
|
+
|
41
|
+
### Return type
|
42
|
+
|
43
|
+
nil (empty response body)
|
44
|
+
|
45
|
+
### Authorization
|
46
|
+
|
47
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
48
|
+
|
49
|
+
### HTTP request headers
|
50
|
+
|
51
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
52
|
+
- **Accept**: application/json
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
# **get_user_profile_info**
|
57
|
+
> get_user_profile_info
|
58
|
+
|
59
|
+
Get user profile information.
|
60
|
+
|
61
|
+
Get the users profile information.
|
62
|
+
|
63
|
+
### Example
|
64
|
+
```ruby
|
65
|
+
# load the gem
|
66
|
+
require 'bombbomb'
|
67
|
+
# setup authorization
|
68
|
+
BombBomb.configure do |config|
|
69
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
70
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
71
|
+
end
|
72
|
+
|
73
|
+
api_instance = BombBomb::UsersApi.new
|
74
|
+
|
75
|
+
begin
|
76
|
+
#Get user profile information.
|
77
|
+
api_instance.get_user_profile_info
|
78
|
+
rescue BombBomb::ApiError => e
|
79
|
+
puts "Exception when calling UsersApi->get_user_profile_info: #{e}"
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
### Parameters
|
84
|
+
This endpoint does not need any parameter.
|
85
|
+
|
86
|
+
### Return type
|
87
|
+
|
88
|
+
nil (empty response body)
|
89
|
+
|
90
|
+
### Authorization
|
91
|
+
|
92
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
93
|
+
|
94
|
+
### HTTP request headers
|
95
|
+
|
96
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
97
|
+
- **Accept**: application/json
|
98
|
+
|
99
|
+
|
100
|
+
|
data/git_push.sh
CHANGED
@@ -2,18 +2,6 @@
|
|
2
2
|
#
|
3
3
|
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
4
|
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
5
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
18
6
|
#
|
19
7
|
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
@@ -51,7 +39,7 @@ git_remote=`git remote`
|
|
51
39
|
if [ "$git_remote" = "" ]; then # git remote not defined
|
52
40
|
|
53
41
|
if [ "$GIT_TOKEN" = "" ]; then
|
54
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
55
43
|
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
56
44
|
else
|
57
45
|
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
data/lib/bombbomb.rb
CHANGED
@@ -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
|
|
@@ -29,16 +18,18 @@ require 'bombbomb/configuration'
|
|
29
18
|
|
30
19
|
# Models
|
31
20
|
require 'bombbomb/models/bb_web_hook'
|
21
|
+
require 'bombbomb/models/client_group_asset_meta_data'
|
32
22
|
require 'bombbomb/models/curriculum'
|
33
23
|
require 'bombbomb/models/curriculum_user_progress'
|
34
24
|
require 'bombbomb/models/curriculum_with_progress'
|
35
25
|
require 'bombbomb/models/hosted_doc'
|
36
26
|
require 'bombbomb/models/inline_response_200'
|
37
|
-
require 'bombbomb/models/inline_response_200_items'
|
38
27
|
require 'bombbomb/models/jericho_configuration'
|
39
28
|
require 'bombbomb/models/jericho_performance'
|
40
29
|
require 'bombbomb/models/o_auth_client'
|
41
30
|
require 'bombbomb/models/prompt_bot'
|
31
|
+
require 'bombbomb/models/prompt_monthly_performance'
|
32
|
+
require 'bombbomb/models/prompt_overview'
|
42
33
|
require 'bombbomb/models/prompt_social_prompt'
|
43
34
|
require 'bombbomb/models/sign_upload_request'
|
44
35
|
require 'bombbomb/models/sign_upload_response'
|
@@ -63,6 +54,7 @@ require 'bombbomb/api/orders_api'
|
|
63
54
|
require 'bombbomb/api/prompts_api'
|
64
55
|
require 'bombbomb/api/socials_api'
|
65
56
|
require 'bombbomb/api/teams_api'
|
57
|
+
require 'bombbomb/api/users_api'
|
66
58
|
require 'bombbomb/api/utilities_api'
|
67
59
|
require 'bombbomb/api/videos_api'
|
68
60
|
require 'bombbomb/api/webhooks_api'
|
@@ -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
|
|
@@ -49,21 +38,17 @@ module BombBomb
|
|
49
38
|
@api_client.config.logger.debug "Calling API: AccountsApi.account_details ..."
|
50
39
|
end
|
51
40
|
# resource path
|
52
|
-
local_var_path = "/accounts"
|
41
|
+
local_var_path = "/accounts"
|
53
42
|
|
54
43
|
# query parameters
|
55
44
|
query_params = {}
|
56
45
|
|
57
46
|
# header parameters
|
58
47
|
header_params = {}
|
59
|
-
|
60
48
|
# HTTP header 'Accept' (if needed)
|
61
|
-
|
62
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
63
|
-
|
49
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
50
|
# HTTP header 'Content-Type'
|
65
|
-
|
66
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
51
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
67
52
|
|
68
53
|
# form parameters
|
69
54
|
form_params = {}
|
@@ -125,33 +110,41 @@ module BombBomb
|
|
125
110
|
@api_client.config.logger.debug "Calling API: AccountsApi.create_account ..."
|
126
111
|
end
|
127
112
|
# verify the required parameter 'team_id' is set
|
128
|
-
|
113
|
+
if @api_client.config.client_side_validation && team_id.nil?
|
114
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling AccountsApi.create_account"
|
115
|
+
end
|
129
116
|
# verify the required parameter 'first_name' is set
|
130
|
-
|
117
|
+
if @api_client.config.client_side_validation && first_name.nil?
|
118
|
+
fail ArgumentError, "Missing the required parameter 'first_name' when calling AccountsApi.create_account"
|
119
|
+
end
|
131
120
|
# verify the required parameter 'last_name' is set
|
132
|
-
|
121
|
+
if @api_client.config.client_side_validation && last_name.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'last_name' when calling AccountsApi.create_account"
|
123
|
+
end
|
133
124
|
# verify the required parameter 'email_address' is set
|
134
|
-
|
125
|
+
if @api_client.config.client_side_validation && email_address.nil?
|
126
|
+
fail ArgumentError, "Missing the required parameter 'email_address' when calling AccountsApi.create_account"
|
127
|
+
end
|
135
128
|
# verify the required parameter 'company_name' is set
|
136
|
-
|
129
|
+
if @api_client.config.client_side_validation && company_name.nil?
|
130
|
+
fail ArgumentError, "Missing the required parameter 'company_name' when calling AccountsApi.create_account"
|
131
|
+
end
|
137
132
|
# verify the required parameter 'phone' is set
|
138
|
-
|
133
|
+
if @api_client.config.client_side_validation && phone.nil?
|
134
|
+
fail ArgumentError, "Missing the required parameter 'phone' when calling AccountsApi.create_account"
|
135
|
+
end
|
139
136
|
# resource path
|
140
|
-
local_var_path = "/accounts"
|
137
|
+
local_var_path = "/accounts"
|
141
138
|
|
142
139
|
# query parameters
|
143
140
|
query_params = {}
|
144
141
|
|
145
142
|
# header parameters
|
146
143
|
header_params = {}
|
147
|
-
|
148
144
|
# HTTP header 'Accept' (if needed)
|
149
|
-
|
150
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
151
|
-
|
145
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
152
146
|
# HTTP header 'Content-Type'
|
153
|
-
|
154
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
147
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
155
148
|
|
156
149
|
# form parameters
|
157
150
|
form_params = {}
|
@@ -208,7 +201,7 @@ module BombBomb
|
|
208
201
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_client_statistics ..."
|
209
202
|
end
|
210
203
|
# resource path
|
211
|
-
local_var_path = "/accounts/stats"
|
204
|
+
local_var_path = "/accounts/stats"
|
212
205
|
|
213
206
|
# query parameters
|
214
207
|
query_params = {}
|
@@ -218,14 +211,10 @@ module BombBomb
|
|
218
211
|
|
219
212
|
# header parameters
|
220
213
|
header_params = {}
|
221
|
-
|
222
214
|
# HTTP header 'Accept' (if needed)
|
223
|
-
|
224
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
225
|
-
|
215
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
226
216
|
# HTTP header 'Content-Type'
|
227
|
-
|
228
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
217
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
229
218
|
|
230
219
|
# form parameters
|
231
220
|
form_params = {}
|
@@ -263,21 +252,17 @@ module BombBomb
|
|
263
252
|
@api_client.config.logger.debug "Calling API: AccountsApi.get_user_country ..."
|
264
253
|
end
|
265
254
|
# resource path
|
266
|
-
local_var_path = "/accounts/{clientId}/country"
|
255
|
+
local_var_path = "/accounts/{clientId}/country"
|
267
256
|
|
268
257
|
# query parameters
|
269
258
|
query_params = {}
|
270
259
|
|
271
260
|
# header parameters
|
272
261
|
header_params = {}
|
273
|
-
|
274
262
|
# HTTP header 'Accept' (if needed)
|
275
|
-
|
276
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
277
|
-
|
263
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
278
264
|
# HTTP header 'Content-Type'
|
279
|
-
|
280
|
-
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'])
|
281
266
|
|
282
267
|
# form parameters
|
283
268
|
form_params = {}
|
@@ -315,21 +300,17 @@ module BombBomb
|
|
315
300
|
@api_client.config.logger.debug "Calling API: AccountsApi.reset_api_key ..."
|
316
301
|
end
|
317
302
|
# resource path
|
318
|
-
local_var_path = "/accounts/apikey"
|
303
|
+
local_var_path = "/accounts/apikey"
|
319
304
|
|
320
305
|
# query parameters
|
321
306
|
query_params = {}
|
322
307
|
|
323
308
|
# header parameters
|
324
309
|
header_params = {}
|
325
|
-
|
326
310
|
# HTTP header 'Accept' (if needed)
|
327
|
-
|
328
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
329
|
-
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
330
312
|
# HTTP header 'Content-Type'
|
331
|
-
|
332
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
313
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
333
314
|
|
334
315
|
# form parameters
|
335
316
|
form_params = {}
|
@@ -367,21 +348,17 @@ module BombBomb
|
|
367
348
|
@api_client.config.logger.debug "Calling API: AccountsApi.subscription_purchase_allowed ..."
|
368
349
|
end
|
369
350
|
# resource path
|
370
|
-
local_var_path = "/accounts/purchaseable"
|
351
|
+
local_var_path = "/accounts/purchaseable"
|
371
352
|
|
372
353
|
# query parameters
|
373
354
|
query_params = {}
|
374
355
|
|
375
356
|
# header parameters
|
376
357
|
header_params = {}
|
377
|
-
|
378
358
|
# HTTP header 'Accept' (if needed)
|
379
|
-
|
380
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
381
|
-
|
359
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
382
360
|
# HTTP header 'Content-Type'
|
383
|
-
|
384
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
361
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
385
362
|
|
386
363
|
# form parameters
|
387
364
|
form_params = {}
|
@@ -421,21 +398,17 @@ module BombBomb
|
|
421
398
|
@api_client.config.logger.debug "Calling API: AccountsApi.update_profile_data ..."
|
422
399
|
end
|
423
400
|
# resource path
|
424
|
-
local_var_path = "/account/profile/"
|
401
|
+
local_var_path = "/account/profile/"
|
425
402
|
|
426
403
|
# query parameters
|
427
404
|
query_params = {}
|
428
405
|
|
429
406
|
# header parameters
|
430
407
|
header_params = {}
|
431
|
-
|
432
408
|
# HTTP header 'Accept' (if needed)
|
433
|
-
|
434
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
435
|
-
|
409
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
436
410
|
# HTTP header 'Content-Type'
|
437
|
-
|
438
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
411
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
439
412
|
|
440
413
|
# form parameters
|
441
414
|
form_params = {}
|
@@ -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
|
|
@@ -53,25 +42,25 @@ module BombBomb
|
|
53
42
|
@api_client.config.logger.debug "Calling API: AutomationsApi.get_drip_drop_stats ..."
|
54
43
|
end
|
55
44
|
# verify the required parameter 'drip_id' is set
|
56
|
-
|
45
|
+
if @api_client.config.client_side_validation && drip_id.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'drip_id' when calling AutomationsApi.get_drip_drop_stats"
|
47
|
+
end
|
57
48
|
# verify the required parameter 'drip_drop_id' is set
|
58
|
-
|
49
|
+
if @api_client.config.client_side_validation && drip_drop_id.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'drip_drop_id' when calling AutomationsApi.get_drip_drop_stats"
|
51
|
+
end
|
59
52
|
# resource path
|
60
|
-
local_var_path = "/automation/{dripId}/dripdrop/{dripDropId}/stats".sub('{
|
53
|
+
local_var_path = "/automation/{dripId}/dripdrop/{dripDropId}/stats".sub('{' + 'dripId' + '}', drip_id.to_s).sub('{' + 'dripDropId' + '}', drip_drop_id.to_s)
|
61
54
|
|
62
55
|
# query parameters
|
63
56
|
query_params = {}
|
64
57
|
|
65
58
|
# header parameters
|
66
59
|
header_params = {}
|
67
|
-
|
68
60
|
# HTTP header 'Accept' (if needed)
|
69
|
-
|
70
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
71
|
-
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
72
62
|
# HTTP header 'Content-Type'
|
73
|
-
|
74
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
75
64
|
|
76
65
|
# form parameters
|
77
66
|
form_params = {}
|
@@ -111,23 +100,21 @@ module BombBomb
|
|
111
100
|
@api_client.config.logger.debug "Calling API: AutomationsApi.get_drip_stats ..."
|
112
101
|
end
|
113
102
|
# verify the required parameter 'id' is set
|
114
|
-
|
103
|
+
if @api_client.config.client_side_validation && id.nil?
|
104
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AutomationsApi.get_drip_stats"
|
105
|
+
end
|
115
106
|
# resource path
|
116
|
-
local_var_path = "/automation/{id}/stats".sub('{
|
107
|
+
local_var_path = "/automation/{id}/stats".sub('{' + 'id' + '}', id.to_s)
|
117
108
|
|
118
109
|
# query parameters
|
119
110
|
query_params = {}
|
120
111
|
|
121
112
|
# header parameters
|
122
113
|
header_params = {}
|
123
|
-
|
124
114
|
# HTTP header 'Accept' (if needed)
|
125
|
-
|
126
|
-
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
127
|
-
|
115
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
116
|
# HTTP header 'Content-Type'
|
129
|
-
|
130
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
117
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
131
118
|
|
132
119
|
# form parameters
|
133
120
|
form_params = {}
|
@@ -146,5 +133,59 @@ module BombBomb
|
|
146
133
|
end
|
147
134
|
return data, status_code, headers
|
148
135
|
end
|
136
|
+
|
137
|
+
# Get the number of pending scheduling calculations
|
138
|
+
# Get the number of pending scheduling calculations
|
139
|
+
# @param id The id of the automation
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @return [nil]
|
142
|
+
def get_scheduling_status(id, opts = {})
|
143
|
+
get_scheduling_status_with_http_info(id, opts)
|
144
|
+
return nil
|
145
|
+
end
|
146
|
+
|
147
|
+
# Get the number of pending scheduling calculations
|
148
|
+
# Get the number of pending scheduling calculations
|
149
|
+
# @param id The id of the automation
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
152
|
+
def get_scheduling_status_with_http_info(id, opts = {})
|
153
|
+
if @api_client.config.debugging
|
154
|
+
@api_client.config.logger.debug "Calling API: AutomationsApi.get_scheduling_status ..."
|
155
|
+
end
|
156
|
+
# verify the required parameter 'id' is set
|
157
|
+
if @api_client.config.client_side_validation && id.nil?
|
158
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AutomationsApi.get_scheduling_status"
|
159
|
+
end
|
160
|
+
# resource path
|
161
|
+
local_var_path = "/automation/{id}/scheduling/status".sub('{' + 'id' + '}', id.to_s)
|
162
|
+
|
163
|
+
# query parameters
|
164
|
+
query_params = {}
|
165
|
+
|
166
|
+
# header parameters
|
167
|
+
header_params = {}
|
168
|
+
# HTTP header 'Accept' (if needed)
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
170
|
+
# HTTP header 'Content-Type'
|
171
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
172
|
+
|
173
|
+
# form parameters
|
174
|
+
form_params = {}
|
175
|
+
|
176
|
+
# http body (model)
|
177
|
+
post_body = nil
|
178
|
+
auth_names = ['BBOAuth2']
|
179
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
180
|
+
:header_params => header_params,
|
181
|
+
:query_params => query_params,
|
182
|
+
:form_params => form_params,
|
183
|
+
:body => post_body,
|
184
|
+
:auth_names => auth_names)
|
185
|
+
if @api_client.config.debugging
|
186
|
+
@api_client.config.logger.debug "API called: AutomationsApi#get_scheduling_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
187
|
+
end
|
188
|
+
return data, status_code, headers
|
189
|
+
end
|
149
190
|
end
|
150
191
|
end
|