bombbomb 2.0.831 → 2.0.20679
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +31 -147
- data/Rakefile +3 -8
- data/bombbomb.gemspec +17 -8
- data/docs/InlineResponse200.md +1 -1
- data/docs/JerichoConfiguration.md +1 -7
- data/docs/JerichoPerformance.md +0 -4
- data/docs/PromptsApi.md +6 -712
- data/docs/TeamsApi.md +62 -1144
- data/docs/UtilitiesApi.md +4 -4
- data/docs/VideoEmailPrompt.md +10 -24
- data/docs/WebhooksApi.md +4 -45
- data/git_push.sh +13 -1
- data/lib/bombbomb.rb +14 -30
- data/lib/bombbomb/api/prompts_api.rb +42 -833
- data/lib/bombbomb/api/teams_api.rb +157 -1331
- data/lib/bombbomb/api/utilities_api.rb +44 -23
- data/lib/bombbomb/api/webhooks_api.rb +43 -68
- data/lib/bombbomb/api_client.rb +45 -55
- data/lib/bombbomb/api_error.rb +18 -9
- data/lib/bombbomb/configuration.rb +13 -8
- data/lib/bombbomb/models/bb_web_hook.rb +17 -6
- data/lib/bombbomb/models/inline_response_200.rb +18 -7
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +22 -75
- data/lib/bombbomb/models/jericho_performance.rb +21 -50
- data/lib/bombbomb/models/o_auth_client.rb +17 -6
- data/lib/bombbomb/models/string.rb +17 -6
- data/lib/bombbomb/models/video_email_prompt.rb +90 -214
- data/lib/bombbomb/version.rb +14 -3
- data/spec/models/{team_public_representation_spec.rb → inline_response_200_items_spec.rb} +14 -8
- metadata +56 -168
- data/Gemfile +0 -7
- data/docs/AccountsApi.md +0 -384
- data/docs/AutomationsApi.md +0 -167
- data/docs/ClientGroupAssetMetaData.md +0 -11
- data/docs/ContactsApi.md +0 -436
- data/docs/Curriculum.md +0 -15
- data/docs/CurriculumApi.md +0 -109
- data/docs/CurriculumUserProgress.md +0 -12
- data/docs/CurriculumWithProgress.md +0 -15
- data/docs/EmailsApi.md +0 -633
- data/docs/FilesApi.md +0 -272
- data/docs/FormsApi.md +0 -60
- data/docs/HostedDoc.md +0 -13
- data/docs/IntegrationsApi.md +0 -285
- data/docs/ListsApi.md +0 -265
- data/docs/OrdersApi.md +0 -60
- data/docs/PromptBot.md +0 -22
- data/docs/PromptBotBot.md +0 -18
- data/docs/PromptMonthlyPerformance.md +0 -11
- data/docs/PromptOverview.md +0 -11
- data/docs/PromptSocialPrompt.md +0 -20
- data/docs/SignUploadRequest.md +0 -9
- data/docs/SignUploadResponse.md +0 -9
- data/docs/SocialsApi.md +0 -653
- data/docs/TeamPublicRepresentation.md +0 -10
- data/docs/UsersApi.md +0 -100
- data/docs/VideoEncodingStatusResponse.md +0 -10
- data/docs/VideoPublicRepresentation.md +0 -18
- data/docs/VideoRecorderMethodResponse.md +0 -15
- data/docs/VideosApi.md +0 -287
- data/lib/bombbomb/api/accounts_api.rb +0 -432
- data/lib/bombbomb/api/automations_api.rb +0 -191
- data/lib/bombbomb/api/contacts_api.rb +0 -470
- data/lib/bombbomb/api/curriculum_api.rb +0 -124
- data/lib/bombbomb/api/emails_api.rb +0 -673
- data/lib/bombbomb/api/files_api.rb +0 -302
- data/lib/bombbomb/api/forms_api.rb +0 -77
- data/lib/bombbomb/api/integrations_api.rb +0 -308
- data/lib/bombbomb/api/lists_api.rb +0 -295
- data/lib/bombbomb/api/orders_api.rb +0 -78
- data/lib/bombbomb/api/socials_api.rb +0 -714
- data/lib/bombbomb/api/users_api.rb +0 -119
- data/lib/bombbomb/api/videos_api.rb +0 -326
- data/lib/bombbomb/models/client_group_asset_meta_data.rb +0 -215
- data/lib/bombbomb/models/curriculum.rb +0 -261
- data/lib/bombbomb/models/curriculum_user_progress.rb +0 -229
- data/lib/bombbomb/models/curriculum_with_progress.rb +0 -261
- data/lib/bombbomb/models/hosted_doc.rb +0 -239
- data/lib/bombbomb/models/prompt_bot.rb +0 -329
- data/lib/bombbomb/models/prompt_bot_bot.rb +0 -300
- data/lib/bombbomb/models/prompt_monthly_performance.rb +0 -219
- data/lib/bombbomb/models/prompt_overview.rb +0 -219
- data/lib/bombbomb/models/prompt_social_prompt.rb +0 -311
- data/lib/bombbomb/models/sign_upload_request.rb +0 -199
- data/lib/bombbomb/models/sign_upload_response.rb +0 -199
- data/lib/bombbomb/models/team_public_representation.rb +0 -209
- data/lib/bombbomb/models/video_encoding_status_response.rb +0 -209
- data/lib/bombbomb/models/video_public_representation.rb +0 -291
- data/lib/bombbomb/models/video_recorder_method_response.rb +0 -259
- data/spec/api/accounts_api_spec.rb +0 -96
- data/spec/api/automations_api_spec.rb +0 -71
- data/spec/api/contacts_api_spec.rb +0 -58
- data/spec/api/curriculum_api_spec.rb +0 -69
- data/spec/api/emails_api_spec.rb +0 -104
- data/spec/api/files_api_spec.rb +0 -58
- data/spec/api/forms_api_spec.rb +0 -58
- data/spec/api/integrations_api_spec.rb +0 -58
- data/spec/api/lists_api_spec.rb +0 -83
- data/spec/api/orders_api_spec.rb +0 -58
- data/spec/api/socials_api_spec.rb +0 -135
- data/spec/api/users_api_spec.rb +0 -57
- data/spec/api/videos_api_spec.rb +0 -86
- data/spec/models/client_group_asset_meta_data_spec.rb +0 -60
- data/spec/models/curriculum_spec.rb +0 -95
- data/spec/models/curriculum_user_progress_spec.rb +0 -77
- data/spec/models/curriculum_with_progress_spec.rb +0 -95
- data/spec/models/hosted_doc_spec.rb +0 -83
- data/spec/models/prompt_bot_spec.rb +0 -137
- data/spec/models/prompt_monthly_performance_spec.rb +0 -60
- data/spec/models/prompt_overview_spec.rb +0 -60
- data/spec/models/prompt_social_prompt_spec.rb +0 -125
- data/spec/models/sign_upload_request_spec.rb +0 -59
- data/spec/models/sign_upload_response_spec.rb +0 -59
- data/spec/models/video_encoding_status_response_spec.rb +0 -65
- data/spec/models/video_public_representation_spec.rb +0 -113
- data/spec/models/video_recorder_method_response_spec.rb +0 -95
@@ -1,432 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#BombBomb
|
3
|
-
|
4
|
-
#We make it easy to build relationships using simple videos.
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.0.831
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require "uri"
|
14
|
-
|
15
|
-
module BombBomb
|
16
|
-
class AccountsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
|
23
|
-
# Get account details.
|
24
|
-
# Get the details of the user's account.
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [nil]
|
27
|
-
def account_details(opts = {})
|
28
|
-
account_details_with_http_info(opts)
|
29
|
-
return nil
|
30
|
-
end
|
31
|
-
|
32
|
-
# Get account details.
|
33
|
-
# Get the details of the user's account.
|
34
|
-
# @param [Hash] opts the optional parameters
|
35
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
36
|
-
def account_details_with_http_info(opts = {})
|
37
|
-
if @api_client.config.debugging
|
38
|
-
@api_client.config.logger.debug "Calling API: AccountsApi.account_details ..."
|
39
|
-
end
|
40
|
-
# resource path
|
41
|
-
local_var_path = "/accounts"
|
42
|
-
|
43
|
-
# query parameters
|
44
|
-
query_params = {}
|
45
|
-
|
46
|
-
# header parameters
|
47
|
-
header_params = {}
|
48
|
-
# HTTP header 'Accept' (if needed)
|
49
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
50
|
-
# HTTP header 'Content-Type'
|
51
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
52
|
-
|
53
|
-
# form parameters
|
54
|
-
form_params = {}
|
55
|
-
|
56
|
-
# http body (model)
|
57
|
-
post_body = nil
|
58
|
-
auth_names = ['BBOAuth2']
|
59
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
60
|
-
:header_params => header_params,
|
61
|
-
:query_params => query_params,
|
62
|
-
:form_params => form_params,
|
63
|
-
:body => post_body,
|
64
|
-
:auth_names => auth_names)
|
65
|
-
if @api_client.config.debugging
|
66
|
-
@api_client.config.logger.debug "API called: AccountsApi#account_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
67
|
-
end
|
68
|
-
return data, status_code, headers
|
69
|
-
end
|
70
|
-
|
71
|
-
# Create Account
|
72
|
-
# Creates a new BombBomb account. This method is currently only available to paid seat admins.
|
73
|
-
# @param team_id The team id
|
74
|
-
# @param first_name First name of the user.
|
75
|
-
# @param last_name Last name of the user.
|
76
|
-
# @param email_address Email address of the user.
|
77
|
-
# @param company_name Company of the user.
|
78
|
-
# @param phone Phone number of the user.
|
79
|
-
# @param [Hash] opts the optional parameters
|
80
|
-
# @option opts [String] :country Country of the user.
|
81
|
-
# @option opts [String] :industry Industry of the user.
|
82
|
-
# @option opts [String] :address Street Address of the user.
|
83
|
-
# @option opts [String] :city City of the user.
|
84
|
-
# @option opts [String] :postal_code Postal/Zip code of the user.
|
85
|
-
# @option opts [BOOLEAN] :prevent_welcome_email prevent an email with login credentials from being sent to the new account. must be set to 'true'
|
86
|
-
# @return [String]
|
87
|
-
def create_account(team_id, first_name, last_name, email_address, company_name, phone, opts = {})
|
88
|
-
data, _status_code, _headers = create_account_with_http_info(team_id, first_name, last_name, email_address, company_name, phone, opts)
|
89
|
-
return data
|
90
|
-
end
|
91
|
-
|
92
|
-
# Create Account
|
93
|
-
# Creates a new BombBomb account. This method is currently only available to paid seat admins.
|
94
|
-
# @param team_id The team id
|
95
|
-
# @param first_name First name of the user.
|
96
|
-
# @param last_name Last name of the user.
|
97
|
-
# @param email_address Email address of the user.
|
98
|
-
# @param company_name Company of the user.
|
99
|
-
# @param phone Phone number of the user.
|
100
|
-
# @param [Hash] opts the optional parameters
|
101
|
-
# @option opts [String] :country Country of the user.
|
102
|
-
# @option opts [String] :industry Industry of the user.
|
103
|
-
# @option opts [String] :address Street Address of the user.
|
104
|
-
# @option opts [String] :city City of the user.
|
105
|
-
# @option opts [String] :postal_code Postal/Zip code of the user.
|
106
|
-
# @option opts [BOOLEAN] :prevent_welcome_email prevent an email with login credentials from being sent to the new account. must be set to 'true'
|
107
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
108
|
-
def create_account_with_http_info(team_id, first_name, last_name, email_address, company_name, phone, opts = {})
|
109
|
-
if @api_client.config.debugging
|
110
|
-
@api_client.config.logger.debug "Calling API: AccountsApi.create_account ..."
|
111
|
-
end
|
112
|
-
# verify the required parameter 'team_id' is set
|
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
|
116
|
-
# verify the required parameter 'first_name' is set
|
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
|
120
|
-
# verify the required parameter 'last_name' is set
|
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
|
124
|
-
# verify the required parameter 'email_address' is set
|
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
|
128
|
-
# verify the required parameter 'company_name' is set
|
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
|
132
|
-
# verify the required parameter 'phone' is set
|
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
|
136
|
-
# resource path
|
137
|
-
local_var_path = "/accounts"
|
138
|
-
|
139
|
-
# query parameters
|
140
|
-
query_params = {}
|
141
|
-
|
142
|
-
# header parameters
|
143
|
-
header_params = {}
|
144
|
-
# HTTP header 'Accept' (if needed)
|
145
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
146
|
-
# HTTP header 'Content-Type'
|
147
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
148
|
-
|
149
|
-
# form parameters
|
150
|
-
form_params = {}
|
151
|
-
form_params["teamId"] = team_id
|
152
|
-
form_params["firstName"] = first_name
|
153
|
-
form_params["lastName"] = last_name
|
154
|
-
form_params["emailAddress"] = email_address
|
155
|
-
form_params["companyName"] = company_name
|
156
|
-
form_params["phone"] = phone
|
157
|
-
form_params["country"] = opts[:'country'] if !opts[:'country'].nil?
|
158
|
-
form_params["industry"] = opts[:'industry'] if !opts[:'industry'].nil?
|
159
|
-
form_params["address"] = opts[:'address'] if !opts[:'address'].nil?
|
160
|
-
form_params["city"] = opts[:'city'] if !opts[:'city'].nil?
|
161
|
-
form_params["postalCode"] = opts[:'postal_code'] if !opts[:'postal_code'].nil?
|
162
|
-
form_params["preventWelcomeEmail"] = opts[:'prevent_welcome_email'] if !opts[:'prevent_welcome_email'].nil?
|
163
|
-
|
164
|
-
# http body (model)
|
165
|
-
post_body = nil
|
166
|
-
auth_names = ['BBOAuth2']
|
167
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
168
|
-
:header_params => header_params,
|
169
|
-
:query_params => query_params,
|
170
|
-
:form_params => form_params,
|
171
|
-
:body => post_body,
|
172
|
-
:auth_names => auth_names,
|
173
|
-
:return_type => 'String')
|
174
|
-
if @api_client.config.debugging
|
175
|
-
@api_client.config.logger.debug "API called: AccountsApi#create_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
176
|
-
end
|
177
|
-
return data, status_code, headers
|
178
|
-
end
|
179
|
-
|
180
|
-
# Get Client Statistics
|
181
|
-
# Gets general statics for a Client
|
182
|
-
# @param [Hash] opts the optional parameters
|
183
|
-
# @option opts [String] :client_id Client ID of the account to retrieve. Defaults to yourself.
|
184
|
-
# @option opts [BOOLEAN] :refresh Boolean for whether data returned should be from cache or not.
|
185
|
-
# @option opts [String] :statistic_values Array of data that should be returned, used exclusively for cacheless data
|
186
|
-
# @return [nil]
|
187
|
-
def get_client_statistics(opts = {})
|
188
|
-
get_client_statistics_with_http_info(opts)
|
189
|
-
return nil
|
190
|
-
end
|
191
|
-
|
192
|
-
# Get Client Statistics
|
193
|
-
# Gets general statics for a Client
|
194
|
-
# @param [Hash] opts the optional parameters
|
195
|
-
# @option opts [String] :client_id Client ID of the account to retrieve. Defaults to yourself.
|
196
|
-
# @option opts [BOOLEAN] :refresh Boolean for whether data returned should be from cache or not.
|
197
|
-
# @option opts [String] :statistic_values Array of data that should be returned, used exclusively for cacheless data
|
198
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
199
|
-
def get_client_statistics_with_http_info(opts = {})
|
200
|
-
if @api_client.config.debugging
|
201
|
-
@api_client.config.logger.debug "Calling API: AccountsApi.get_client_statistics ..."
|
202
|
-
end
|
203
|
-
# resource path
|
204
|
-
local_var_path = "/accounts/stats"
|
205
|
-
|
206
|
-
# query parameters
|
207
|
-
query_params = {}
|
208
|
-
query_params[:'clientId'] = opts[:'client_id'] if !opts[:'client_id'].nil?
|
209
|
-
query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
|
210
|
-
query_params[:'statisticValues'] = opts[:'statistic_values'] if !opts[:'statistic_values'].nil?
|
211
|
-
|
212
|
-
# header parameters
|
213
|
-
header_params = {}
|
214
|
-
# HTTP header 'Accept' (if needed)
|
215
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
216
|
-
# HTTP header 'Content-Type'
|
217
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
218
|
-
|
219
|
-
# form parameters
|
220
|
-
form_params = {}
|
221
|
-
|
222
|
-
# http body (model)
|
223
|
-
post_body = nil
|
224
|
-
auth_names = ['BBOAuth2']
|
225
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
226
|
-
:header_params => header_params,
|
227
|
-
:query_params => query_params,
|
228
|
-
:form_params => form_params,
|
229
|
-
:body => post_body,
|
230
|
-
:auth_names => auth_names)
|
231
|
-
if @api_client.config.debugging
|
232
|
-
@api_client.config.logger.debug "API called: AccountsApi#get_client_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
233
|
-
end
|
234
|
-
return data, status_code, headers
|
235
|
-
end
|
236
|
-
|
237
|
-
# Gets user country
|
238
|
-
# Gets the users country
|
239
|
-
# @param [Hash] opts the optional parameters
|
240
|
-
# @return [nil]
|
241
|
-
def get_user_country(opts = {})
|
242
|
-
get_user_country_with_http_info(opts)
|
243
|
-
return nil
|
244
|
-
end
|
245
|
-
|
246
|
-
# Gets user country
|
247
|
-
# Gets the users country
|
248
|
-
# @param [Hash] opts the optional parameters
|
249
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
250
|
-
def get_user_country_with_http_info(opts = {})
|
251
|
-
if @api_client.config.debugging
|
252
|
-
@api_client.config.logger.debug "Calling API: AccountsApi.get_user_country ..."
|
253
|
-
end
|
254
|
-
# resource path
|
255
|
-
local_var_path = "/accounts/{clientId}/country"
|
256
|
-
|
257
|
-
# query parameters
|
258
|
-
query_params = {}
|
259
|
-
|
260
|
-
# header parameters
|
261
|
-
header_params = {}
|
262
|
-
# HTTP header 'Accept' (if needed)
|
263
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
264
|
-
# HTTP header 'Content-Type'
|
265
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
266
|
-
|
267
|
-
# form parameters
|
268
|
-
form_params = {}
|
269
|
-
|
270
|
-
# http body (model)
|
271
|
-
post_body = nil
|
272
|
-
auth_names = ['BBOAuth2']
|
273
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
274
|
-
:header_params => header_params,
|
275
|
-
:query_params => query_params,
|
276
|
-
:form_params => form_params,
|
277
|
-
:body => post_body,
|
278
|
-
:auth_names => auth_names)
|
279
|
-
if @api_client.config.debugging
|
280
|
-
@api_client.config.logger.debug "API called: AccountsApi#get_user_country\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
281
|
-
end
|
282
|
-
return data, status_code, headers
|
283
|
-
end
|
284
|
-
|
285
|
-
# Reset API key
|
286
|
-
# Resets the current user's API key and returns the new key
|
287
|
-
# @param [Hash] opts the optional parameters
|
288
|
-
# @return [nil]
|
289
|
-
def reset_api_key(opts = {})
|
290
|
-
reset_api_key_with_http_info(opts)
|
291
|
-
return nil
|
292
|
-
end
|
293
|
-
|
294
|
-
# Reset API key
|
295
|
-
# Resets the current user's API key and returns the new key
|
296
|
-
# @param [Hash] opts the optional parameters
|
297
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
298
|
-
def reset_api_key_with_http_info(opts = {})
|
299
|
-
if @api_client.config.debugging
|
300
|
-
@api_client.config.logger.debug "Calling API: AccountsApi.reset_api_key ..."
|
301
|
-
end
|
302
|
-
# resource path
|
303
|
-
local_var_path = "/accounts/apikey"
|
304
|
-
|
305
|
-
# query parameters
|
306
|
-
query_params = {}
|
307
|
-
|
308
|
-
# header parameters
|
309
|
-
header_params = {}
|
310
|
-
# HTTP header 'Accept' (if needed)
|
311
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
312
|
-
# HTTP header 'Content-Type'
|
313
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
314
|
-
|
315
|
-
# form parameters
|
316
|
-
form_params = {}
|
317
|
-
|
318
|
-
# http body (model)
|
319
|
-
post_body = nil
|
320
|
-
auth_names = ['BBOAuth2']
|
321
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
322
|
-
:header_params => header_params,
|
323
|
-
:query_params => query_params,
|
324
|
-
:form_params => form_params,
|
325
|
-
:body => post_body,
|
326
|
-
:auth_names => auth_names)
|
327
|
-
if @api_client.config.debugging
|
328
|
-
@api_client.config.logger.debug "API called: AccountsApi#reset_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
329
|
-
end
|
330
|
-
return data, status_code, headers
|
331
|
-
end
|
332
|
-
|
333
|
-
# Check if subscription purchase allowed.
|
334
|
-
# Check whether the user can purchase a subscription.
|
335
|
-
# @param [Hash] opts the optional parameters
|
336
|
-
# @return [nil]
|
337
|
-
def subscription_purchase_allowed(opts = {})
|
338
|
-
subscription_purchase_allowed_with_http_info(opts)
|
339
|
-
return nil
|
340
|
-
end
|
341
|
-
|
342
|
-
# Check if subscription purchase allowed.
|
343
|
-
# Check whether the user can purchase a subscription.
|
344
|
-
# @param [Hash] opts the optional parameters
|
345
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
346
|
-
def subscription_purchase_allowed_with_http_info(opts = {})
|
347
|
-
if @api_client.config.debugging
|
348
|
-
@api_client.config.logger.debug "Calling API: AccountsApi.subscription_purchase_allowed ..."
|
349
|
-
end
|
350
|
-
# resource path
|
351
|
-
local_var_path = "/accounts/purchaseable"
|
352
|
-
|
353
|
-
# query parameters
|
354
|
-
query_params = {}
|
355
|
-
|
356
|
-
# header parameters
|
357
|
-
header_params = {}
|
358
|
-
# HTTP header 'Accept' (if needed)
|
359
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
360
|
-
# HTTP header 'Content-Type'
|
361
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
362
|
-
|
363
|
-
# form parameters
|
364
|
-
form_params = {}
|
365
|
-
|
366
|
-
# http body (model)
|
367
|
-
post_body = nil
|
368
|
-
auth_names = ['BBOAuth2']
|
369
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
370
|
-
:header_params => header_params,
|
371
|
-
:query_params => query_params,
|
372
|
-
:form_params => form_params,
|
373
|
-
:body => post_body,
|
374
|
-
:auth_names => auth_names)
|
375
|
-
if @api_client.config.debugging
|
376
|
-
@api_client.config.logger.debug "API called: AccountsApi#subscription_purchase_allowed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
377
|
-
end
|
378
|
-
return data, status_code, headers
|
379
|
-
end
|
380
|
-
|
381
|
-
# Add profile information.
|
382
|
-
# Add profile information to this users account
|
383
|
-
# @param [Hash] opts the optional parameters
|
384
|
-
# @option opts [String] :profile_data Profile field information for the account
|
385
|
-
# @return [nil]
|
386
|
-
def update_profile_data(opts = {})
|
387
|
-
update_profile_data_with_http_info(opts)
|
388
|
-
return nil
|
389
|
-
end
|
390
|
-
|
391
|
-
# Add profile information.
|
392
|
-
# Add profile information to this users account
|
393
|
-
# @param [Hash] opts the optional parameters
|
394
|
-
# @option opts [String] :profile_data Profile field information for the account
|
395
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
396
|
-
def update_profile_data_with_http_info(opts = {})
|
397
|
-
if @api_client.config.debugging
|
398
|
-
@api_client.config.logger.debug "Calling API: AccountsApi.update_profile_data ..."
|
399
|
-
end
|
400
|
-
# resource path
|
401
|
-
local_var_path = "/account/profile/"
|
402
|
-
|
403
|
-
# query parameters
|
404
|
-
query_params = {}
|
405
|
-
|
406
|
-
# header parameters
|
407
|
-
header_params = {}
|
408
|
-
# HTTP header 'Accept' (if needed)
|
409
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
410
|
-
# HTTP header 'Content-Type'
|
411
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
412
|
-
|
413
|
-
# form parameters
|
414
|
-
form_params = {}
|
415
|
-
form_params["profileData"] = opts[:'profile_data'] if !opts[:'profile_data'].nil?
|
416
|
-
|
417
|
-
# http body (model)
|
418
|
-
post_body = nil
|
419
|
-
auth_names = ['BBOAuth2']
|
420
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
421
|
-
:header_params => header_params,
|
422
|
-
:query_params => query_params,
|
423
|
-
:form_params => form_params,
|
424
|
-
:body => post_body,
|
425
|
-
:auth_names => auth_names)
|
426
|
-
if @api_client.config.debugging
|
427
|
-
@api_client.config.logger.debug "API called: AccountsApi#update_profile_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
428
|
-
end
|
429
|
-
return data, status_code, headers
|
430
|
-
end
|
431
|
-
end
|
432
|
-
end
|
@@ -1,191 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#BombBomb
|
3
|
-
|
4
|
-
#We make it easy to build relationships using simple videos.
|
5
|
-
|
6
|
-
OpenAPI spec version: 2.0.831
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require "uri"
|
14
|
-
|
15
|
-
module BombBomb
|
16
|
-
class AutomationsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
|
23
|
-
# Get Automation Email Stats
|
24
|
-
# Get Automation Email Stats
|
25
|
-
# @param drip_id The id of the drip
|
26
|
-
# @param drip_drop_id The id of the drip drop
|
27
|
-
# @param [Hash] opts the optional parameters
|
28
|
-
# @return [nil]
|
29
|
-
def get_drip_drop_stats(drip_id, drip_drop_id, opts = {})
|
30
|
-
get_drip_drop_stats_with_http_info(drip_id, drip_drop_id, opts)
|
31
|
-
return nil
|
32
|
-
end
|
33
|
-
|
34
|
-
# Get Automation Email Stats
|
35
|
-
# Get Automation Email Stats
|
36
|
-
# @param drip_id The id of the drip
|
37
|
-
# @param drip_drop_id The id of the drip drop
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
40
|
-
def get_drip_drop_stats_with_http_info(drip_id, drip_drop_id, opts = {})
|
41
|
-
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug "Calling API: AutomationsApi.get_drip_drop_stats ..."
|
43
|
-
end
|
44
|
-
# verify the required parameter 'drip_id' is set
|
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
|
48
|
-
# verify the required parameter 'drip_drop_id' is set
|
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
|
52
|
-
# resource path
|
53
|
-
local_var_path = "/automation/{dripId}/dripdrop/{dripDropId}/stats".sub('{' + 'dripId' + '}', drip_id.to_s).sub('{' + 'dripDropId' + '}', drip_drop_id.to_s)
|
54
|
-
|
55
|
-
# query parameters
|
56
|
-
query_params = {}
|
57
|
-
|
58
|
-
# header parameters
|
59
|
-
header_params = {}
|
60
|
-
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
62
|
-
# HTTP header 'Content-Type'
|
63
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
64
|
-
|
65
|
-
# form parameters
|
66
|
-
form_params = {}
|
67
|
-
|
68
|
-
# http body (model)
|
69
|
-
post_body = nil
|
70
|
-
auth_names = ['BBOAuth2']
|
71
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
72
|
-
:header_params => header_params,
|
73
|
-
:query_params => query_params,
|
74
|
-
:form_params => form_params,
|
75
|
-
:body => post_body,
|
76
|
-
:auth_names => auth_names)
|
77
|
-
if @api_client.config.debugging
|
78
|
-
@api_client.config.logger.debug "API called: AutomationsApi#get_drip_drop_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
-
end
|
80
|
-
return data, status_code, headers
|
81
|
-
end
|
82
|
-
|
83
|
-
# Get Automation Stats
|
84
|
-
# Get Automation Stats
|
85
|
-
# @param id The id of the automation
|
86
|
-
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [nil]
|
88
|
-
def get_drip_stats(id, opts = {})
|
89
|
-
get_drip_stats_with_http_info(id, opts)
|
90
|
-
return nil
|
91
|
-
end
|
92
|
-
|
93
|
-
# Get Automation Stats
|
94
|
-
# Get Automation Stats
|
95
|
-
# @param id The id of the automation
|
96
|
-
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
98
|
-
def get_drip_stats_with_http_info(id, opts = {})
|
99
|
-
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug "Calling API: AutomationsApi.get_drip_stats ..."
|
101
|
-
end
|
102
|
-
# verify the required parameter 'id' is set
|
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
|
106
|
-
# resource path
|
107
|
-
local_var_path = "/automation/{id}/stats".sub('{' + 'id' + '}', id.to_s)
|
108
|
-
|
109
|
-
# query parameters
|
110
|
-
query_params = {}
|
111
|
-
|
112
|
-
# header parameters
|
113
|
-
header_params = {}
|
114
|
-
# HTTP header 'Accept' (if needed)
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
116
|
-
# HTTP header 'Content-Type'
|
117
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
118
|
-
|
119
|
-
# form parameters
|
120
|
-
form_params = {}
|
121
|
-
|
122
|
-
# http body (model)
|
123
|
-
post_body = nil
|
124
|
-
auth_names = ['BBOAuth2']
|
125
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
126
|
-
:header_params => header_params,
|
127
|
-
:query_params => query_params,
|
128
|
-
:form_params => form_params,
|
129
|
-
:body => post_body,
|
130
|
-
:auth_names => auth_names)
|
131
|
-
if @api_client.config.debugging
|
132
|
-
@api_client.config.logger.debug "API called: AutomationsApi#get_drip_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
133
|
-
end
|
134
|
-
return data, status_code, headers
|
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
|
190
|
-
end
|
191
|
-
end
|