bombbomb 2.0.24005 → 2.0.25797
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 +5 -5
- data/README.md +44 -20
- data/bombbomb.gemspec +1 -1
- data/docs/AccountsApi.md +61 -28
- data/docs/ContactsApi.md +373 -0
- data/docs/EmailsApi.md +168 -0
- data/docs/FilesApi.md +216 -4
- data/docs/HostedDoc.md +13 -0
- data/docs/IntegrationsApi.md +62 -0
- data/docs/ListsApi.md +98 -0
- data/docs/PromptsApi.md +76 -12
- data/docs/SocialsApi.md +172 -71
- data/docs/TeamsApi.md +295 -1
- data/docs/VideoEmailPrompt.md +6 -0
- data/docs/VideosApi.md +59 -0
- data/lib/bombbomb/api/accounts_api.rb +59 -19
- data/lib/bombbomb/api/automations_api.rb +1 -1
- data/lib/bombbomb/api/contacts_api.rb +408 -1
- data/lib/bombbomb/api/curriculum_api.rb +1 -1
- data/lib/bombbomb/api/emails_api.rb +187 -1
- data/lib/bombbomb/api/files_api.rb +239 -7
- data/lib/bombbomb/api/integrations_api.rb +90 -0
- data/lib/bombbomb/api/lists_api.rb +110 -1
- data/lib/bombbomb/api/orders_api.rb +1 -1
- data/lib/bombbomb/api/prompts_api.rb +90 -20
- data/lib/bombbomb/api/socials_api.rb +210 -109
- data/lib/bombbomb/api/teams_api.rb +332 -1
- data/lib/bombbomb/api/utilities_api.rb +1 -1
- data/lib/bombbomb/api/videos_api.rb +66 -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/hosted_doc.rb +250 -0
- 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 +1 -1
- data/lib/bombbomb/models/o_auth_client.rb +1 -1
- data/lib/bombbomb/models/prompt_bot.rb +1 -1
- 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 +67 -5
- data/lib/bombbomb/models/video_encoding_status_response.rb +1 -1
- 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/lib/bombbomb.rb +3 -1
- data/spec/api/integrations_api_spec.rb +58 -0
- data/spec/models/hosted_doc_spec.rb +83 -0
- metadata +11 -3
data/docs/FilesApi.md
CHANGED
@@ -4,15 +4,19 @@ All URIs are relative to *https://api.bombbomb.com/v2*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**doc_host_delete**](FilesApi.md#doc_host_delete) | **DELETE** /files |
|
7
|
+
[**doc_host_delete**](FilesApi.md#doc_host_delete) | **DELETE** /files/{docId} | Delete file
|
8
|
+
[**doc_host_get**](FilesApi.md#doc_host_get) | **GET** /files/{docId} | Get file
|
9
|
+
[**doc_host_list**](FilesApi.md#doc_host_list) | **GET** /files | List all files
|
10
|
+
[**doc_host_upload_v2**](FilesApi.md#doc_host_upload_v2) | **POST** /files | Upload a file
|
11
|
+
[**get_hosted_images_paged**](FilesApi.md#get_hosted_images_paged) | **GET** /files/images/paged | Get paged hosted images
|
8
12
|
|
9
13
|
|
10
14
|
# **doc_host_delete**
|
11
15
|
> doc_host_delete(doc_id)
|
12
16
|
|
13
|
-
|
17
|
+
Delete file
|
14
18
|
|
15
|
-
Deletes
|
19
|
+
Deletes a users file
|
16
20
|
|
17
21
|
### Example
|
18
22
|
```ruby
|
@@ -30,7 +34,7 @@ doc_id = "doc_id_example" # String | Id of document
|
|
30
34
|
|
31
35
|
|
32
36
|
begin
|
33
|
-
#
|
37
|
+
#Delete file
|
34
38
|
api_instance.doc_host_delete(doc_id)
|
35
39
|
rescue BombBomb::ApiError => e
|
36
40
|
puts "Exception when calling FilesApi->doc_host_delete: #{e}"
|
@@ -58,3 +62,211 @@ nil (empty response body)
|
|
58
62
|
|
59
63
|
|
60
64
|
|
65
|
+
# **doc_host_get**
|
66
|
+
> HostedDoc doc_host_get(doc_id)
|
67
|
+
|
68
|
+
Get file
|
69
|
+
|
70
|
+
Get a single file by id
|
71
|
+
|
72
|
+
### Example
|
73
|
+
```ruby
|
74
|
+
# load the gem
|
75
|
+
require 'bombbomb'
|
76
|
+
# setup authorization
|
77
|
+
BombBomb.configure do |config|
|
78
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
79
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
80
|
+
end
|
81
|
+
|
82
|
+
api_instance = BombBomb::FilesApi.new
|
83
|
+
|
84
|
+
doc_id = "doc_id_example" # String | Id of document
|
85
|
+
|
86
|
+
|
87
|
+
begin
|
88
|
+
#Get file
|
89
|
+
result = api_instance.doc_host_get(doc_id)
|
90
|
+
p result
|
91
|
+
rescue BombBomb::ApiError => e
|
92
|
+
puts "Exception when calling FilesApi->doc_host_get: #{e}"
|
93
|
+
end
|
94
|
+
```
|
95
|
+
|
96
|
+
### Parameters
|
97
|
+
|
98
|
+
Name | Type | Description | Notes
|
99
|
+
------------- | ------------- | ------------- | -------------
|
100
|
+
**doc_id** | **String**| Id of document |
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
[**HostedDoc**](HostedDoc.md)
|
105
|
+
|
106
|
+
### Authorization
|
107
|
+
|
108
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
109
|
+
|
110
|
+
### HTTP request headers
|
111
|
+
|
112
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
113
|
+
- **Accept**: application/json
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# **doc_host_list**
|
118
|
+
> Array<HostedDoc> doc_host_list
|
119
|
+
|
120
|
+
List all files
|
121
|
+
|
122
|
+
List all uploaded user files
|
123
|
+
|
124
|
+
### Example
|
125
|
+
```ruby
|
126
|
+
# load the gem
|
127
|
+
require 'bombbomb'
|
128
|
+
# setup authorization
|
129
|
+
BombBomb.configure do |config|
|
130
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
131
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
132
|
+
end
|
133
|
+
|
134
|
+
api_instance = BombBomb::FilesApi.new
|
135
|
+
|
136
|
+
begin
|
137
|
+
#List all files
|
138
|
+
result = api_instance.doc_host_list
|
139
|
+
p result
|
140
|
+
rescue BombBomb::ApiError => e
|
141
|
+
puts "Exception when calling FilesApi->doc_host_list: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
This endpoint does not need any parameter.
|
147
|
+
|
148
|
+
### Return type
|
149
|
+
|
150
|
+
[**Array<HostedDoc>**](HostedDoc.md)
|
151
|
+
|
152
|
+
### Authorization
|
153
|
+
|
154
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
155
|
+
|
156
|
+
### HTTP request headers
|
157
|
+
|
158
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
159
|
+
- **Accept**: application/json
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
# **doc_host_upload_v2**
|
164
|
+
> Array<HostedDoc> doc_host_upload_v2(file)
|
165
|
+
|
166
|
+
Upload a file
|
167
|
+
|
168
|
+
Upload a new file
|
169
|
+
|
170
|
+
### Example
|
171
|
+
```ruby
|
172
|
+
# load the gem
|
173
|
+
require 'bombbomb'
|
174
|
+
# setup authorization
|
175
|
+
BombBomb.configure do |config|
|
176
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
177
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
178
|
+
end
|
179
|
+
|
180
|
+
api_instance = BombBomb::FilesApi.new
|
181
|
+
|
182
|
+
file = "file_example" # String | The file being uploaded
|
183
|
+
|
184
|
+
|
185
|
+
begin
|
186
|
+
#Upload a file
|
187
|
+
result = api_instance.doc_host_upload_v2(file)
|
188
|
+
p result
|
189
|
+
rescue BombBomb::ApiError => e
|
190
|
+
puts "Exception when calling FilesApi->doc_host_upload_v2: #{e}"
|
191
|
+
end
|
192
|
+
```
|
193
|
+
|
194
|
+
### Parameters
|
195
|
+
|
196
|
+
Name | Type | Description | Notes
|
197
|
+
------------- | ------------- | ------------- | -------------
|
198
|
+
**file** | **String**| The file being uploaded |
|
199
|
+
|
200
|
+
### Return type
|
201
|
+
|
202
|
+
[**Array<HostedDoc>**](HostedDoc.md)
|
203
|
+
|
204
|
+
### Authorization
|
205
|
+
|
206
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
207
|
+
|
208
|
+
### HTTP request headers
|
209
|
+
|
210
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
211
|
+
- **Accept**: application/json
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
# **get_hosted_images_paged**
|
216
|
+
> get_hosted_images_paged(page_size, page, opts)
|
217
|
+
|
218
|
+
Get paged hosted images
|
219
|
+
|
220
|
+
Get a specific page of uploaded images available to the user.
|
221
|
+
|
222
|
+
### Example
|
223
|
+
```ruby
|
224
|
+
# load the gem
|
225
|
+
require 'bombbomb'
|
226
|
+
# setup authorization
|
227
|
+
BombBomb.configure do |config|
|
228
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
229
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
230
|
+
end
|
231
|
+
|
232
|
+
api_instance = BombBomb::FilesApi.new
|
233
|
+
|
234
|
+
page_size = "page_size_example" # String | The number of items to retrieve in a single db query.
|
235
|
+
|
236
|
+
page = "page_example" # String | Zero-based index of the page of data to retrieve from the db.
|
237
|
+
|
238
|
+
opts = {
|
239
|
+
search: "search_example" # String | Filter results with names that match the search term.
|
240
|
+
}
|
241
|
+
|
242
|
+
begin
|
243
|
+
#Get paged hosted images
|
244
|
+
api_instance.get_hosted_images_paged(page_size, page, opts)
|
245
|
+
rescue BombBomb::ApiError => e
|
246
|
+
puts "Exception when calling FilesApi->get_hosted_images_paged: #{e}"
|
247
|
+
end
|
248
|
+
```
|
249
|
+
|
250
|
+
### Parameters
|
251
|
+
|
252
|
+
Name | Type | Description | Notes
|
253
|
+
------------- | ------------- | ------------- | -------------
|
254
|
+
**page_size** | **String**| The number of items to retrieve in a single db query. |
|
255
|
+
**page** | **String**| Zero-based index of the page of data to retrieve from the db. |
|
256
|
+
**search** | **String**| Filter results with names that match the search term. | [optional]
|
257
|
+
|
258
|
+
### Return type
|
259
|
+
|
260
|
+
nil (empty response body)
|
261
|
+
|
262
|
+
### Authorization
|
263
|
+
|
264
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
265
|
+
|
266
|
+
### HTTP request headers
|
267
|
+
|
268
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
269
|
+
- **Accept**: application/json
|
270
|
+
|
271
|
+
|
272
|
+
|
data/docs/HostedDoc.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# BombBomb::HostedDoc
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The doc's id. | [optional]
|
7
|
+
**user_id** | **String** | The doc's owner. | [optional]
|
8
|
+
**file_name** | **String** | docs file name. | [optional]
|
9
|
+
**short_url** | **String** | The doc's short url. | [optional]
|
10
|
+
**long_url** | **String** | The doc's long url. | [optional]
|
11
|
+
**upload_date** | **DateTime** | The doc's upload date. | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# BombBomb::IntegrationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.bombbomb.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**sync_users_integrated_lists**](IntegrationsApi.md#sync_users_integrated_lists) | **GET** /integrations/sync | Synchronize your integration list or lists.
|
8
|
+
|
9
|
+
|
10
|
+
# **sync_users_integrated_lists**
|
11
|
+
> String sync_users_integrated_lists(opts)
|
12
|
+
|
13
|
+
Synchronize your integration list or lists.
|
14
|
+
|
15
|
+
Synchronize your integration contact list with the service you are integrated with. If no integration code is provided, all integrations will be synchronized.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'bombbomb'
|
21
|
+
# setup authorization
|
22
|
+
BombBomb.configure do |config|
|
23
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
24
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = BombBomb::IntegrationsApi.new
|
28
|
+
|
29
|
+
opts = {
|
30
|
+
integration_id: "integration_id_example" # String | The integration to sync lists for. All integrations will sync if nothing is provided.
|
31
|
+
}
|
32
|
+
|
33
|
+
begin
|
34
|
+
#Synchronize your integration list or lists.
|
35
|
+
result = api_instance.sync_users_integrated_lists(opts)
|
36
|
+
p result
|
37
|
+
rescue BombBomb::ApiError => e
|
38
|
+
puts "Exception when calling IntegrationsApi->sync_users_integrated_lists: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
Name | Type | Description | Notes
|
45
|
+
------------- | ------------- | ------------- | -------------
|
46
|
+
**integration_id** | **String**| The integration to sync lists for. All integrations will sync if nothing is provided. | [optional]
|
47
|
+
|
48
|
+
### Return type
|
49
|
+
|
50
|
+
**String**
|
51
|
+
|
52
|
+
### Authorization
|
53
|
+
|
54
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
55
|
+
|
56
|
+
### HTTP request headers
|
57
|
+
|
58
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
59
|
+
- **Accept**: application/json
|
60
|
+
|
61
|
+
|
62
|
+
|
data/docs/ListsApi.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
|
+
[**add_new_list**](ListsApi.md#add_new_list) | **POST** /lists/ | Add list.
|
7
8
|
[**clear_list**](ListsApi.md#clear_list) | **PUT** /lists/{listId}/clear | Clear Contacts from List
|
8
9
|
[**copy_list_contacts**](ListsApi.md#copy_list_contacts) | **POST** /lists/{listId}/copy | Copy All Contacts from a List
|
10
|
+
[**get_all_lists**](ListsApi.md#get_all_lists) | **GET** /lists/ | Get all Lists
|
9
11
|
[**suppress_all_in_list**](ListsApi.md#suppress_all_in_list) | **PUT** /lists/{listId}/suppress | Suppress All Contacts from List
|
10
12
|
|
11
13
|
|
14
|
+
# **add_new_list**
|
15
|
+
> add_new_list(list_name)
|
16
|
+
|
17
|
+
Add list.
|
18
|
+
|
19
|
+
Add a list to the users account.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'bombbomb'
|
25
|
+
# setup authorization
|
26
|
+
BombBomb.configure do |config|
|
27
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
28
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = BombBomb::ListsApi.new
|
32
|
+
|
33
|
+
list_name = "list_name_example" # String | Name of the new list being added
|
34
|
+
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Add list.
|
38
|
+
api_instance.add_new_list(list_name)
|
39
|
+
rescue BombBomb::ApiError => e
|
40
|
+
puts "Exception when calling ListsApi->add_new_list: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**list_name** | **String**| Name of the new list being added |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
nil (empty response body)
|
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
|
# **clear_list**
|
13
66
|
> clear_list(list_id)
|
14
67
|
|
@@ -114,6 +167,51 @@ nil (empty response body)
|
|
114
167
|
|
115
168
|
|
116
169
|
|
170
|
+
# **get_all_lists**
|
171
|
+
> get_all_lists
|
172
|
+
|
173
|
+
Get all Lists
|
174
|
+
|
175
|
+
Get all the lists for a specific user.
|
176
|
+
|
177
|
+
### Example
|
178
|
+
```ruby
|
179
|
+
# load the gem
|
180
|
+
require 'bombbomb'
|
181
|
+
# setup authorization
|
182
|
+
BombBomb.configure do |config|
|
183
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
184
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
185
|
+
end
|
186
|
+
|
187
|
+
api_instance = BombBomb::ListsApi.new
|
188
|
+
|
189
|
+
begin
|
190
|
+
#Get all Lists
|
191
|
+
api_instance.get_all_lists
|
192
|
+
rescue BombBomb::ApiError => e
|
193
|
+
puts "Exception when calling ListsApi->get_all_lists: #{e}"
|
194
|
+
end
|
195
|
+
```
|
196
|
+
|
197
|
+
### Parameters
|
198
|
+
This endpoint does not need any parameter.
|
199
|
+
|
200
|
+
### Return type
|
201
|
+
|
202
|
+
nil (empty response body)
|
203
|
+
|
204
|
+
### Authorization
|
205
|
+
|
206
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
207
|
+
|
208
|
+
### HTTP request headers
|
209
|
+
|
210
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
211
|
+
- **Accept**: application/json
|
212
|
+
|
213
|
+
|
214
|
+
|
117
215
|
# **suppress_all_in_list**
|
118
216
|
> suppress_all_in_list(list_id)
|
119
217
|
|
data/docs/PromptsApi.md
CHANGED
@@ -12,12 +12,13 @@ Method | HTTP request | Description
|
|
12
12
|
[**get_video_email_prompt**](PromptsApi.md#get_video_email_prompt) | **GET** /prompt/{id} | Gets a prompt
|
13
13
|
[**get_video_email_prompts**](PromptsApi.md#get_video_email_prompts) | **GET** /prompt/ | List prompts
|
14
14
|
[**respond_to_video_email_prompt**](PromptsApi.md#respond_to_video_email_prompt) | **POST** /prompt/{id}/response | Respond to a prompt
|
15
|
+
[**update_prompt**](PromptsApi.md#update_prompt) | **PUT** /prompts/{id} | Update Prompt
|
15
16
|
[**update_prompt_bot**](PromptsApi.md#update_prompt_bot) | **PUT** /prompts/bots/{id} | Update Prompt Bot
|
16
17
|
[**update_prompt_campaign**](PromptsApi.md#update_prompt_campaign) | **PUT** /prompts/campaigns/{id} | Update Prompt Campaign
|
17
18
|
|
18
19
|
|
19
20
|
# **create_prompt_bot**
|
20
|
-
> PromptBot create_prompt_bot(
|
21
|
+
> PromptBot create_prompt_bot(email_id, name, subject, content, contact_field_value_column, bot_type_id, template_id, opts)
|
21
22
|
|
22
23
|
Create a running Prompt Bot for a list
|
23
24
|
|
@@ -35,8 +36,6 @@ end
|
|
35
36
|
|
36
37
|
api_instance = BombBomb::PromptsApi.new
|
37
38
|
|
38
|
-
list_id = "list_id_example" # String | The list id to attach the bot to.
|
39
|
-
|
40
39
|
email_id = "email_id_example" # String | The default email to use.
|
41
40
|
|
42
41
|
name = "name_example" # String | The name of the bot.
|
@@ -52,13 +51,14 @@ bot_type_id = "bot_type_id_example" # String | The type of bot to create.
|
|
52
51
|
template_id = "template_id_example" # String | The template used to create the email id.
|
53
52
|
|
54
53
|
opts = {
|
54
|
+
list_id: "list_id_example", # String | The list id to attach the bot to.
|
55
55
|
video_id: "video_id_example", # String | The video used in the email.
|
56
56
|
end_date: "end_date_example" # String | The time frame to complete sending to the list.
|
57
57
|
}
|
58
58
|
|
59
59
|
begin
|
60
60
|
#Create a running Prompt Bot for a list
|
61
|
-
result = api_instance.create_prompt_bot(
|
61
|
+
result = api_instance.create_prompt_bot(email_id, name, subject, content, contact_field_value_column, bot_type_id, template_id, opts)
|
62
62
|
p result
|
63
63
|
rescue BombBomb::ApiError => e
|
64
64
|
puts "Exception when calling PromptsApi->create_prompt_bot: #{e}"
|
@@ -69,7 +69,6 @@ end
|
|
69
69
|
|
70
70
|
Name | Type | Description | Notes
|
71
71
|
------------- | ------------- | ------------- | -------------
|
72
|
-
**list_id** | **String**| The list id to attach the bot to. |
|
73
72
|
**email_id** | **String**| The default email to use. |
|
74
73
|
**name** | **String**| The name of the bot. |
|
75
74
|
**subject** | **String**| The subject of the default email. |
|
@@ -77,6 +76,7 @@ Name | Type | Description | Notes
|
|
77
76
|
**contact_field_value_column** | **String**| The custom field value column with dates for this bot. |
|
78
77
|
**bot_type_id** | **String**| The type of bot to create. |
|
79
78
|
**template_id** | **String**| The template used to create the email id. |
|
79
|
+
**list_id** | **String**| The list id to attach the bot to. | [optional]
|
80
80
|
**video_id** | **String**| The video used in the email. | [optional]
|
81
81
|
**end_date** | **String**| The time frame to complete sending to the list. | [optional]
|
82
82
|
|
@@ -440,8 +440,73 @@ No authorization required
|
|
440
440
|
|
441
441
|
|
442
442
|
|
443
|
+
# **update_prompt**
|
444
|
+
> update_prompt(id, opts)
|
445
|
+
|
446
|
+
Update Prompt
|
447
|
+
|
448
|
+
Updates a Prompt
|
449
|
+
|
450
|
+
### Example
|
451
|
+
```ruby
|
452
|
+
# load the gem
|
453
|
+
require 'bombbomb'
|
454
|
+
# setup authorization
|
455
|
+
BombBomb.configure do |config|
|
456
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
457
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
458
|
+
end
|
459
|
+
|
460
|
+
api_instance = BombBomb::PromptsApi.new
|
461
|
+
|
462
|
+
id = "id_example" # String | The prompt's id
|
463
|
+
|
464
|
+
opts = {
|
465
|
+
send_mechanism: "send_mechanism_example", # String | The mechanism for the prompt to be sent
|
466
|
+
facebook_message: "facebook_message_example", # String | The facebook message assigned to the prompt
|
467
|
+
twitter_message: "twitter_message_example", # String | The twitter message assigned to the prompt
|
468
|
+
video_id: "video_id_example", # String | The id of the video.
|
469
|
+
email_id: "email_id_example", # String | The id of the email.
|
470
|
+
subject: "subject_example" # String | The subject of the email
|
471
|
+
}
|
472
|
+
|
473
|
+
begin
|
474
|
+
#Update Prompt
|
475
|
+
api_instance.update_prompt(id, opts)
|
476
|
+
rescue BombBomb::ApiError => e
|
477
|
+
puts "Exception when calling PromptsApi->update_prompt: #{e}"
|
478
|
+
end
|
479
|
+
```
|
480
|
+
|
481
|
+
### Parameters
|
482
|
+
|
483
|
+
Name | Type | Description | Notes
|
484
|
+
------------- | ------------- | ------------- | -------------
|
485
|
+
**id** | **String**| The prompt's id |
|
486
|
+
**send_mechanism** | **String**| The mechanism for the prompt to be sent | [optional]
|
487
|
+
**facebook_message** | **String**| The facebook message assigned to the prompt | [optional]
|
488
|
+
**twitter_message** | **String**| The twitter message assigned to the prompt | [optional]
|
489
|
+
**video_id** | **String**| The id of the video. | [optional]
|
490
|
+
**email_id** | **String**| The id of the email. | [optional]
|
491
|
+
**subject** | **String**| The subject of the email | [optional]
|
492
|
+
|
493
|
+
### Return type
|
494
|
+
|
495
|
+
nil (empty response body)
|
496
|
+
|
497
|
+
### Authorization
|
498
|
+
|
499
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
500
|
+
|
501
|
+
### HTTP request headers
|
502
|
+
|
503
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
504
|
+
- **Accept**: application/json
|
505
|
+
|
506
|
+
|
507
|
+
|
443
508
|
# **update_prompt_bot**
|
444
|
-
> PromptBot update_prompt_bot(id,
|
509
|
+
> PromptBot update_prompt_bot(id, email_id, name, subject, content, contact_field_value_column, template_id, opts)
|
445
510
|
|
446
511
|
Update Prompt Bot
|
447
512
|
|
@@ -461,8 +526,6 @@ api_instance = BombBomb::PromptsApi.new
|
|
461
526
|
|
462
527
|
id = "id_example" # String | The bot id.
|
463
528
|
|
464
|
-
list_id = "list_id_example" # String | The list id to attach the bot to.
|
465
|
-
|
466
529
|
email_id = "email_id_example" # String | The default email to use.
|
467
530
|
|
468
531
|
name = "name_example" # String | The name of the bot.
|
@@ -476,6 +539,7 @@ contact_field_value_column = "contact_field_value_column_example" # String | The
|
|
476
539
|
template_id = "template_id_example" # String | The template used to create the email id.
|
477
540
|
|
478
541
|
opts = {
|
542
|
+
list_id: "list_id_example", # String | The list id to attach the bot to.
|
479
543
|
video_id: "video_id_example", # String | The video used in the default email.
|
480
544
|
end_date: "end_date_example", # String | The time frame to complete sending to the list.
|
481
545
|
status: "status_example" # String | The status of the bot.
|
@@ -483,7 +547,7 @@ opts = {
|
|
483
547
|
|
484
548
|
begin
|
485
549
|
#Update Prompt Bot
|
486
|
-
result = api_instance.update_prompt_bot(id,
|
550
|
+
result = api_instance.update_prompt_bot(id, email_id, name, subject, content, contact_field_value_column, template_id, opts)
|
487
551
|
p result
|
488
552
|
rescue BombBomb::ApiError => e
|
489
553
|
puts "Exception when calling PromptsApi->update_prompt_bot: #{e}"
|
@@ -495,13 +559,13 @@ end
|
|
495
559
|
Name | Type | Description | Notes
|
496
560
|
------------- | ------------- | ------------- | -------------
|
497
561
|
**id** | **String**| The bot id. |
|
498
|
-
**list_id** | **String**| The list id to attach the bot to. |
|
499
562
|
**email_id** | **String**| The default email to use. |
|
500
563
|
**name** | **String**| The name of the bot. |
|
501
564
|
**subject** | **String**| The subject of the default email. |
|
502
565
|
**content** | **String**| The content used in the default email. |
|
503
566
|
**contact_field_value_column** | **String**| The custom field value column with dates for this bot. |
|
504
567
|
**template_id** | **String**| The template used to create the email id. |
|
568
|
+
**list_id** | **String**| The list id to attach the bot to. | [optional]
|
505
569
|
**video_id** | **String**| The video used in the default email. | [optional]
|
506
570
|
**end_date** | **String**| The time frame to complete sending to the list. | [optional]
|
507
571
|
**status** | **String**| The status of the bot. | [optional]
|
@@ -546,7 +610,7 @@ opts = {
|
|
546
610
|
branded_template_id: "branded_template_id_example", # String | The template to use for branded feel emails.
|
547
611
|
personal_template_id: "personal_template_id_example", # String | The template to use for personal feel emails.
|
548
612
|
enabled: true, # BOOLEAN | Set whether the user is able to start receiving prompts.
|
549
|
-
|
613
|
+
send_mechanism: "send_mechanism_example" # String | The way to send the prompt
|
550
614
|
}
|
551
615
|
|
552
616
|
begin
|
@@ -565,7 +629,7 @@ Name | Type | Description | Notes
|
|
565
629
|
**branded_template_id** | **String**| The template to use for branded feel emails. | [optional]
|
566
630
|
**personal_template_id** | **String**| The template to use for personal feel emails. | [optional]
|
567
631
|
**enabled** | **BOOLEAN**| Set whether the user is able to start receiving prompts. | [optional]
|
568
|
-
**
|
632
|
+
**send_mechanism** | **String**| The way to send the prompt | [optional]
|
569
633
|
|
570
634
|
### Return type
|
571
635
|
|