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.
Files changed (57) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +44 -20
  3. data/bombbomb.gemspec +1 -1
  4. data/docs/AccountsApi.md +61 -28
  5. data/docs/ContactsApi.md +373 -0
  6. data/docs/EmailsApi.md +168 -0
  7. data/docs/FilesApi.md +216 -4
  8. data/docs/HostedDoc.md +13 -0
  9. data/docs/IntegrationsApi.md +62 -0
  10. data/docs/ListsApi.md +98 -0
  11. data/docs/PromptsApi.md +76 -12
  12. data/docs/SocialsApi.md +172 -71
  13. data/docs/TeamsApi.md +295 -1
  14. data/docs/VideoEmailPrompt.md +6 -0
  15. data/docs/VideosApi.md +59 -0
  16. data/lib/bombbomb/api/accounts_api.rb +59 -19
  17. data/lib/bombbomb/api/automations_api.rb +1 -1
  18. data/lib/bombbomb/api/contacts_api.rb +408 -1
  19. data/lib/bombbomb/api/curriculum_api.rb +1 -1
  20. data/lib/bombbomb/api/emails_api.rb +187 -1
  21. data/lib/bombbomb/api/files_api.rb +239 -7
  22. data/lib/bombbomb/api/integrations_api.rb +90 -0
  23. data/lib/bombbomb/api/lists_api.rb +110 -1
  24. data/lib/bombbomb/api/orders_api.rb +1 -1
  25. data/lib/bombbomb/api/prompts_api.rb +90 -20
  26. data/lib/bombbomb/api/socials_api.rb +210 -109
  27. data/lib/bombbomb/api/teams_api.rb +332 -1
  28. data/lib/bombbomb/api/utilities_api.rb +1 -1
  29. data/lib/bombbomb/api/videos_api.rb +66 -1
  30. data/lib/bombbomb/api/webhooks_api.rb +1 -1
  31. data/lib/bombbomb/api_client.rb +1 -1
  32. data/lib/bombbomb/api_error.rb +1 -1
  33. data/lib/bombbomb/configuration.rb +1 -1
  34. data/lib/bombbomb/models/bb_web_hook.rb +1 -1
  35. data/lib/bombbomb/models/curriculum.rb +1 -1
  36. data/lib/bombbomb/models/curriculum_user_progress.rb +1 -1
  37. data/lib/bombbomb/models/curriculum_with_progress.rb +1 -1
  38. data/lib/bombbomb/models/hosted_doc.rb +250 -0
  39. data/lib/bombbomb/models/inline_response_200.rb +1 -1
  40. data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
  41. data/lib/bombbomb/models/jericho_configuration.rb +1 -1
  42. data/lib/bombbomb/models/jericho_performance.rb +1 -1
  43. data/lib/bombbomb/models/o_auth_client.rb +1 -1
  44. data/lib/bombbomb/models/prompt_bot.rb +1 -1
  45. data/lib/bombbomb/models/sign_upload_request.rb +1 -1
  46. data/lib/bombbomb/models/sign_upload_response.rb +1 -1
  47. data/lib/bombbomb/models/string.rb +1 -1
  48. data/lib/bombbomb/models/team_public_representation.rb +1 -1
  49. data/lib/bombbomb/models/video_email_prompt.rb +67 -5
  50. data/lib/bombbomb/models/video_encoding_status_response.rb +1 -1
  51. data/lib/bombbomb/models/video_public_representation.rb +1 -1
  52. data/lib/bombbomb/models/video_recorder_method_response.rb +1 -1
  53. data/lib/bombbomb/version.rb +2 -2
  54. data/lib/bombbomb.rb +3 -1
  55. data/spec/api/integrations_api_spec.rb +58 -0
  56. data/spec/models/hosted_doc_spec.rb +83 -0
  57. metadata +11 -3
