bombbomb 2.0.25797 → 2.0.25798
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +68 -33
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AccountsApi.md +164 -5
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/ContactsApi.md +9 -6
- data/docs/EmailsApi.md +220 -0
- data/docs/FormsApi.md +60 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/IntegrationsApi.md +223 -0
- data/docs/JerichoConfiguration.md +2 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptSocialPrompt.md +20 -0
- data/docs/PromptsApi.md +230 -3
- data/docs/SocialsApi.md +167 -2
- data/docs/TeamsApi.md +300 -16
- data/docs/UsersApi.md +100 -0
- data/docs/VideoEmailPrompt.md +15 -15
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +8 -14
- data/lib/bombbomb/api/accounts_api.rb +189 -51
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +58 -86
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +262 -66
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +77 -0
- data/lib/bombbomb/api/integrations_api.rb +238 -20
- data/lib/bombbomb/api/lists_api.rb +32 -53
- data/lib/bombbomb/api/orders_api.rb +8 -21
- data/lib/bombbomb/api/prompts_api.rb +347 -112
- data/lib/bombbomb/api/socials_api.rb +242 -87
- data/lib/bombbomb/api/teams_api.rb +485 -193
- data/lib/bombbomb/api/users_api.rb +119 -0
- data/lib/bombbomb/api/utilities_api.rb +23 -44
- data/lib/bombbomb/api/videos_api.rb +38 -55
- data/lib/bombbomb/api/webhooks_api.rb +23 -50
- data/lib/bombbomb/api_client.rb +55 -45
- data/lib/bombbomb/api_error.rb +9 -18
- data/lib/bombbomb/configuration.rb +8 -13
- data/lib/bombbomb/models/bb_web_hook.rb +6 -17
- data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
- data/lib/bombbomb/models/curriculum.rb +6 -17
- data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
- data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
- data/lib/bombbomb/models/hosted_doc.rb +6 -17
- data/lib/bombbomb/models/inline_response_200.rb +7 -18
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +34 -21
- data/lib/bombbomb/models/jericho_performance.rb +6 -17
- data/lib/bombbomb/models/o_auth_client.rb +6 -17
- data/lib/bombbomb/models/prompt_bot.rb +6 -17
- data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
- data/lib/bombbomb/models/prompt_overview.rb +219 -0
- data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
- data/lib/bombbomb/models/sign_upload_request.rb +6 -17
- data/lib/bombbomb/models/sign_upload_response.rb +6 -17
- data/lib/bombbomb/models/string.rb +6 -17
- data/lib/bombbomb/models/team_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_email_prompt.rb +128 -144
- data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
- data/lib/bombbomb/models/video_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
- data/lib/bombbomb/version.rb +3 -14
- data/spec/api/forms_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +57 -0
- data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
- data/spec/models/prompt_monthly_performance_spec.rb +60 -0
- data/spec/models/prompt_overview_spec.rb +60 -0
- data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
- metadata +40 -20
data/docs/AutomationsApi.md
CHANGED
@@ -6,6 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**get_drip_drop_stats**](AutomationsApi.md#get_drip_drop_stats) | **GET** /automation/{dripId}/dripdrop/{dripDropId}/stats | Get Automation Email Stats
|
8
8
|
[**get_drip_stats**](AutomationsApi.md#get_drip_stats) | **GET** /automation/{id}/stats | Get Automation Stats
|
9
|
+
[**get_scheduling_status**](AutomationsApi.md#get_scheduling_status) | **GET** /automation/{id}/scheduling/status | Get the number of pending scheduling calculations
|
9
10
|
|
10
11
|
|
11
12
|
# **get_drip_drop_stats**
|
@@ -113,3 +114,54 @@ nil (empty response body)
|
|
113
114
|
|
114
115
|
|
115
116
|
|
117
|
+
# **get_scheduling_status**
|
118
|
+
> get_scheduling_status(id)
|
119
|
+
|
120
|
+
Get the number of pending scheduling calculations
|
121
|
+
|
122
|
+
Get the number of pending scheduling calculations
|
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::AutomationsApi.new
|
135
|
+
|
136
|
+
id = "id_example" # String | The id of the automation
|
137
|
+
|
138
|
+
|
139
|
+
begin
|
140
|
+
#Get the number of pending scheduling calculations
|
141
|
+
api_instance.get_scheduling_status(id)
|
142
|
+
rescue BombBomb::ApiError => e
|
143
|
+
puts "Exception when calling AutomationsApi->get_scheduling_status: #{e}"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
### Parameters
|
148
|
+
|
149
|
+
Name | Type | Description | Notes
|
150
|
+
------------- | ------------- | ------------- | -------------
|
151
|
+
**id** | **String**| The id of the automation |
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
nil (empty response body)
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
164
|
+
- **Accept**: application/json
|
165
|
+
|
166
|
+
|
167
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# BombBomb::ClientGroupAssetMetaData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**user_id** | **String** | | [optional]
|
9
|
+
**thumb_url** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/ContactsApi.md
CHANGED
@@ -285,11 +285,11 @@ nil (empty response body)
|
|
285
285
|
|
286
286
|
|
287
287
|
# **delete_contacts**
|
288
|
-
> delete_contacts(
|
288
|
+
> delete_contacts(opts)
|
289
289
|
|
290
290
|
Delete Contacts
|
291
291
|
|
292
|
-
Delete contacts
|
292
|
+
Delete all contacts within a list, or provide a comma separated list of contactIds to delete.
|
293
293
|
|
294
294
|
### Example
|
295
295
|
```ruby
|
@@ -303,12 +303,14 @@ end
|
|
303
303
|
|
304
304
|
api_instance = BombBomb::ContactsApi.new
|
305
305
|
|
306
|
-
|
307
|
-
|
306
|
+
opts = {
|
307
|
+
list_id: "list_id_example", # String | The list of contacts to be deleted.
|
308
|
+
contact_ids: "contact_ids_example" # String | comma separated list of contact ids to delete
|
309
|
+
}
|
308
310
|
|
309
311
|
begin
|
310
312
|
#Delete Contacts
|
311
|
-
api_instance.delete_contacts(
|
313
|
+
api_instance.delete_contacts(opts)
|
312
314
|
rescue BombBomb::ApiError => e
|
313
315
|
puts "Exception when calling ContactsApi->delete_contacts: #{e}"
|
314
316
|
end
|
@@ -318,7 +320,8 @@ end
|
|
318
320
|
|
319
321
|
Name | Type | Description | Notes
|
320
322
|
------------- | ------------- | ------------- | -------------
|
321
|
-
**list_id** | **String**| The list of contacts to be deleted. |
|
323
|
+
**list_id** | **String**| The list of contacts to be deleted. | [optional]
|
324
|
+
**contact_ids** | **String**| comma separated list of contact ids to delete | [optional]
|
322
325
|
|
323
326
|
### Return type
|
324
327
|
|
data/docs/EmailsApi.md
CHANGED
@@ -9,7 +9,11 @@ Method | HTTP request | Description
|
|
9
9
|
[**get_email_tracking**](EmailsApi.md#get_email_tracking) | **GET** /emails/{emailId}/tracking | Get Email Tracking
|
10
10
|
[**get_email_tracking_interactions**](EmailsApi.md#get_email_tracking_interactions) | **GET** /emails/{emailId}/tracking/interactions | Get Email Tracking Interactions
|
11
11
|
[**get_hourly_email_tracking**](EmailsApi.md#get_hourly_email_tracking) | **GET** /emails/{emailId}/tracking/hourly | Get Hourly Email Tracking
|
12
|
+
[**get_live_fire_data**](EmailsApi.md#get_live_fire_data) | **GET** /emails/livefire | Get livefire feed data
|
12
13
|
[**get_quick_send_templates**](EmailsApi.md#get_quick_send_templates) | **GET** /emails/quicksend/templates | Get all quicksend templates
|
14
|
+
[**get_template_html_for_template_id**](EmailsApi.md#get_template_html_for_template_id) | **GET** /emails/templates/{templateId}/html | Get the HTML for a given template
|
15
|
+
[**get_video_quick_sender_data**](EmailsApi.md#get_video_quick_sender_data) | **GET** /emails/quicksend | Get quicksend data
|
16
|
+
[**save_quick_sender_settings**](EmailsApi.md#save_quick_sender_settings) | **POST** /emails/quicksend/settings | Save quicksender settings
|
13
17
|
[**video_quick_sender**](EmailsApi.md#video_quick_sender) | **POST** /emails/quicksend | Send a quicksend email
|
14
18
|
|
15
19
|
|
@@ -298,6 +302,51 @@ nil (empty response body)
|
|
298
302
|
|
299
303
|
|
300
304
|
|
305
|
+
# **get_live_fire_data**
|
306
|
+
> get_live_fire_data
|
307
|
+
|
308
|
+
Get livefire feed data
|
309
|
+
|
310
|
+
Get the user data for the live fire feed emails
|
311
|
+
|
312
|
+
### Example
|
313
|
+
```ruby
|
314
|
+
# load the gem
|
315
|
+
require 'bombbomb'
|
316
|
+
# setup authorization
|
317
|
+
BombBomb.configure do |config|
|
318
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
319
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = BombBomb::EmailsApi.new
|
323
|
+
|
324
|
+
begin
|
325
|
+
#Get livefire feed data
|
326
|
+
api_instance.get_live_fire_data
|
327
|
+
rescue BombBomb::ApiError => e
|
328
|
+
puts "Exception when calling EmailsApi->get_live_fire_data: #{e}"
|
329
|
+
end
|
330
|
+
```
|
331
|
+
|
332
|
+
### Parameters
|
333
|
+
This endpoint does not need any parameter.
|
334
|
+
|
335
|
+
### Return type
|
336
|
+
|
337
|
+
nil (empty response body)
|
338
|
+
|
339
|
+
### Authorization
|
340
|
+
|
341
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
342
|
+
|
343
|
+
### HTTP request headers
|
344
|
+
|
345
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
346
|
+
- **Accept**: application/json
|
347
|
+
|
348
|
+
|
349
|
+
|
301
350
|
# **get_quick_send_templates**
|
302
351
|
> get_quick_send_templates
|
303
352
|
|
@@ -343,6 +392,177 @@ nil (empty response body)
|
|
343
392
|
|
344
393
|
|
345
394
|
|
395
|
+
# **get_template_html_for_template_id**
|
396
|
+
> get_template_html_for_template_id(template_id, opts)
|
397
|
+
|
398
|
+
Get the HTML for a given template
|
399
|
+
|
400
|
+
Get the HTML for a given template, with or without rendered variables
|
401
|
+
|
402
|
+
### Example
|
403
|
+
```ruby
|
404
|
+
# load the gem
|
405
|
+
require 'bombbomb'
|
406
|
+
# setup authorization
|
407
|
+
BombBomb.configure do |config|
|
408
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
409
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
410
|
+
end
|
411
|
+
|
412
|
+
api_instance = BombBomb::EmailsApi.new
|
413
|
+
|
414
|
+
template_id = "template_id_example" # String | The id of the template.
|
415
|
+
|
416
|
+
opts = {
|
417
|
+
render_variables: "render_variables_example" # String | Whether to render profile variables in the returned HTML.
|
418
|
+
}
|
419
|
+
|
420
|
+
begin
|
421
|
+
#Get the HTML for a given template
|
422
|
+
api_instance.get_template_html_for_template_id(template_id, opts)
|
423
|
+
rescue BombBomb::ApiError => e
|
424
|
+
puts "Exception when calling EmailsApi->get_template_html_for_template_id: #{e}"
|
425
|
+
end
|
426
|
+
```
|
427
|
+
|
428
|
+
### Parameters
|
429
|
+
|
430
|
+
Name | Type | Description | Notes
|
431
|
+
------------- | ------------- | ------------- | -------------
|
432
|
+
**template_id** | **String**| The id of the template. |
|
433
|
+
**render_variables** | **String**| Whether to render profile variables in the returned HTML. | [optional]
|
434
|
+
|
435
|
+
### Return type
|
436
|
+
|
437
|
+
nil (empty response body)
|
438
|
+
|
439
|
+
### Authorization
|
440
|
+
|
441
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
442
|
+
|
443
|
+
### HTTP request headers
|
444
|
+
|
445
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
446
|
+
- **Accept**: application/json
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
# **get_video_quick_sender_data**
|
451
|
+
> get_video_quick_sender_data(opts)
|
452
|
+
|
453
|
+
Get quicksend data
|
454
|
+
|
455
|
+
Get the user data for quicksender, including templates and lists.
|
456
|
+
|
457
|
+
### Example
|
458
|
+
```ruby
|
459
|
+
# load the gem
|
460
|
+
require 'bombbomb'
|
461
|
+
# setup authorization
|
462
|
+
BombBomb.configure do |config|
|
463
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
464
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
465
|
+
end
|
466
|
+
|
467
|
+
api_instance = BombBomb::EmailsApi.new
|
468
|
+
|
469
|
+
opts = {
|
470
|
+
message: "message_example", # String | A message for the video content.
|
471
|
+
subject: "subject_example", # String | A subject for the video content.
|
472
|
+
video_id: "video_id_example", # String | A video ID.
|
473
|
+
template_id: "template_id_example", # String | A template ID.
|
474
|
+
comma_delim_emails: "comma_delim_emails_example" # String | Comma delimited emails
|
475
|
+
}
|
476
|
+
|
477
|
+
begin
|
478
|
+
#Get quicksend data
|
479
|
+
api_instance.get_video_quick_sender_data(opts)
|
480
|
+
rescue BombBomb::ApiError => e
|
481
|
+
puts "Exception when calling EmailsApi->get_video_quick_sender_data: #{e}"
|
482
|
+
end
|
483
|
+
```
|
484
|
+
|
485
|
+
### Parameters
|
486
|
+
|
487
|
+
Name | Type | Description | Notes
|
488
|
+
------------- | ------------- | ------------- | -------------
|
489
|
+
**message** | **String**| A message for the video content. | [optional]
|
490
|
+
**subject** | **String**| A subject for the video content. | [optional]
|
491
|
+
**video_id** | **String**| A video ID. | [optional]
|
492
|
+
**template_id** | **String**| A template ID. | [optional]
|
493
|
+
**comma_delim_emails** | **String**| Comma delimited emails | [optional]
|
494
|
+
|
495
|
+
### Return type
|
496
|
+
|
497
|
+
nil (empty response body)
|
498
|
+
|
499
|
+
### Authorization
|
500
|
+
|
501
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
502
|
+
|
503
|
+
### HTTP request headers
|
504
|
+
|
505
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
506
|
+
- **Accept**: application/json
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
# **save_quick_sender_settings**
|
511
|
+
> save_quick_sender_settings(opts)
|
512
|
+
|
513
|
+
Save quicksender settings
|
514
|
+
|
515
|
+
Save the quicksender notification and default template settings
|
516
|
+
|
517
|
+
### Example
|
518
|
+
```ruby
|
519
|
+
# load the gem
|
520
|
+
require 'bombbomb'
|
521
|
+
# setup authorization
|
522
|
+
BombBomb.configure do |config|
|
523
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
524
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
525
|
+
end
|
526
|
+
|
527
|
+
api_instance = BombBomb::EmailsApi.new
|
528
|
+
|
529
|
+
opts = {
|
530
|
+
alert_on_play: "alert_on_play_example", # String | A preference setting for whether or not to notify user on quicksend email video plays.
|
531
|
+
alert_on_open: "alert_on_open_example", # String | A preference setting for whether or not to notify user on quicksend email opens.
|
532
|
+
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.
|
533
|
+
}
|
534
|
+
|
535
|
+
begin
|
536
|
+
#Save quicksender settings
|
537
|
+
api_instance.save_quick_sender_settings(opts)
|
538
|
+
rescue BombBomb::ApiError => e
|
539
|
+
puts "Exception when calling EmailsApi->save_quick_sender_settings: #{e}"
|
540
|
+
end
|
541
|
+
```
|
542
|
+
|
543
|
+
### Parameters
|
544
|
+
|
545
|
+
Name | Type | Description | Notes
|
546
|
+
------------- | ------------- | ------------- | -------------
|
547
|
+
**alert_on_play** | **String**| A preference setting for whether or not to notify user on quicksend email video plays. | [optional]
|
548
|
+
**alert_on_open** | **String**| A preference setting for whether or not to notify user on quicksend email opens. | [optional]
|
549
|
+
**template_id** | **String**| Id of a template to use for this send. A null value means use the default for this user. | [optional]
|
550
|
+
|
551
|
+
### Return type
|
552
|
+
|
553
|
+
nil (empty response body)
|
554
|
+
|
555
|
+
### Authorization
|
556
|
+
|
557
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
558
|
+
|
559
|
+
### HTTP request headers
|
560
|
+
|
561
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
562
|
+
- **Accept**: application/json
|
563
|
+
|
564
|
+
|
565
|
+
|
346
566
|
# **video_quick_sender**
|
347
567
|
> video_quick_sender(opts)
|
348
568
|
|
data/docs/FormsApi.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# BombBomb::FormsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.bombbomb.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_form_tracking_as_csv**](FormsApi.md#get_form_tracking_as_csv) | **GET** /forms/{id}/tracking/export | Get csv
|
8
|
+
|
9
|
+
|
10
|
+
# **get_form_tracking_as_csv**
|
11
|
+
> get_form_tracking_as_csv(id)
|
12
|
+
|
13
|
+
Get csv
|
14
|
+
|
15
|
+
Get form tracking as csv
|
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::FormsApi.new
|
28
|
+
|
29
|
+
id = "id_example" # String | Id of the form
|
30
|
+
|
31
|
+
|
32
|
+
begin
|
33
|
+
#Get csv
|
34
|
+
api_instance.get_form_tracking_as_csv(id)
|
35
|
+
rescue BombBomb::ApiError => e
|
36
|
+
puts "Exception when calling FormsApi->get_form_tracking_as_csv: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**id** | **String**| Id of the form |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
nil (empty response body)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
59
|
+
|
60
|
+
|
data/docs/InlineResponse200.md
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**total_pages** | **Integer** | | [optional]
|
7
|
-
**items** | [**Array<
|
7
|
+
**items** | [**Array<ClientGroupAssetMetaData>**](ClientGroupAssetMetaData.md) | | [optional]
|
8
8
|
|
9
9
|
|
data/docs/IntegrationsApi.md
CHANGED
@@ -4,9 +4,232 @@ All URIs are relative to *https://api.bombbomb.com/v2*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**connect_integration**](IntegrationsApi.md#connect_integration) | **POST** /integrations | Activate an integration for a user.
|
8
|
+
[**delete_integration**](IntegrationsApi.md#delete_integration) | **DELETE** /integrations | Remove an integration for a user.
|
9
|
+
[**get_integration_health**](IntegrationsApi.md#get_integration_health) | **GET** /integrations/health/{code} | Get health for a given integration
|
10
|
+
[**get_integration_page_components**](IntegrationsApi.md#get_integration_page_components) | **GET** /integrations/pageComponents | Get page components for a given integration
|
7
11
|
[**sync_users_integrated_lists**](IntegrationsApi.md#sync_users_integrated_lists) | **GET** /integrations/sync | Synchronize your integration list or lists.
|
8
12
|
|
9
13
|
|
14
|
+
# **connect_integration**
|
15
|
+
> connect_integration(code, opts)
|
16
|
+
|
17
|
+
Activate an integration for a user.
|
18
|
+
|
19
|
+
Provide the correct parameters to enable an integration. Required Parameters vary based on the desired integration. Integrations requiring OAuth will provide the OAuth link that the user must be presented.
|
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::IntegrationsApi.new
|
32
|
+
|
33
|
+
code = "code_example" # String | The identifier of the integration.
|
34
|
+
|
35
|
+
opts = {
|
36
|
+
key: "key_example", # String | The key value.
|
37
|
+
secret: "secret_example", # String | The secret value.
|
38
|
+
token: "token_example", # String | The token value.
|
39
|
+
data: "data_example", # String | The data value as JSON.
|
40
|
+
overwrite: "overwrite_example" # String | Boolean value to know whether or not to delete the integration if it already exists
|
41
|
+
}
|
42
|
+
|
43
|
+
begin
|
44
|
+
#Activate an integration for a user.
|
45
|
+
api_instance.connect_integration(code, opts)
|
46
|
+
rescue BombBomb::ApiError => e
|
47
|
+
puts "Exception when calling IntegrationsApi->connect_integration: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**code** | **String**| The identifier of the integration. |
|
56
|
+
**key** | **String**| The key value. | [optional]
|
57
|
+
**secret** | **String**| The secret value. | [optional]
|
58
|
+
**token** | **String**| The token value. | [optional]
|
59
|
+
**data** | **String**| The data value as JSON. | [optional]
|
60
|
+
**overwrite** | **String**| Boolean value to know whether or not to delete the integration if it already exists | [optional]
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
nil (empty response body)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
# **delete_integration**
|
78
|
+
> delete_integration(opts)
|
79
|
+
|
80
|
+
Remove an integration for a user.
|
81
|
+
|
82
|
+
Remove an integration by providing the integration id or integration code. Only provide one of the parameters.
|
83
|
+
|
84
|
+
### Example
|
85
|
+
```ruby
|
86
|
+
# load the gem
|
87
|
+
require 'bombbomb'
|
88
|
+
# setup authorization
|
89
|
+
BombBomb.configure do |config|
|
90
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
91
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
92
|
+
end
|
93
|
+
|
94
|
+
api_instance = BombBomb::IntegrationsApi.new
|
95
|
+
|
96
|
+
opts = {
|
97
|
+
id: "id_example", # String | Integration ID
|
98
|
+
code: "code_example" # String | Integration Code
|
99
|
+
}
|
100
|
+
|
101
|
+
begin
|
102
|
+
#Remove an integration for a user.
|
103
|
+
api_instance.delete_integration(opts)
|
104
|
+
rescue BombBomb::ApiError => e
|
105
|
+
puts "Exception when calling IntegrationsApi->delete_integration: #{e}"
|
106
|
+
end
|
107
|
+
```
|
108
|
+
|
109
|
+
### Parameters
|
110
|
+
|
111
|
+
Name | Type | Description | Notes
|
112
|
+
------------- | ------------- | ------------- | -------------
|
113
|
+
**id** | **String**| Integration ID | [optional]
|
114
|
+
**code** | **String**| Integration Code | [optional]
|
115
|
+
|
116
|
+
### Return type
|
117
|
+
|
118
|
+
nil (empty response body)
|
119
|
+
|
120
|
+
### Authorization
|
121
|
+
|
122
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
123
|
+
|
124
|
+
### HTTP request headers
|
125
|
+
|
126
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
127
|
+
- **Accept**: application/json
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
# **get_integration_health**
|
132
|
+
> get_integration_health(code)
|
133
|
+
|
134
|
+
Get health for a given integration
|
135
|
+
|
136
|
+
Get health for an integration.
|
137
|
+
|
138
|
+
### Example
|
139
|
+
```ruby
|
140
|
+
# load the gem
|
141
|
+
require 'bombbomb'
|
142
|
+
# setup authorization
|
143
|
+
BombBomb.configure do |config|
|
144
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
145
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
146
|
+
end
|
147
|
+
|
148
|
+
api_instance = BombBomb::IntegrationsApi.new
|
149
|
+
|
150
|
+
code = "code_example" # String | The integration code for which to retrieve the information from
|
151
|
+
|
152
|
+
|
153
|
+
begin
|
154
|
+
#Get health for a given integration
|
155
|
+
api_instance.get_integration_health(code)
|
156
|
+
rescue BombBomb::ApiError => e
|
157
|
+
puts "Exception when calling IntegrationsApi->get_integration_health: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
Name | Type | Description | Notes
|
164
|
+
------------- | ------------- | ------------- | -------------
|
165
|
+
**code** | **String**| The integration code for which to retrieve the information from |
|
166
|
+
|
167
|
+
### Return type
|
168
|
+
|
169
|
+
nil (empty response body)
|
170
|
+
|
171
|
+
### Authorization
|
172
|
+
|
173
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
174
|
+
|
175
|
+
### HTTP request headers
|
176
|
+
|
177
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
178
|
+
- **Accept**: application/json
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
# **get_integration_page_components**
|
183
|
+
> get_integration_page_components(integration_name)
|
184
|
+
|
185
|
+
Get page components for a given integration
|
186
|
+
|
187
|
+
Get all page components for an integration.
|
188
|
+
|
189
|
+
### Example
|
190
|
+
```ruby
|
191
|
+
# load the gem
|
192
|
+
require 'bombbomb'
|
193
|
+
# setup authorization
|
194
|
+
BombBomb.configure do |config|
|
195
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
196
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
197
|
+
end
|
198
|
+
|
199
|
+
api_instance = BombBomb::IntegrationsApi.new
|
200
|
+
|
201
|
+
integration_name = "integration_name_example" # String | The integration for which to retrieve HTML page components.
|
202
|
+
|
203
|
+
|
204
|
+
begin
|
205
|
+
#Get page components for a given integration
|
206
|
+
api_instance.get_integration_page_components(integration_name)
|
207
|
+
rescue BombBomb::ApiError => e
|
208
|
+
puts "Exception when calling IntegrationsApi->get_integration_page_components: #{e}"
|
209
|
+
end
|
210
|
+
```
|
211
|
+
|
212
|
+
### Parameters
|
213
|
+
|
214
|
+
Name | Type | Description | Notes
|
215
|
+
------------- | ------------- | ------------- | -------------
|
216
|
+
**integration_name** | **String**| The integration for which to retrieve HTML page components. |
|
217
|
+
|
218
|
+
### Return type
|
219
|
+
|
220
|
+
nil (empty response body)
|
221
|
+
|
222
|
+
### Authorization
|
223
|
+
|
224
|
+
[BBOAuth2](../README.md#BBOAuth2)
|
225
|
+
|
226
|
+
### HTTP request headers
|
227
|
+
|
228
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
229
|
+
- **Accept**: application/json
|
230
|
+
|
231
|
+
|
232
|
+
|
10
233
|
# **sync_users_integrated_lists**
|
11
234
|
> String sync_users_integrated_lists(opts)
|
12
235
|
|