bombbomb 2.0.22196 → 2.0.24005
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/README.md +41 -21
- data/bombbomb.gemspec +1 -1
- data/docs/AccountsApi.md +192 -0
- data/docs/ContactsApi.md +60 -0
- data/docs/EmailsApi.md +5 -6
- data/docs/FilesApi.md +60 -0
- data/docs/JerichoPerformance.md +4 -0
- data/docs/ListsApi.md +167 -0
- data/docs/OrdersApi.md +60 -0
- data/docs/PromptBot.md +22 -0
- data/docs/PromptsApi.md +55 -21
- data/docs/SocialsApi.md +387 -0
- data/docs/TeamsApi.md +165 -0
- data/docs/VideoEmailPrompt.md +2 -1
- data/docs/VideoEncodingStatusResponse.md +10 -0
- data/docs/VideosApi.md +53 -0
- data/lib/bombbomb.rb +9 -2
- data/lib/bombbomb/api/accounts_api.rb +254 -0
- data/lib/bombbomb/api/automations_api.rb +1 -1
- data/lib/bombbomb/api/contacts_api.rb +91 -0
- data/lib/bombbomb/api/curriculum_api.rb +1 -1
- data/lib/bombbomb/api/emails_api.rb +9 -11
- data/lib/bombbomb/api/files_api.rb +91 -0
- data/lib/bombbomb/api/lists_api.rb +207 -0
- data/lib/bombbomb/api/orders_api.rb +91 -0
- data/lib/bombbomb/api/prompts_api.rb +92 -40
- data/lib/bombbomb/api/socials_api.rb +458 -0
- data/lib/bombbomb/api/teams_api.rb +184 -1
- data/lib/bombbomb/api/utilities_api.rb +1 -1
- data/lib/bombbomb/api/videos_api.rb +58 -1
- data/lib/bombbomb/api/webhooks_api.rb +1 -1
- data/lib/bombbomb/api_client.rb +1 -1
- data/lib/bombbomb/api_error.rb +1 -1
- data/lib/bombbomb/configuration.rb +1 -1
- data/lib/bombbomb/models/bb_web_hook.rb +1 -1
- data/lib/bombbomb/models/curriculum.rb +1 -1
- data/lib/bombbomb/models/curriculum_user_progress.rb +1 -1
- data/lib/bombbomb/models/curriculum_with_progress.rb +1 -1
- data/lib/bombbomb/models/inline_response_200.rb +1 -1
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +1 -1
- data/lib/bombbomb/models/jericho_performance.rb +45 -5
- data/lib/bombbomb/models/o_auth_client.rb +1 -1
- data/lib/bombbomb/models/prompt_bot.rb +340 -0
- data/lib/bombbomb/models/sign_upload_request.rb +1 -1
- data/lib/bombbomb/models/sign_upload_response.rb +1 -1
- data/lib/bombbomb/models/string.rb +1 -1
- data/lib/bombbomb/models/team_public_representation.rb +1 -1
- data/lib/bombbomb/models/video_email_prompt.rb +19 -11
- data/lib/bombbomb/models/video_encoding_status_response.rb +220 -0
- data/lib/bombbomb/models/video_public_representation.rb +1 -1
- data/lib/bombbomb/models/video_recorder_method_response.rb +1 -1
- data/lib/bombbomb/version.rb +2 -2
- data/spec/api/accounts_api_spec.rb +96 -0
- data/spec/api/contacts_api_spec.rb +58 -0
- data/spec/api/files_api_spec.rb +58 -0
- data/spec/api/lists_api_spec.rb +83 -0
- data/spec/api/orders_api_spec.rb +58 -0
- data/spec/api/socials_api_spec.rb +135 -0
- data/spec/models/prompt_bot_spec.rb +137 -0
- data/spec/models/video_encoding_status_response_spec.rb +65 -0
- metadata +34 -2
@@ -3,7 +3,7 @@
|
|
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.24005
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -32,29 +32,29 @@ module BombBomb
|
|
32
32
|
end
|
33
33
|
|
34
34
|
# Create an Email with Printing Press
|
35
|
-
# Prints an email using the template id and content to the users account.If a video id
|
35
|
+
# Prints an email using the template id and content to the users account.If a video id is included, it will replace any video placeholders with that video.
|
36
36
|
# @param template_id The template id to be printed.
|
37
37
|
# @param content The content of the email.
|
38
|
-
# @param replace Set whether to replace video placeholders with video id.
|
39
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :email_id The email id to be printed to.
|
40
40
|
# @option opts [String] :video_id A video to replace video place holders with.
|
41
41
|
# @option opts [String] :subject_line The subject line to be printed.
|
42
42
|
# @return [nil]
|
43
|
-
def create_printing_press_email(template_id, content,
|
44
|
-
create_printing_press_email_with_http_info(template_id, content,
|
43
|
+
def create_printing_press_email(template_id, content, opts = {})
|
44
|
+
create_printing_press_email_with_http_info(template_id, content, opts)
|
45
45
|
return nil
|
46
46
|
end
|
47
47
|
|
48
48
|
# Create an Email with Printing Press
|
49
|
-
# Prints an email using the template id and content to the users account.If a video id
|
49
|
+
# Prints an email using the template id and content to the users account.If a video id is included, it will replace any video placeholders with that video.
|
50
50
|
# @param template_id The template id to be printed.
|
51
51
|
# @param content The content of the email.
|
52
|
-
# @param replace Set whether to replace video placeholders with video id.
|
53
52
|
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [String] :email_id The email id to be printed to.
|
54
54
|
# @option opts [String] :video_id A video to replace video place holders with.
|
55
55
|
# @option opts [String] :subject_line The subject line to be printed.
|
56
56
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
57
|
-
def create_printing_press_email_with_http_info(template_id, content,
|
57
|
+
def create_printing_press_email_with_http_info(template_id, content, opts = {})
|
58
58
|
if @api_client.config.debugging
|
59
59
|
@api_client.config.logger.debug "Calling API: EmailsApi.create_printing_press_email ..."
|
60
60
|
end
|
@@ -62,8 +62,6 @@ module BombBomb
|
|
62
62
|
fail ArgumentError, "Missing the required parameter 'template_id' when calling EmailsApi.create_printing_press_email" if template_id.nil?
|
63
63
|
# verify the required parameter 'content' is set
|
64
64
|
fail ArgumentError, "Missing the required parameter 'content' when calling EmailsApi.create_printing_press_email" if content.nil?
|
65
|
-
# verify the required parameter 'replace' is set
|
66
|
-
fail ArgumentError, "Missing the required parameter 'replace' when calling EmailsApi.create_printing_press_email" if replace.nil?
|
67
65
|
# resource path
|
68
66
|
local_var_path = "/emails/print".sub('{format}','json')
|
69
67
|
|
@@ -85,7 +83,7 @@ module BombBomb
|
|
85
83
|
form_params = {}
|
86
84
|
form_params["templateId"] = template_id
|
87
85
|
form_params["content"] = content
|
88
|
-
form_params["
|
86
|
+
form_params["emailId"] = opts[:'email_id'] if !opts[:'email_id'].nil?
|
89
87
|
form_params["videoId"] = opts[:'video_id'] if !opts[:'video_id'].nil?
|
90
88
|
form_params["subjectLine"] = opts[:'subject_line'] if !opts[:'subject_line'].nil?
|
91
89
|
|
@@ -0,0 +1,91 @@
|
|
1
|
+
=begin
|
2
|
+
#BombBomb
|
3
|
+
|
4
|
+
#We make it easy to build relationships using simple videos.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.24005
|
7
|
+
|
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.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module BombBomb
|
27
|
+
class FilesApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Deletes users file
|
35
|
+
# Deletes the file from the users s3 store
|
36
|
+
# @param doc_id Id of document
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [nil]
|
39
|
+
def doc_host_delete(doc_id, opts = {})
|
40
|
+
doc_host_delete_with_http_info(doc_id, opts)
|
41
|
+
return nil
|
42
|
+
end
|
43
|
+
|
44
|
+
# Deletes users file
|
45
|
+
# Deletes the file from the users s3 store
|
46
|
+
# @param doc_id Id of document
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
49
|
+
def doc_host_delete_with_http_info(doc_id, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: FilesApi.doc_host_delete ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'doc_id' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_delete" if doc_id.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/files".sub('{format}','json')
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
form_params["docId"] = doc_id
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = nil
|
78
|
+
auth_names = ['BBOAuth2']
|
79
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names)
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: FilesApi#doc_host_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,207 @@
|
|
1
|
+
=begin
|
2
|
+
#BombBomb
|
3
|
+
|
4
|
+
#We make it easy to build relationships using simple videos.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.24005
|
7
|
+
|
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.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module BombBomb
|
27
|
+
class ListsApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Clear Contacts from List
|
35
|
+
# Clears all contacts from a list.
|
36
|
+
# @param list_id The list to be cleared.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [nil]
|
39
|
+
def clear_list(list_id, opts = {})
|
40
|
+
clear_list_with_http_info(list_id, opts)
|
41
|
+
return nil
|
42
|
+
end
|
43
|
+
|
44
|
+
# Clear Contacts from List
|
45
|
+
# Clears all contacts from a list.
|
46
|
+
# @param list_id The list to be cleared.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
49
|
+
def clear_list_with_http_info(list_id, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: ListsApi.clear_list ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'list_id' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.clear_list" if list_id.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/lists/{listId}/clear".sub('{format}','json').sub('{' + 'listId' + '}', list_id.to_s)
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = nil
|
77
|
+
auth_names = ['BBOAuth2']
|
78
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: ListsApi#clear_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Copy All Contacts from a List
|
91
|
+
# Copy all contacts from a list.
|
92
|
+
# @param from_list_id The list to be cleared.
|
93
|
+
# @param list_id The list to be cleared.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [nil]
|
96
|
+
def copy_list_contacts(from_list_id, list_id, opts = {})
|
97
|
+
copy_list_contacts_with_http_info(from_list_id, list_id, opts)
|
98
|
+
return nil
|
99
|
+
end
|
100
|
+
|
101
|
+
# Copy All Contacts from a List
|
102
|
+
# Copy all contacts from a list.
|
103
|
+
# @param from_list_id The list to be cleared.
|
104
|
+
# @param list_id The list to be cleared.
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
107
|
+
def copy_list_contacts_with_http_info(from_list_id, list_id, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug "Calling API: ListsApi.copy_list_contacts ..."
|
110
|
+
end
|
111
|
+
# verify the required parameter 'from_list_id' is set
|
112
|
+
fail ArgumentError, "Missing the required parameter 'from_list_id' when calling ListsApi.copy_list_contacts" if from_list_id.nil?
|
113
|
+
# verify the required parameter 'list_id' is set
|
114
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.copy_list_contacts" if list_id.nil?
|
115
|
+
# resource path
|
116
|
+
local_var_path = "/lists/{listId}/copy".sub('{format}','json').sub('{' + 'listId' + '}', list_id.to_s)
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = {}
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = {}
|
123
|
+
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
local_header_accept = ['application/json']
|
126
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
127
|
+
|
128
|
+
# HTTP header 'Content-Type'
|
129
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
form_params["fromListId"] = from_list_id
|
135
|
+
|
136
|
+
# http body (model)
|
137
|
+
post_body = nil
|
138
|
+
auth_names = ['BBOAuth2']
|
139
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
140
|
+
:header_params => header_params,
|
141
|
+
:query_params => query_params,
|
142
|
+
:form_params => form_params,
|
143
|
+
:body => post_body,
|
144
|
+
:auth_names => auth_names)
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: ListsApi#copy_list_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
|
151
|
+
# Suppress All Contacts from List
|
152
|
+
# Suppresses all contacts in a list.
|
153
|
+
# @param list_id The list to be cleared.
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @return [nil]
|
156
|
+
def suppress_all_in_list(list_id, opts = {})
|
157
|
+
suppress_all_in_list_with_http_info(list_id, opts)
|
158
|
+
return nil
|
159
|
+
end
|
160
|
+
|
161
|
+
# Suppress All Contacts from List
|
162
|
+
# Suppresses all contacts in a list.
|
163
|
+
# @param list_id The list to be cleared.
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
166
|
+
def suppress_all_in_list_with_http_info(list_id, opts = {})
|
167
|
+
if @api_client.config.debugging
|
168
|
+
@api_client.config.logger.debug "Calling API: ListsApi.suppress_all_in_list ..."
|
169
|
+
end
|
170
|
+
# verify the required parameter 'list_id' is set
|
171
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.suppress_all_in_list" if list_id.nil?
|
172
|
+
# resource path
|
173
|
+
local_var_path = "/lists/{listId}/suppress".sub('{format}','json').sub('{' + 'listId' + '}', list_id.to_s)
|
174
|
+
|
175
|
+
# query parameters
|
176
|
+
query_params = {}
|
177
|
+
|
178
|
+
# header parameters
|
179
|
+
header_params = {}
|
180
|
+
|
181
|
+
# HTTP header 'Accept' (if needed)
|
182
|
+
local_header_accept = ['application/json']
|
183
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
184
|
+
|
185
|
+
# HTTP header 'Content-Type'
|
186
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
188
|
+
|
189
|
+
# form parameters
|
190
|
+
form_params = {}
|
191
|
+
|
192
|
+
# http body (model)
|
193
|
+
post_body = nil
|
194
|
+
auth_names = ['BBOAuth2']
|
195
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
196
|
+
:header_params => header_params,
|
197
|
+
:query_params => query_params,
|
198
|
+
:form_params => form_params,
|
199
|
+
:body => post_body,
|
200
|
+
:auth_names => auth_names)
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: ListsApi#suppress_all_in_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
=begin
|
2
|
+
#BombBomb
|
3
|
+
|
4
|
+
#We make it easy to build relationships using simple videos.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.24005
|
7
|
+
|
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.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module BombBomb
|
27
|
+
class OrdersApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Deletes image from user s3 store
|
35
|
+
# Deletes image from user s3 store
|
36
|
+
# @param file_name Filename for deletion
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [nil]
|
39
|
+
def template_asset_delete(file_name, opts = {})
|
40
|
+
template_asset_delete_with_http_info(file_name, opts)
|
41
|
+
return nil
|
42
|
+
end
|
43
|
+
|
44
|
+
# Deletes image from user s3 store
|
45
|
+
# Deletes image from user s3 store
|
46
|
+
# @param file_name Filename for deletion
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
49
|
+
def template_asset_delete_with_http_info(file_name, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: OrdersApi.template_asset_delete ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'file_name' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'file_name' when calling OrdersApi.template_asset_delete" if file_name.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/orders/templates/images".sub('{format}','json')
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
form_params["fileName"] = file_name
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = nil
|
78
|
+
auth_names = ['BBOAuth2']
|
79
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names)
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: OrdersApi#template_asset_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|