data/docs/ContactsApi.md CHANGED
@@ -4,7 +4,284 @@ All URIs are relative to *https://api.bombbomb.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_contacts_csv**](ContactsApi.md#add_contacts_csv) | **POST** /contacts/import_csv | Add contacts from a CSV file.
8
+ [**add_new_contact**](ContactsApi.md#add_new_contact) | **POST** /contacts/ | Add a contact.
9
+ [**add_new_custom_field**](ContactsApi.md#add_new_custom_field) | **POST** /contacts/custom_fields/ | Add custom fields.
10
+ [**add_pasted_contacts**](ContactsApi.md#add_pasted_contacts) | **POST** /contacts/paste | Add pasted contacts.
11
+ [**c_sv_to_object**](ContactsApi.md#c_sv_to_object) | **POST** /csv-to-object | Format CSV.
7
12
  [**delete_contacts**](ContactsApi.md#delete_contacts) | **PUT** /contacts/delete | Delete Contacts
13
+ [**get_contact_by_id**](ContactsApi.md#get_contact_by_id) | **GET** /contact/{id} | Get Contact Details
14
+ [**get_custom_fields**](ContactsApi.md#get_custom_fields) | **GET** /contacts/custom_fields/ | Get custom fields.
15
+
16
+
17
+ # **add_contacts_csv**
18
+ > add_contacts_csv(mapping_data, list_data)
19
+
20
+ Add contacts from a CSV file.
21
+
22
+ Add multiple contacts through the upload importer from a CSV file.
23
+
24
+ ### Example
25
+ ```ruby
26
+ # load the gem
27
+ require 'bombbomb'
28
+ # setup authorization
29
+ BombBomb.configure do |config|
30
+ # Configure OAuth2 access token for authorization: BBOAuth2
31
+ config.access_token = 'YOUR ACCESS TOKEN'
32
+ end
33
+
34
+ api_instance = BombBomb::ContactsApi.new
35
+
36
+ mapping_data = "mapping_data_example" # String | The info sent for the contacts
37
+
38
+ list_data = "list_data_example" # String | The info sent with the import for the list
39
+
40
+
41
+ begin
42
+ #Add contacts from a CSV file.
43
+ api_instance.add_contacts_csv(mapping_data, list_data)
44
+ rescue BombBomb::ApiError => e
45
+ puts "Exception when calling ContactsApi->add_contacts_csv: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **mapping_data** | **String**| The info sent for the contacts |
54
+ **list_data** | **String**| The info sent with the import for the list |
55
+
56
+ ### Return type
57
+
58
+ nil (empty response body)
59
+
60
+ ### Authorization
61
+
62
+ [BBOAuth2](../README.md#BBOAuth2)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/x-www-form-urlencoded
67
+ - **Accept**: application/json
68
+
69
+
70
+
71
+ # **add_new_contact**
72
+ > add_new_contact(contact_email, opts)
73
+
74
+ Add a contact.
75
+
76
+ Add a contact to the users list.
77
+
78
+ ### Example
79
+ ```ruby
80
+ # load the gem
81
+ require 'bombbomb'
82
+ # setup authorization
83
+ BombBomb.configure do |config|
84
+ # Configure OAuth2 access token for authorization: BBOAuth2
85
+ config.access_token = 'YOUR ACCESS TOKEN'
86
+ end
87
+
88
+ api_instance = BombBomb::ContactsApi.new
89
+
90
+ contact_email = "contact_email_example" # String | Email of the new contact we are adding
91
+
92
+ opts = {
93
+ contact_info: "contact_info_example" # String | The info sent for this contact
94
+ }
95
+
96
+ begin
97
+ #Add a contact.
98
+ api_instance.add_new_contact(contact_email, opts)
99
+ rescue BombBomb::ApiError => e
100
+ puts "Exception when calling ContactsApi->add_new_contact: #{e}"
101
+ end
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **contact_email** | **String**| Email of the new contact we are adding |
109
+ **contact_info** | **String**| The info sent for this contact | [optional]
110
+
111
+ ### Return type
112
+
113
+ nil (empty response body)
114
+
115
+ ### Authorization
116
+
117
+ [BBOAuth2](../README.md#BBOAuth2)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: application/x-www-form-urlencoded
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **add_new_custom_field**
127
+ > add_new_custom_field(field_name, opts)
128
+
129
+ Add custom fields.
130
+
131
+ Add a new custom field.
132
+
133
+ ### Example
134
+ ```ruby
135
+ # load the gem
136
+ require 'bombbomb'
137
+ # setup authorization
138
+ BombBomb.configure do |config|
139
+ # Configure OAuth2 access token for authorization: BBOAuth2
140
+ config.access_token = 'YOUR ACCESS TOKEN'
141
+ end
142
+
143
+ api_instance = BombBomb::ContactsApi.new
144
+
145
+ field_name = "field_name_example" # String | Custom field name to be added
146
+
147
+ opts = {
148
+ field_type: "field_type_example" # String | Custom field type for the field to be added
149
+ }
150
+
151
+ begin
152
+ #Add custom fields.
153
+ api_instance.add_new_custom_field(field_name, opts)
154
+ rescue BombBomb::ApiError => e
155
+ puts "Exception when calling ContactsApi->add_new_custom_field: #{e}"
156
+ end
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ Name | Type | Description | Notes
162
+ ------------- | ------------- | ------------- | -------------
163
+ **field_name** | **String**| Custom field name to be added |
164
+ **field_type** | **String**| Custom field type for the field to be added | [optional]
165
+
166
+ ### Return type
167
+
168
+ nil (empty response body)
169
+
170
+ ### Authorization
171
+
172
+ [BBOAuth2](../README.md#BBOAuth2)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: application/x-www-form-urlencoded
177
+ - **Accept**: application/json
178
+
179
+
180
+
181
+ # **add_pasted_contacts**
182
+ > add_pasted_contacts(contact_emails, opts)
183
+
184
+ Add pasted contacts.
185
+
186
+ Add the pasted contacts to the users list.
187
+
188
+ ### Example
189
+ ```ruby
190
+ # load the gem
191
+ require 'bombbomb'
192
+ # setup authorization
193
+ BombBomb.configure do |config|
194
+ # Configure OAuth2 access token for authorization: BBOAuth2
195
+ config.access_token = 'YOUR ACCESS TOKEN'
196
+ end
197
+
198
+ api_instance = BombBomb::ContactsApi.new
199
+
200
+ contact_emails = "contact_emails_example" # String | Emails array of the new contacts we are adding
201
+
202
+ opts = {
203
+ list_info: "list_info_example" # String | Information about the lists id, recalculations on totals, consent etc
204
+ }
205
+
206
+ begin
207
+ #Add pasted contacts.
208
+ api_instance.add_pasted_contacts(contact_emails, opts)
209
+ rescue BombBomb::ApiError => e
210
+ puts "Exception when calling ContactsApi->add_pasted_contacts: #{e}"
211
+ end
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ Name | Type | Description | Notes
217
+ ------------- | ------------- | ------------- | -------------
218
+ **contact_emails** | **String**| Emails array of the new contacts we are adding |
219
+ **list_info** | **String**| Information about the lists id, recalculations on totals, consent etc | [optional]
220
+
221
+ ### Return type
222
+
223
+ nil (empty response body)
224
+
225
+ ### Authorization
226
+
227
+ [BBOAuth2](../README.md#BBOAuth2)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: application/x-www-form-urlencoded
232
+ - **Accept**: application/json
233
+
234
+
235
+
236
+ # **c_sv_to_object**
237
+ > c_sv_to_object(file)
238
+
239
+ Format CSV.
240
+
241
+ Format a CSV file to an object.
242
+
243
+ ### Example
244
+ ```ruby
245
+ # load the gem
246
+ require 'bombbomb'
247
+ # setup authorization
248
+ BombBomb.configure do |config|
249
+ # Configure OAuth2 access token for authorization: BBOAuth2
250
+ config.access_token = 'YOUR ACCESS TOKEN'
251
+ end
252
+
253
+ api_instance = BombBomb::ContactsApi.new
254
+
255
+ file = "file_example" # String | The CSV file being uploaded
256
+
257
+
258
+ begin
259
+ #Format CSV.
260
+ api_instance.c_sv_to_object(file)
261
+ rescue BombBomb::ApiError => e
262
+ puts "Exception when calling ContactsApi->c_sv_to_object: #{e}"
263
+ end
264
+ ```
265
+
266
+ ### Parameters
267
+
268
+ Name | Type | Description | Notes
269
+ ------------- | ------------- | ------------- | -------------
270
+ **file** | **String**| The CSV file being uploaded |
271
+
272
+ ### Return type
273
+
274
+ nil (empty response body)
275
+
276
+ ### Authorization
277
+
278
+ [BBOAuth2](../README.md#BBOAuth2)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: application/x-www-form-urlencoded
283
+ - **Accept**: application/json
284
+
8
285
 
9
286
 
10
287
  # **delete_contacts**
@@ -58,3 +335,99 @@ nil (empty response body)
58
335
 
59
336
 
60
337
 
338
+ # **get_contact_by_id**
339
+ > get_contact_by_id(id)
340
+
341
+ Get Contact Details
342
+
343
+ Get the contact details
344
+
345
+ ### Example
346
+ ```ruby
347
+ # load the gem
348
+ require 'bombbomb'
349
+ # setup authorization
350
+ BombBomb.configure do |config|
351
+ # Configure OAuth2 access token for authorization: BBOAuth2
352
+ config.access_token = 'YOUR ACCESS TOKEN'
353
+ end
354
+
355
+ api_instance = BombBomb::ContactsApi.new
356
+
357
+ id = "id_example" # String | Guid for the contact.
358
+
359
+
360
+ begin
361
+ #Get Contact Details
362
+ api_instance.get_contact_by_id(id)
363
+ rescue BombBomb::ApiError => e
364
+ puts "Exception when calling ContactsApi->get_contact_by_id: #{e}"
365
+ end
366
+ ```
367
+
368
+ ### Parameters
369
+
370
+ Name | Type | Description | Notes
371
+ ------------- | ------------- | ------------- | -------------
372
+ **id** | **String**| Guid for the contact. |
373
+
374
+ ### Return type
375
+
376
+ nil (empty response body)
377
+
378
+ ### Authorization
379
+
380
+ [BBOAuth2](../README.md#BBOAuth2)
381
+
382
+ ### HTTP request headers
383
+
384
+ - **Content-Type**: application/x-www-form-urlencoded
385
+ - **Accept**: application/json
386
+
387
+
388
+
389
+ # **get_custom_fields**
390
+ > get_custom_fields
391
+
392
+ Get custom fields.
393
+
394
+ Get the current users custom fields.
395
+
396
+ ### Example
397
+ ```ruby
398
+ # load the gem
399
+ require 'bombbomb'
400
+ # setup authorization
401
+ BombBomb.configure do |config|
402
+ # Configure OAuth2 access token for authorization: BBOAuth2
403
+ config.access_token = 'YOUR ACCESS TOKEN'
404
+ end
405
+
406
+ api_instance = BombBomb::ContactsApi.new
407
+
408
+ begin
409
+ #Get custom fields.
410
+ api_instance.get_custom_fields
411
+ rescue BombBomb::ApiError => e
412
+ puts "Exception when calling ContactsApi->get_custom_fields: #{e}"
413
+ end
414
+ ```
415
+
416
+ ### Parameters
417
+ This endpoint does not need any parameter.
418
+
419
+ ### Return type
420
+
421
+ nil (empty response body)
422
+
423
+ ### Authorization
424
+
425
+ [BBOAuth2](../README.md#BBOAuth2)
426
+
427
+ ### HTTP request headers
428
+
429
+ - **Content-Type**: application/x-www-form-urlencoded
430
+ - **Accept**: application/json
431
+
432
+
433
+
data/docs/EmailsApi.md CHANGED
@@ -5,9 +5,12 @@ All URIs are relative to *https://api.bombbomb.com/v2*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**create_printing_press_email**](EmailsApi.md#create_printing_press_email) | **POST** /emails/print | Create an Email with Printing Press
8
+ [**get_all_templates_for_current_user**](EmailsApi.md#get_all_templates_for_current_user) | **GET** /emails/templates | Get all user templates
8
9
  [**get_email_tracking**](EmailsApi.md#get_email_tracking) | **GET** /emails/{emailId}/tracking | Get Email Tracking
9
10
  [**get_email_tracking_interactions**](EmailsApi.md#get_email_tracking_interactions) | **GET** /emails/{emailId}/tracking/interactions | Get Email Tracking Interactions
10
11
  [**get_hourly_email_tracking**](EmailsApi.md#get_hourly_email_tracking) | **GET** /emails/{emailId}/tracking/hourly | Get Hourly Email Tracking
12
+ [**get_quick_send_templates**](EmailsApi.md#get_quick_send_templates) | **GET** /emails/quicksend/templates | Get all quicksend templates
13
+ [**video_quick_sender**](EmailsApi.md#video_quick_sender) | **POST** /emails/quicksend | Send a quicksend email
11
14
 
12
15
 
13
16
  # **create_printing_press_email**
@@ -72,6 +75,58 @@ nil (empty response body)
72
75
 
73
76
 
74
77
 
78
+ # **get_all_templates_for_current_user**
79
+ > get_all_templates_for_current_user(opts)
80
+
81
+ Get all user templates
82
+
83
+ Get all templates accessible to the current user
84
+
85
+ ### Example
86
+ ```ruby
87
+ # load the gem
88
+ require 'bombbomb'
89
+ # setup authorization
90
+ BombBomb.configure do |config|
91
+ # Configure OAuth2 access token for authorization: BBOAuth2
92
+ config.access_token = 'YOUR ACCESS TOKEN'
93
+ end
94
+
95
+ api_instance = BombBomb::EmailsApi.new
96
+
97
+ opts = {
98
+ quick_send_only: true # BOOLEAN | Whether to return only quick send templates.
99
+ }
100
+
101
+ begin
102
+ #Get all user templates
103
+ api_instance.get_all_templates_for_current_user(opts)
104
+ rescue BombBomb::ApiError => e
105
+ puts "Exception when calling EmailsApi->get_all_templates_for_current_user: #{e}"
106
+ end
107
+ ```
108
+
109
+ ### Parameters
110
+
111
+ Name | Type | Description | Notes
112
+ ------------- | ------------- | ------------- | -------------
113
+ **quick_send_only** | **BOOLEAN**| Whether to return only quick send templates. | [optional]
114
+
115
+ ### Return type
116
+
117
+ nil (empty response body)
118
+
119
+ ### Authorization
120
+
121
+ [BBOAuth2](../README.md#BBOAuth2)
122
+
123
+ ### HTTP request headers
124
+
125
+ - **Content-Type**: application/x-www-form-urlencoded
126
+ - **Accept**: application/json
127
+
128
+
129
+
75
130
  # **get_email_tracking**
76
131
  > get_email_tracking(email_id, opts)
77
132
 
@@ -243,3 +298,116 @@ nil (empty response body)
243
298
 
244
299
 
245
300
 
301
+ # **get_quick_send_templates**
302
+ > get_quick_send_templates
303
+
304
+ Get all quicksend templates
305
+
306
+ Get all quicksend templates accessible to the user.
307
+
308
+ ### Example
309
+ ```ruby
310
+ # load the gem
311
+ require 'bombbomb'
312
+ # setup authorization
313
+ BombBomb.configure do |config|
314
+ # Configure OAuth2 access token for authorization: BBOAuth2
315
+ config.access_token = 'YOUR ACCESS TOKEN'
316
+ end
317
+
318
+ api_instance = BombBomb::EmailsApi.new
319
+
320
+ begin
321
+ #Get all quicksend templates
322
+ api_instance.get_quick_send_templates
323
+ rescue BombBomb::ApiError => e
324
+ puts "Exception when calling EmailsApi->get_quick_send_templates: #{e}"
325
+ end
326
+ ```
327
+
328
+ ### Parameters
329
+ This endpoint does not need any parameter.
330
+
331
+ ### Return type
332
+
333
+ nil (empty response body)
334
+
335
+ ### Authorization
336
+
337
+ [BBOAuth2](../README.md#BBOAuth2)
338
+
339
+ ### HTTP request headers
340
+
341
+ - **Content-Type**: application/x-www-form-urlencoded
342
+ - **Accept**: application/json
343
+
344
+
345
+
346
+ # **video_quick_sender**
347
+ > video_quick_sender(opts)
348
+
349
+ Send a quicksend email
350
+
351
+ Send a quicksend video email to the list or users provided.
352
+
353
+ ### Example
354
+ ```ruby
355
+ # load the gem
356
+ require 'bombbomb'
357
+ # setup authorization
358
+ BombBomb.configure do |config|
359
+ # Configure OAuth2 access token for authorization: BBOAuth2
360
+ config.access_token = 'YOUR ACCESS TOKEN'
361
+ end
362
+
363
+ api_instance = BombBomb::EmailsApi.new
364
+
365
+ opts = {
366
+ video_id: "video_id_example", # String | A guid id for the video.
367
+ email_addresses: "email_addresses_example", # String | A semi-colon separated list of email addresses to send to.
368
+ subject: "subject_example", # String | Subject line for the email.
369
+ message: "message_example", # String | Message for the body of the email.
370
+ list_ids: "list_ids_example", # String | An array of list ids
371
+ scheduled_send_timestamp: 56, # Integer | When to schedule the send (seconds since epoch). null value means send immediately.
372
+ extended_properties: "extended_properties_example", # String | Bool value that when checked will send back both emailId as well as extra properties
373
+ template_id: "template_id_example", # String | Id of a template to use for this send. A null value means use the default for this user.
374
+ strip_html: "strip_html_example" # String | remove HTML elements
375
+ }
376
+
377
+ begin
378
+ #Send a quicksend email
379
+ api_instance.video_quick_sender(opts)
380
+ rescue BombBomb::ApiError => e
381
+ puts "Exception when calling EmailsApi->video_quick_sender: #{e}"
382
+ end
383
+ ```
384
+
385
+ ### Parameters
386
+
387
+ Name | Type | Description | Notes
388
+ ------------- | ------------- | ------------- | -------------
389
+ **video_id** | **String**| A guid id for the video. | [optional]
390
+ **email_addresses** | **String**| A semi-colon separated list of email addresses to send to. | [optional]
391
+ **subject** | **String**| Subject line for the email. | [optional]
392
+ **message** | **String**| Message for the body of the email. | [optional]
393
+ **list_ids** | **String**| An array of list ids | [optional]
394
+ **scheduled_send_timestamp** | **Integer**| When to schedule the send (seconds since epoch). null value means send immediately. | [optional]
395
+ **extended_properties** | **String**| Bool value that when checked will send back both emailId as well as extra properties | [optional]
396
+ **template_id** | **String**| Id of a template to use for this send. A null value means use the default for this user. | [optional]
397
+ **strip_html** | **String**| remove HTML elements | [optional]
398
+
399
+ ### Return type
400
+
401
+ nil (empty response body)
402
+
403
+ ### Authorization
404
+
405
+ [BBOAuth2](../README.md#BBOAuth2)
406
+
407
+ ### HTTP request headers
408
+
409
+ - **Content-Type**: application/x-www-form-urlencoded
410
+ - **Accept**: application/json
411
+
412
+
413
+