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
data/docs/VideoEmailPrompt.md
CHANGED
@@ -9,13 +9,14 @@ Name | Type | Description | Notes
|
|
9
9
|
**email_subject_line** | **String** | The subject line of the final email |
|
10
10
|
**email_content** | **String** | The HTML content of the final email |
|
11
11
|
**thumbnail_url** | **String** | The URL of a thumbnail image for this prompt | [optional]
|
12
|
-
**
|
12
|
+
**contact_id** | **String** | Contact Id to send the final email to | [optional]
|
13
13
|
**to_lists** | **Array<String>** | List Ids to send the final email to | [optional]
|
14
14
|
**jericho_id** | **String** | If sent in a jericho context, this will have the jericho id | [optional]
|
15
15
|
**prompt_subject** | **String** | The prompt's subject line |
|
16
16
|
**prompt_html** | **String** | The suggested script of the prompt. |
|
17
17
|
**prompt_intro** | **String** | A paragraph intro statement about the purpose of the email you're recording a video for. | [optional]
|
18
18
|
**example_video_id** | **String** | An example or explanatory video to help the user understand what to say. | [optional]
|
19
|
+
**followup_video_id** | **String** | An example or explanatory video to help the user understand what to say. | [optional]
|
19
20
|
**send_without_video** | **BOOLEAN** | Whether to send the email if no video is recorded. If set to require a video, and none is added before the videoDueDate, the prompt is cancelled. | [optional]
|
20
21
|
**video_due_date** | **DateTime** | When the video must be recorded by | [optional]
|
21
22
|
**scheduled_send_date** | **DateTime** | When the final email is scheduled to be sent |
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# BombBomb::VideoEncodingStatusResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**is_ready** | **BOOLEAN** | Returns true if the video is done encoding and finalized. | [optional]
|
7
|
+
**is_failed** | **BOOLEAN** | Returns true if the video encoding process failed. | [optional]
|
8
|
+
**progress** | **Integer** | 0-100 value indicating progress of video encoding process. | [optional]
|
9
|
+
|
10
|
+
|
data/docs/VideosApi.md
CHANGED
@@ -4,11 +4,64 @@ All URIs are relative to *https://api.bombbomb.com/v2*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**get_video_encoding_status**](VideosApi.md#get_video_encoding_status) | **GET** /videos/{videoId}/status | Video Encoding Status
|
7
8
|
[**get_video_recorder**](VideosApi.md#get_video_recorder) | **GET** /videos/live/getRecorder | Get Live Video Recorder HTML
|
8
9
|
[**mark_live_recording_complete**](VideosApi.md#mark_live_recording_complete) | **POST** /videos/live/markComplete | Completes a live recording
|
9
10
|
[**sign_upload**](VideosApi.md#sign_upload) | **POST** /video/signedUpload | Generate Signed Url
|
10
11
|
|
11
12
|
|
13
|
+
# **get_video_encoding_status**
|
14
|
+
> VideoEncodingStatusResponse get_video_encoding_status(video_id)
|
15
|
+
|
16
|
+
Video Encoding Status
|
17
|
+
|
18
|
+
Get information about the current state of encoding for a given video id.
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'bombbomb'
|
24
|
+
# setup authorization
|
25
|
+
BombBomb.configure do |config|
|
26
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
27
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = BombBomb::VideosApi.new
|
31
|
+
|
32
|
+
video_id = "video_id_example" # String | The video's id.
|
33
|
+
|
34
|
+
|
35
|
+
begin
|
36
|
+
#Video Encoding Status
|
37
|
+
result = api_instance.get_video_encoding_status(video_id)
|
38
|
+
p result
|
39
|
+
rescue BombBomb::ApiError => e
|
40
|
+
puts "Exception when calling VideosApi->get_video_encoding_status: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**video_id** | **String**| The video's id. |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
[**VideoEncodingStatusResponse**](VideoEncodingStatusResponse.md)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
63
|
+
|
64
|
+
|
12
65
|
# **get_video_recorder**
|
13
66
|
> VideoRecorderMethodResponse get_video_recorder(opts)
|
14
67
|
|
data/lib/bombbomb.rb
CHANGED
@@ -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
|
|
@@ -37,20 +37,27 @@ require 'bombbomb/models/inline_response_200_items'
|
|
37
37
|
require 'bombbomb/models/jericho_configuration'
|
38
38
|
require 'bombbomb/models/jericho_performance'
|
39
39
|
require 'bombbomb/models/o_auth_client'
|
40
|
-
require 'bombbomb/models/
|
40
|
+
require 'bombbomb/models/prompt_bot'
|
41
41
|
require 'bombbomb/models/sign_upload_request'
|
42
42
|
require 'bombbomb/models/sign_upload_response'
|
43
43
|
require 'bombbomb/models/string'
|
44
44
|
require 'bombbomb/models/team_public_representation'
|
45
45
|
require 'bombbomb/models/video_email_prompt'
|
46
|
+
require 'bombbomb/models/video_encoding_status_response'
|
46
47
|
require 'bombbomb/models/video_public_representation'
|
47
48
|
require 'bombbomb/models/video_recorder_method_response'
|
48
49
|
|
49
50
|
# APIs
|
51
|
+
require 'bombbomb/api/accounts_api'
|
50
52
|
require 'bombbomb/api/automations_api'
|
53
|
+
require 'bombbomb/api/contacts_api'
|
51
54
|
require 'bombbomb/api/curriculum_api'
|
52
55
|
require 'bombbomb/api/emails_api'
|
56
|
+
require 'bombbomb/api/files_api'
|
57
|
+
require 'bombbomb/api/lists_api'
|
58
|
+
require 'bombbomb/api/orders_api'
|
53
59
|
require 'bombbomb/api/prompts_api'
|
60
|
+
require 'bombbomb/api/socials_api'
|
54
61
|
require 'bombbomb/api/teams_api'
|
55
62
|
require 'bombbomb/api/utilities_api'
|
56
63
|
require 'bombbomb/api/videos_api'
|
@@ -0,0 +1,254 @@
|
|
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 AccountsApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get account details.
|
35
|
+
# Get the details of the user's account.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :email Your login email address
|
38
|
+
# @option opts [String] :pw Your password
|
39
|
+
# @option opts [String] :api_key Your Api Key
|
40
|
+
# @return [nil]
|
41
|
+
def account_details(opts = {})
|
42
|
+
account_details_with_http_info(opts)
|
43
|
+
return nil
|
44
|
+
end
|
45
|
+
|
46
|
+
# Get account details.
|
47
|
+
# Get the details of the user's account.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [String] :email Your login email address
|
50
|
+
# @option opts [String] :pw Your password
|
51
|
+
# @option opts [String] :api_key Your Api Key
|
52
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
53
|
+
def account_details_with_http_info(opts = {})
|
54
|
+
if @api_client.config.debugging
|
55
|
+
@api_client.config.logger.debug "Calling API: AccountsApi.account_details ..."
|
56
|
+
end
|
57
|
+
# resource path
|
58
|
+
local_var_path = "/accounts".sub('{format}','json')
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = {}
|
62
|
+
query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
|
63
|
+
query_params[:'pw'] = opts[:'pw'] if !opts[:'pw'].nil?
|
64
|
+
query_params[:'api_key'] = opts[:'api_key'] if !opts[:'api_key'].nil?
|
65
|
+
|
66
|
+
# header parameters
|
67
|
+
header_params = {}
|
68
|
+
|
69
|
+
# HTTP header 'Accept' (if needed)
|
70
|
+
local_header_accept = ['application/json']
|
71
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
72
|
+
|
73
|
+
# HTTP header 'Content-Type'
|
74
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
75
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = {}
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = nil
|
82
|
+
auth_names = []
|
83
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
84
|
+
:header_params => header_params,
|
85
|
+
:query_params => query_params,
|
86
|
+
:form_params => form_params,
|
87
|
+
:body => post_body,
|
88
|
+
:auth_names => auth_names)
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: AccountsApi#account_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
return data, status_code, headers
|
93
|
+
end
|
94
|
+
|
95
|
+
# Create Account
|
96
|
+
# Creates a new BombBomb account. This method is currently only available to paid seat admins.
|
97
|
+
# @param team_id The team id
|
98
|
+
# @param first_name First name of the user.
|
99
|
+
# @param last_name Last name of the user.
|
100
|
+
# @param email_address Email address of the user.
|
101
|
+
# @param company_name Company of the user.
|
102
|
+
# @param phone Phone number of the user.
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @option opts [String] :country Country of the user.
|
105
|
+
# @option opts [String] :industry Industry of the user.
|
106
|
+
# @option opts [String] :address Street Address of the user.
|
107
|
+
# @option opts [String] :city City of the user.
|
108
|
+
# @option opts [String] :postal_code Postal/Zip code of the user.
|
109
|
+
# @return [String]
|
110
|
+
def create_account(team_id, first_name, last_name, email_address, company_name, phone, opts = {})
|
111
|
+
data, _status_code, _headers = create_account_with_http_info(team_id, first_name, last_name, email_address, company_name, phone, opts)
|
112
|
+
return data
|
113
|
+
end
|
114
|
+
|
115
|
+
# Create Account
|
116
|
+
# Creates a new BombBomb account. This method is currently only available to paid seat admins.
|
117
|
+
# @param team_id The team id
|
118
|
+
# @param first_name First name of the user.
|
119
|
+
# @param last_name Last name of the user.
|
120
|
+
# @param email_address Email address of the user.
|
121
|
+
# @param company_name Company of the user.
|
122
|
+
# @param phone Phone number of the user.
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @option opts [String] :country Country of the user.
|
125
|
+
# @option opts [String] :industry Industry of the user.
|
126
|
+
# @option opts [String] :address Street Address of the user.
|
127
|
+
# @option opts [String] :city City of the user.
|
128
|
+
# @option opts [String] :postal_code Postal/Zip code of the user.
|
129
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
130
|
+
def create_account_with_http_info(team_id, first_name, last_name, email_address, company_name, phone, opts = {})
|
131
|
+
if @api_client.config.debugging
|
132
|
+
@api_client.config.logger.debug "Calling API: AccountsApi.create_account ..."
|
133
|
+
end
|
134
|
+
# verify the required parameter 'team_id' is set
|
135
|
+
fail ArgumentError, "Missing the required parameter 'team_id' when calling AccountsApi.create_account" if team_id.nil?
|
136
|
+
# verify the required parameter 'first_name' is set
|
137
|
+
fail ArgumentError, "Missing the required parameter 'first_name' when calling AccountsApi.create_account" if first_name.nil?
|
138
|
+
# verify the required parameter 'last_name' is set
|
139
|
+
fail ArgumentError, "Missing the required parameter 'last_name' when calling AccountsApi.create_account" if last_name.nil?
|
140
|
+
# verify the required parameter 'email_address' is set
|
141
|
+
fail ArgumentError, "Missing the required parameter 'email_address' when calling AccountsApi.create_account" if email_address.nil?
|
142
|
+
# verify the required parameter 'company_name' is set
|
143
|
+
fail ArgumentError, "Missing the required parameter 'company_name' when calling AccountsApi.create_account" if company_name.nil?
|
144
|
+
# verify the required parameter 'phone' is set
|
145
|
+
fail ArgumentError, "Missing the required parameter 'phone' when calling AccountsApi.create_account" if phone.nil?
|
146
|
+
# resource path
|
147
|
+
local_var_path = "/accounts".sub('{format}','json')
|
148
|
+
|
149
|
+
# query parameters
|
150
|
+
query_params = {}
|
151
|
+
|
152
|
+
# header parameters
|
153
|
+
header_params = {}
|
154
|
+
|
155
|
+
# HTTP header 'Accept' (if needed)
|
156
|
+
local_header_accept = ['application/json']
|
157
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
158
|
+
|
159
|
+
# HTTP header 'Content-Type'
|
160
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
161
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
162
|
+
|
163
|
+
# form parameters
|
164
|
+
form_params = {}
|
165
|
+
form_params["teamId"] = team_id
|
166
|
+
form_params["firstName"] = first_name
|
167
|
+
form_params["lastName"] = last_name
|
168
|
+
form_params["emailAddress"] = email_address
|
169
|
+
form_params["companyName"] = company_name
|
170
|
+
form_params["phone"] = phone
|
171
|
+
form_params["country"] = opts[:'country'] if !opts[:'country'].nil?
|
172
|
+
form_params["industry"] = opts[:'industry'] if !opts[:'industry'].nil?
|
173
|
+
form_params["address"] = opts[:'address'] if !opts[:'address'].nil?
|
174
|
+
form_params["city"] = opts[:'city'] if !opts[:'city'].nil?
|
175
|
+
form_params["postalCode"] = opts[:'postal_code'] if !opts[:'postal_code'].nil?
|
176
|
+
|
177
|
+
# http body (model)
|
178
|
+
post_body = nil
|
179
|
+
auth_names = ['BBOAuth2']
|
180
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
181
|
+
:header_params => header_params,
|
182
|
+
:query_params => query_params,
|
183
|
+
:form_params => form_params,
|
184
|
+
:body => post_body,
|
185
|
+
:auth_names => auth_names,
|
186
|
+
:return_type => 'String')
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug "API called: AccountsApi#create_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
189
|
+
end
|
190
|
+
return data, status_code, headers
|
191
|
+
end
|
192
|
+
|
193
|
+
# Check if subscription purchase allowed.
|
194
|
+
# Check whether the user can purchase a subscription.
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @option opts [String] :email Your login email address
|
197
|
+
# @option opts [String] :pw Your password
|
198
|
+
# @option opts [String] :api_key Your Api Key
|
199
|
+
# @return [nil]
|
200
|
+
def subscription_purchase_allowed(opts = {})
|
201
|
+
subscription_purchase_allowed_with_http_info(opts)
|
202
|
+
return nil
|
203
|
+
end
|
204
|
+
|
205
|
+
# Check if subscription purchase allowed.
|
206
|
+
# Check whether the user can purchase a subscription.
|
207
|
+
# @param [Hash] opts the optional parameters
|
208
|
+
# @option opts [String] :email Your login email address
|
209
|
+
# @option opts [String] :pw Your password
|
210
|
+
# @option opts [String] :api_key Your Api Key
|
211
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
212
|
+
def subscription_purchase_allowed_with_http_info(opts = {})
|
213
|
+
if @api_client.config.debugging
|
214
|
+
@api_client.config.logger.debug "Calling API: AccountsApi.subscription_purchase_allowed ..."
|
215
|
+
end
|
216
|
+
# resource path
|
217
|
+
local_var_path = "/accounts/purchaseable".sub('{format}','json')
|
218
|
+
|
219
|
+
# query parameters
|
220
|
+
query_params = {}
|
221
|
+
query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
|
222
|
+
query_params[:'pw'] = opts[:'pw'] if !opts[:'pw'].nil?
|
223
|
+
query_params[:'api_key'] = opts[:'api_key'] if !opts[:'api_key'].nil?
|
224
|
+
|
225
|
+
# header parameters
|
226
|
+
header_params = {}
|
227
|
+
|
228
|
+
# HTTP header 'Accept' (if needed)
|
229
|
+
local_header_accept = ['application/json']
|
230
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
231
|
+
|
232
|
+
# HTTP header 'Content-Type'
|
233
|
+
local_header_content_type = ['application/x-www-form-urlencoded']
|
234
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
235
|
+
|
236
|
+
# form parameters
|
237
|
+
form_params = {}
|
238
|
+
|
239
|
+
# http body (model)
|
240
|
+
post_body = nil
|
241
|
+
auth_names = []
|
242
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
243
|
+
:header_params => header_params,
|
244
|
+
:query_params => query_params,
|
245
|
+
:form_params => form_params,
|
246
|
+
:body => post_body,
|
247
|
+
:auth_names => auth_names)
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug "API called: AccountsApi#subscription_purchase_allowed\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
+
end
|
251
|
+
return data, status_code, headers
|
252
|
+
end
|
253
|
+
end
|
254
|
+
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 ContactsApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Delete Contacts
|
35
|
+
# Delete contacts
|
36
|
+
# @param list_id The list of contacts to be deleted.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [nil]
|
39
|
+
def delete_contacts(list_id, opts = {})
|
40
|
+
delete_contacts_with_http_info(list_id, opts)
|
41
|
+
return nil
|
42
|
+
end
|
43
|
+
|
44
|
+
# Delete Contacts
|
45
|
+
# Delete contacts
|
46
|
+
# @param list_id The list of contacts to be deleted.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
49
|
+
def delete_contacts_with_http_info(list_id, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: ContactsApi.delete_contacts ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'list_id' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'list_id' when calling ContactsApi.delete_contacts" if list_id.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/contacts/delete".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["listId"] = list_id
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = nil
|
78
|
+
auth_names = ['BBOAuth2']
|
79
|
+
data, status_code, headers = @api_client.call_api(:PUT, 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: ContactsApi#delete_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|