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/FilesApi.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# BombBomb::FilesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.bombbomb.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**doc_host_delete**](FilesApi.md#doc_host_delete) | **DELETE** /files | Deletes users file
|
8
|
+
|
9
|
+
|
10
|
+
# **doc_host_delete**
|
11
|
+
> doc_host_delete(doc_id)
|
12
|
+
|
13
|
+
Deletes users file
|
14
|
+
|
15
|
+
Deletes the file from the users s3 store
|
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::FilesApi.new
|
28
|
+
|
29
|
+
doc_id = "doc_id_example" # String | Id of document
|
30
|
+
|
31
|
+
|
32
|
+
begin
|
33
|
+
#Deletes users file
|
34
|
+
api_instance.doc_host_delete(doc_id)
|
35
|
+
rescue BombBomb::ApiError => e
|
36
|
+
puts "Exception when calling FilesApi->doc_host_delete: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**doc_id** | **String**| Id of document |
|
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/JerichoPerformance.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
+
**jericho_id** | **Integer** | The jericho id | [optional]
|
6
7
|
**sent** | **Integer** | The number of emails sent | [optional]
|
7
8
|
**unique_views** | **Integer** | The unique number of people that viewed the email | [optional]
|
8
9
|
**unique_landing_page_views** | **Integer** | The unique number of people that visited the landing page | [optional]
|
@@ -14,5 +15,8 @@ Name | Type | Description | Notes
|
|
14
15
|
**video_play** | **Integer** | The total number of times videos in the emails were played | [optional]
|
15
16
|
**abuse_complaints** | **Integer** | The number of recipients that marked the message as abusive | [optional]
|
16
17
|
**contacts** | **Integer** | The total number of contacts submitted to be sent, may be more than was sent to | [optional]
|
18
|
+
**prompts_sent** | **Integer** | The total number of prompts sent to members of the client group | [optional]
|
19
|
+
**prompts_with_recordings** | **Integer** | The total number of prompts sent that included a personal recording | [optional]
|
20
|
+
**prompts_opted_out** | **Integer** | The total number of members that chose not to send a prompt | [optional]
|
17
21
|
|
18
22
|
|
data/docs/ListsApi.md
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
# BombBomb::ListsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.bombbomb.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**clear_list**](ListsApi.md#clear_list) | **PUT** /lists/{listId}/clear | Clear Contacts from List
|
8
|
+
[**copy_list_contacts**](ListsApi.md#copy_list_contacts) | **POST** /lists/{listId}/copy | Copy All Contacts from a List
|
9
|
+
[**suppress_all_in_list**](ListsApi.md#suppress_all_in_list) | **PUT** /lists/{listId}/suppress | Suppress All Contacts from List
|
10
|
+
|
11
|
+
|
12
|
+
# **clear_list**
|
13
|
+
> clear_list(list_id)
|
14
|
+
|
15
|
+
Clear Contacts from List
|
16
|
+
|
17
|
+
Clears all contacts from a list.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'bombbomb'
|
23
|
+
# setup authorization
|
24
|
+
BombBomb.configure do |config|
|
25
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
26
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = BombBomb::ListsApi.new
|
30
|
+
|
31
|
+
list_id = "list_id_example" # String | The list to be cleared.
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Clear Contacts from List
|
36
|
+
api_instance.clear_list(list_id)
|
37
|
+
rescue BombBomb::ApiError => e
|
38
|
+
puts "Exception when calling ListsApi->clear_list: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
Name | Type | Description | Notes
|
45
|
+
------------- | ------------- | ------------- | -------------
|
46
|
+
**list_id** | **String**| The list to be cleared. |
|
47
|
+
|
48
|
+
### Return type
|
49
|
+
|
50
|
+
nil (empty response body)
|
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
|
+
|
63
|
+
# **copy_list_contacts**
|
64
|
+
> copy_list_contacts(from_list_id, list_id)
|
65
|
+
|
66
|
+
Copy All Contacts from a List
|
67
|
+
|
68
|
+
Copy all contacts from a list.
|
69
|
+
|
70
|
+
### Example
|
71
|
+
```ruby
|
72
|
+
# load the gem
|
73
|
+
require 'bombbomb'
|
74
|
+
# setup authorization
|
75
|
+
BombBomb.configure do |config|
|
76
|
+
# Configure OAuth2 access token for authorization: BBOAuth2
|
77
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
78
|
+
end
|
79
|
+
|
80
|
+
api_instance = BombBomb::ListsApi.new
|
81
|
+
|
82
|
+
from_list_id = "from_list_id_example" # String | The list to be cleared.
|
83
|
+
|
84
|
+
list_id = "list_id_example" # String | The list to be cleared.
|
85
|
+
|
86
|
+
|
87
|
+
begin
|
88
|
+
#Copy All Contacts from a List
|
89
|
+
api_instance.copy_list_contacts(from_list_id, list_id)
|
90
|
+
rescue BombBomb::ApiError => e
|
91
|
+
puts "Exception when calling ListsApi->copy_list_contacts: #{e}"
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
### Parameters
|
96
|
+
|
97
|
+
Name | Type | Description | Notes
|
98
|
+
------------- | ------------- | ------------- | -------------
|
99
|
+
**from_list_id** | **String**| The list to be cleared. |
|
100
|
+
**list_id** | **String**| The list to be cleared. |
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
nil (empty response body)
|
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
|
+
# **suppress_all_in_list**
|
118
|
+
> suppress_all_in_list(list_id)
|
119
|
+
|
120
|
+
Suppress All Contacts from List
|
121
|
+
|
122
|
+
Suppresses all contacts in a list.
|
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::ListsApi.new
|
135
|
+
|
136
|
+
list_id = "list_id_example" # String | The list to be cleared.
|
137
|
+
|
138
|
+
|
139
|
+
begin
|
140
|
+
#Suppress All Contacts from List
|
141
|
+
api_instance.suppress_all_in_list(list_id)
|
142
|
+
rescue BombBomb::ApiError => e
|
143
|
+
puts "Exception when calling ListsApi->suppress_all_in_list: #{e}"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
### Parameters
|
148
|
+
|
149
|
+
Name | Type | Description | Notes
|
150
|
+
------------- | ------------- | ------------- | -------------
|
151
|
+
**list_id** | **String**| The list to be cleared. |
|
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
|
+
|
data/docs/OrdersApi.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# BombBomb::OrdersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.bombbomb.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**template_asset_delete**](OrdersApi.md#template_asset_delete) | **DELETE** /orders/templates/images | Deletes image from user s3 store
|
8
|
+
|
9
|
+
|
10
|
+
# **template_asset_delete**
|
11
|
+
> template_asset_delete(file_name)
|
12
|
+
|
13
|
+
Deletes image from user s3 store
|
14
|
+
|
15
|
+
Deletes image from user s3 store
|
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::OrdersApi.new
|
28
|
+
|
29
|
+
file_name = "file_name_example" # String | Filename for deletion
|
30
|
+
|
31
|
+
|
32
|
+
begin
|
33
|
+
#Deletes image from user s3 store
|
34
|
+
api_instance.template_asset_delete(file_name)
|
35
|
+
rescue BombBomb::ApiError => e
|
36
|
+
puts "Exception when calling OrdersApi->template_asset_delete: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**file_name** | **String**| Filename for deletion |
|
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/PromptBot.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# BombBomb::PromptBot
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The identifier of the prompt bot. Read Only. | [optional]
|
7
|
+
**user_id** | **String** | The prompt bot's owner. Read Only. | [optional]
|
8
|
+
**email_id** | **String** | The default email being sent to contacts in the prompt bot list. | [optional]
|
9
|
+
**list_id** | **String** | The list to attach the Prompt Bot to. | [optional]
|
10
|
+
**name** | **String** | The name of the bot. | [optional]
|
11
|
+
**contact_field_value_column** | **String** | The custom contact field value column used for this bot. | [optional]
|
12
|
+
**status** | **Integer** | The status of the prompt bot. Read Only. | [optional]
|
13
|
+
**start_date** | **DateTime** | when the bot started | [optional]
|
14
|
+
**end_date** | **DateTime** | when the bot should finish | [optional]
|
15
|
+
**bot_type_id** | **String** | The type of bot. | [optional]
|
16
|
+
**template_id** | **String** | The template id used to generate the default email. | [optional]
|
17
|
+
**video_id** | **String** | The video that was added to the prompt. | [optional]
|
18
|
+
**content** | **String** | The content to use in the email. | [optional]
|
19
|
+
**subject** | **String** | The subject of the default email. | [optional]
|
20
|
+
**generated_by** | **String** | Set when generated as a default by a bot. | [optional]
|
21
|
+
|
22
|
+
|
data/docs/PromptsApi.md
CHANGED
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|
17
17
|
|
18
18
|
|
19
19
|
# **create_prompt_bot**
|
20
|
-
>
|
20
|
+
> PromptBot create_prompt_bot(list_id, email_id, name, subject, content, contact_field_value_column, bot_type_id, template_id, opts)
|
21
21
|
|
22
22
|
Create a running Prompt Bot for a list
|
23
23
|
|
@@ -39,20 +39,26 @@ list_id = "list_id_example" # String | The list id to attach the bot to.
|
|
39
39
|
|
40
40
|
email_id = "email_id_example" # String | The default email to use.
|
41
41
|
|
42
|
-
|
42
|
+
name = "name_example" # String | The name of the bot.
|
43
43
|
|
44
|
-
|
44
|
+
subject = "subject_example" # String | The subject of the default email.
|
45
45
|
|
46
|
-
|
46
|
+
content = "content_example" # String | The content used in the email.
|
47
|
+
|
48
|
+
contact_field_value_column = "contact_field_value_column_example" # String | The custom field value column with dates for this bot.
|
47
49
|
|
48
50
|
bot_type_id = "bot_type_id_example" # String | The type of bot to create.
|
49
51
|
|
50
52
|
template_id = "template_id_example" # String | The template used to create the email id.
|
51
53
|
|
54
|
+
opts = {
|
55
|
+
video_id: "video_id_example", # String | The video used in the email.
|
56
|
+
end_date: "end_date_example" # String | The time frame to complete sending to the list.
|
57
|
+
}
|
52
58
|
|
53
59
|
begin
|
54
60
|
#Create a running Prompt Bot for a list
|
55
|
-
result = api_instance.create_prompt_bot(list_id, email_id,
|
61
|
+
result = api_instance.create_prompt_bot(list_id, email_id, name, subject, content, contact_field_value_column, bot_type_id, template_id, opts)
|
56
62
|
p result
|
57
63
|
rescue BombBomb::ApiError => e
|
58
64
|
puts "Exception when calling PromptsApi->create_prompt_bot: #{e}"
|
@@ -65,15 +71,18 @@ Name | Type | Description | Notes
|
|
65
71
|
------------- | ------------- | ------------- | -------------
|
66
72
|
**list_id** | **String**| The list id to attach the bot to. |
|
67
73
|
**email_id** | **String**| The default email to use. |
|
68
|
-
**
|
69
|
-
**
|
70
|
-
**
|
74
|
+
**name** | **String**| The name of the bot. |
|
75
|
+
**subject** | **String**| The subject of the default email. |
|
76
|
+
**content** | **String**| The content used in the email. |
|
77
|
+
**contact_field_value_column** | **String**| The custom field value column with dates for this bot. |
|
71
78
|
**bot_type_id** | **String**| The type of bot to create. |
|
72
79
|
**template_id** | **String**| The template used to create the email id. |
|
80
|
+
**video_id** | **String**| The video used in the email. | [optional]
|
81
|
+
**end_date** | **String**| The time frame to complete sending to the list. | [optional]
|
73
82
|
|
74
83
|
### Return type
|
75
84
|
|
76
|
-
[**
|
85
|
+
[**PromptBot**](PromptBot.md)
|
77
86
|
|
78
87
|
### Authorization
|
79
88
|
|
@@ -185,7 +194,7 @@ This endpoint does not need any parameter.
|
|
185
194
|
|
186
195
|
|
187
196
|
# **get_prompt_bots**
|
188
|
-
> Array<
|
197
|
+
> Array<PromptBot> get_prompt_bots
|
189
198
|
|
190
199
|
List Prompt Bots
|
191
200
|
|
@@ -217,7 +226,7 @@ This endpoint does not need any parameter.
|
|
217
226
|
|
218
227
|
### Return type
|
219
228
|
|
220
|
-
[**Array<
|
229
|
+
[**Array<PromptBot>**](PromptBot.md)
|
221
230
|
|
222
231
|
### Authorization
|
223
232
|
|
@@ -389,11 +398,12 @@ api_instance = BombBomb::PromptsApi.new
|
|
389
398
|
|
390
399
|
id = "id_example" # String | The id of the prompt.
|
391
400
|
|
392
|
-
choice = "choice_example" # String | The users' selection. Can be: WithVideo, WithEmail, Cancel
|
401
|
+
choice = "choice_example" # String | The users' selection. Can be: WithVideo, WithEmail, Cancel, Restore, Reset, Manual
|
393
402
|
|
394
403
|
opts = {
|
395
404
|
video_id: "video_id_example", # String | The id of the video.
|
396
|
-
email_id: "email_id_example" # String | The id of the
|
405
|
+
email_id: "email_id_example", # String | The id of the email.
|
406
|
+
subject: "subject_example" # String | The subject of the email
|
397
407
|
}
|
398
408
|
|
399
409
|
begin
|
@@ -410,9 +420,10 @@ end
|
|
410
420
|
Name | Type | Description | Notes
|
411
421
|
------------- | ------------- | ------------- | -------------
|
412
422
|
**id** | **String**| The id of the prompt. |
|
413
|
-
**choice** | **String**| The users' selection. Can be: WithVideo, WithEmail, Cancel |
|
423
|
+
**choice** | **String**| The users' selection. Can be: WithVideo, WithEmail, Cancel, Restore, Reset, Manual |
|
414
424
|
**video_id** | **String**| The id of the video. | [optional]
|
415
|
-
**email_id** | **String**| The id of the
|
425
|
+
**email_id** | **String**| The id of the email. | [optional]
|
426
|
+
**subject** | **String**| The subject of the email | [optional]
|
416
427
|
|
417
428
|
### Return type
|
418
429
|
|
@@ -430,7 +441,7 @@ No authorization required
|
|
430
441
|
|
431
442
|
|
432
443
|
# **update_prompt_bot**
|
433
|
-
>
|
444
|
+
> PromptBot update_prompt_bot(id, list_id, email_id, name, subject, content, contact_field_value_column, template_id, opts)
|
434
445
|
|
435
446
|
Update Prompt Bot
|
436
447
|
|
@@ -450,15 +461,29 @@ api_instance = BombBomb::PromptsApi.new
|
|
450
461
|
|
451
462
|
id = "id_example" # String | The bot id.
|
452
463
|
|
464
|
+
list_id = "list_id_example" # String | The list id to attach the bot to.
|
465
|
+
|
466
|
+
email_id = "email_id_example" # String | The default email to use.
|
467
|
+
|
468
|
+
name = "name_example" # String | The name of the bot.
|
469
|
+
|
470
|
+
subject = "subject_example" # String | The subject of the default email.
|
471
|
+
|
472
|
+
content = "content_example" # String | The content used in the default email.
|
473
|
+
|
474
|
+
contact_field_value_column = "contact_field_value_column_example" # String | The custom field value column with dates for this bot.
|
475
|
+
|
476
|
+
template_id = "template_id_example" # String | The template used to create the email id.
|
477
|
+
|
453
478
|
opts = {
|
454
|
-
|
479
|
+
video_id: "video_id_example", # String | The video used in the default email.
|
455
480
|
end_date: "end_date_example", # String | The time frame to complete sending to the list.
|
456
481
|
status: "status_example" # String | The status of the bot.
|
457
482
|
}
|
458
483
|
|
459
484
|
begin
|
460
485
|
#Update Prompt Bot
|
461
|
-
result = api_instance.update_prompt_bot(id, opts)
|
486
|
+
result = api_instance.update_prompt_bot(id, list_id, email_id, name, subject, content, contact_field_value_column, template_id, opts)
|
462
487
|
p result
|
463
488
|
rescue BombBomb::ApiError => e
|
464
489
|
puts "Exception when calling PromptsApi->update_prompt_bot: #{e}"
|
@@ -470,13 +495,20 @@ end
|
|
470
495
|
Name | Type | Description | Notes
|
471
496
|
------------- | ------------- | ------------- | -------------
|
472
497
|
**id** | **String**| The bot id. |
|
473
|
-
**
|
498
|
+
**list_id** | **String**| The list id to attach the bot to. |
|
499
|
+
**email_id** | **String**| The default email to use. |
|
500
|
+
**name** | **String**| The name of the bot. |
|
501
|
+
**subject** | **String**| The subject of the default email. |
|
502
|
+
**content** | **String**| The content used in the default email. |
|
503
|
+
**contact_field_value_column** | **String**| The custom field value column with dates for this bot. |
|
504
|
+
**template_id** | **String**| The template used to create the email id. |
|
505
|
+
**video_id** | **String**| The video used in the default email. | [optional]
|
474
506
|
**end_date** | **String**| The time frame to complete sending to the list. | [optional]
|
475
507
|
**status** | **String**| The status of the bot. | [optional]
|
476
508
|
|
477
509
|
### Return type
|
478
510
|
|
479
|
-
[**
|
511
|
+
[**PromptBot**](PromptBot.md)
|
480
512
|
|
481
513
|
### Authorization
|
482
514
|
|
@@ -513,7 +545,8 @@ client_group_id = "client_group_id_example" # String | The client group of the c
|
|
513
545
|
opts = {
|
514
546
|
branded_template_id: "branded_template_id_example", # String | The template to use for branded feel emails.
|
515
547
|
personal_template_id: "personal_template_id_example", # String | The template to use for personal feel emails.
|
516
|
-
enabled: true # BOOLEAN | Set whether the user is able to start receiving prompts.
|
548
|
+
enabled: true, # BOOLEAN | Set whether the user is able to start receiving prompts.
|
549
|
+
auto_shares: "auto_shares_example" # String | These are what we are autosharing to
|
517
550
|
}
|
518
551
|
|
519
552
|
begin
|
@@ -532,6 +565,7 @@ Name | Type | Description | Notes
|
|
532
565
|
**branded_template_id** | **String**| The template to use for branded feel emails. | [optional]
|
533
566
|
**personal_template_id** | **String**| The template to use for personal feel emails. | [optional]
|
534
567
|
**enabled** | **BOOLEAN**| Set whether the user is able to start receiving prompts. | [optional]
|
568
|
+
**auto_shares** | **String**| These are what we are autosharing to | [optional]
|
535
569
|
|
536
570
|
### Return type
|
537
571
|
|