late-sdk 0.0.67 → 0.0.69
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 +63 -0
- data/docs/AddBroadcastRecipientsRequest.md +20 -0
- data/docs/BroadcastsApi.md +699 -0
- data/docs/BulkCreateContactsRequest.md +24 -0
- data/docs/BulkCreateContactsRequestContactsInner.md +28 -0
- data/docs/CommentAutomationsApi.md +428 -0
- data/docs/ContactsApi.md +500 -0
- data/docs/CreateBroadcastRequest.md +32 -0
- data/docs/CreateBroadcastRequestMessage.md +20 -0
- data/docs/CreateBroadcastRequestMessageAttachmentsInner.md +22 -0
- data/docs/CreateBroadcastRequestSegmentFilters.md +20 -0
- data/docs/CreateBroadcastRequestTemplate.md +22 -0
- data/docs/CreateCommentAutomationRequest.md +36 -0
- data/docs/CreateContactRequest.md +38 -0
- data/docs/CreateCustomFieldRequest.md +26 -0
- data/docs/CreateSequenceRequest.md +32 -0
- data/docs/CreateSequenceRequestStepsInner.md +24 -0
- data/docs/CreateSequenceRequestStepsInnerMessage.md +18 -0
- data/docs/CustomFieldsApi.md +419 -0
- data/docs/EnrollContactsRequest.md +20 -0
- data/docs/ListCommentAutomations200Response.md +20 -0
- data/docs/ListCommentAutomations200ResponseAutomationsInner.md +42 -0
- data/docs/ListCommentAutomations200ResponseAutomationsInnerStats.md +24 -0
- data/docs/ScheduleBroadcastRequest.md +18 -0
- data/docs/SequencesApi.md +697 -0
- data/docs/SetContactFieldValueRequest.md +18 -0
- data/docs/TwitterPlatformData.md +3 -1
- data/docs/TwitterPlatformDataPoll.md +20 -0
- data/docs/UpdateCommentAutomationRequest.md +28 -0
- data/docs/UpdateContactRequest.md +32 -0
- data/docs/UpdateCustomFieldRequest.md +20 -0
- data/docs/WhatsAppApi.md +25 -25
- data/lib/late-sdk/api/broadcasts_api.rb +689 -0
- data/lib/late-sdk/api/comment_automations_api.rb +420 -0
- data/lib/late-sdk/api/contacts_api.rb +503 -0
- data/lib/late-sdk/api/custom_fields_api.rb +424 -0
- data/lib/late-sdk/api/sequences_api.rb +681 -0
- data/lib/late-sdk/api/whats_app_api.rb +50 -50
- data/lib/late-sdk/models/add_broadcast_recipients_request.rb +160 -0
- data/lib/late-sdk/models/bulk_create_contacts_request.rb +253 -0
- data/lib/late-sdk/models/bulk_create_contacts_request_contacts_inner.rb +228 -0
- data/lib/late-sdk/models/create_broadcast_request.rb +302 -0
- data/lib/late-sdk/models/create_broadcast_request_message.rb +158 -0
- data/lib/late-sdk/models/create_broadcast_request_message_attachments_inner.rb +165 -0
- data/lib/late-sdk/models/create_broadcast_request_segment_filters.rb +158 -0
- data/lib/late-sdk/models/create_broadcast_request_template.rb +168 -0
- data/lib/late-sdk/models/create_comment_automation_request.rb +359 -0
- data/lib/late-sdk/models/create_contact_request.rb +276 -0
- data/lib/late-sdk/models/create_custom_field_request.rb +262 -0
- data/lib/late-sdk/models/create_sequence_request.rb +308 -0
- data/lib/late-sdk/models/create_sequence_request_steps_inner.rb +208 -0
- data/lib/late-sdk/models/create_sequence_request_steps_inner_message.rb +147 -0
- data/lib/late-sdk/models/enroll_contacts_request.rb +178 -0
- data/lib/late-sdk/models/list_comment_automations200_response.rb +158 -0
- data/lib/late-sdk/models/list_comment_automations200_response_automations_inner.rb +303 -0
- data/lib/late-sdk/models/list_comment_automations200_response_automations_inner_stats.rb +174 -0
- data/lib/late-sdk/models/schedule_broadcast_request.rb +164 -0
- data/lib/late-sdk/models/set_contact_field_value_request.rb +150 -0
- data/lib/late-sdk/models/twitter_platform_data.rb +13 -4
- data/lib/late-sdk/models/twitter_platform_data_poll.rb +231 -0
- data/lib/late-sdk/models/update_comment_automation_request.rb +228 -0
- data/lib/late-sdk/models/update_contact_request.rb +212 -0
- data/lib/late-sdk/models/update_custom_field_request.rb +158 -0
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +29 -0
- data/openapi.yaml +830 -13
- data/spec/api/broadcasts_api_spec.rb +154 -0
- data/spec/api/comment_automations_api_spec.rb +108 -0
- data/spec/api/contacts_api_spec.rb +122 -0
- data/spec/api/custom_fields_api_spec.rb +105 -0
- data/spec/api/sequences_api_spec.rb +153 -0
- data/spec/api/whats_app_api_spec.rb +25 -25
- data/spec/models/add_broadcast_recipients_request_spec.rb +42 -0
- data/spec/models/bulk_create_contacts_request_contacts_inner_spec.rb +66 -0
- data/spec/models/bulk_create_contacts_request_spec.rb +54 -0
- data/spec/models/create_broadcast_request_message_attachments_inner_spec.rb +48 -0
- data/spec/models/create_broadcast_request_message_spec.rb +42 -0
- data/spec/models/create_broadcast_request_segment_filters_spec.rb +42 -0
- data/spec/models/create_broadcast_request_spec.rb +82 -0
- data/spec/models/create_broadcast_request_template_spec.rb +48 -0
- data/spec/models/create_comment_automation_request_spec.rb +94 -0
- data/spec/models/create_contact_request_spec.rb +96 -0
- data/spec/models/create_custom_field_request_spec.rb +64 -0
- data/spec/models/create_sequence_request_spec.rb +82 -0
- data/spec/models/create_sequence_request_steps_inner_message_spec.rb +36 -0
- data/spec/models/create_sequence_request_steps_inner_spec.rb +54 -0
- data/spec/models/enroll_contacts_request_spec.rb +42 -0
- data/spec/models/list_comment_automations200_response_automations_inner_spec.rb +116 -0
- data/spec/models/list_comment_automations200_response_automations_inner_stats_spec.rb +54 -0
- data/spec/models/list_comment_automations200_response_spec.rb +42 -0
- data/spec/models/schedule_broadcast_request_spec.rb +36 -0
- data/spec/models/set_contact_field_value_request_spec.rb +36 -0
- data/spec/models/twitter_platform_data_poll_spec.rb +42 -0
- data/spec/models/twitter_platform_data_spec.rb +6 -0
- data/spec/models/update_comment_automation_request_spec.rb +70 -0
- data/spec/models/update_contact_request_spec.rb +78 -0
- data/spec/models/update_custom_field_request_spec.rb +42 -0
- data/zernio-sdk-0.0.69.gem +0 -0
- metadata +118 -2
- data/zernio-sdk-0.0.67.gem +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Late::BulkCreateContactsRequestContactsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | |
|
|
8
|
+
| **platform_identifier** | **String** | | |
|
|
9
|
+
| **display_identifier** | **String** | | [optional] |
|
|
10
|
+
| **email** | **String** | | [optional] |
|
|
11
|
+
| **company** | **String** | | [optional] |
|
|
12
|
+
| **tags** | **Array<String>** | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'late-sdk'
|
|
18
|
+
|
|
19
|
+
instance = Late::BulkCreateContactsRequestContactsInner.new(
|
|
20
|
+
name: null,
|
|
21
|
+
platform_identifier: null,
|
|
22
|
+
display_identifier: null,
|
|
23
|
+
email: null,
|
|
24
|
+
company: null,
|
|
25
|
+
tags: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
# Late::CommentAutomationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://zernio.com/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_comment_automation**](CommentAutomationsApi.md#create_comment_automation) | **POST** /v1/comment-automations | Create a comment-to-DM automation |
|
|
8
|
+
| [**delete_comment_automation**](CommentAutomationsApi.md#delete_comment_automation) | **DELETE** /v1/comment-automations/{automationId} | Delete automation and all logs |
|
|
9
|
+
| [**get_comment_automation**](CommentAutomationsApi.md#get_comment_automation) | **GET** /v1/comment-automations/{automationId} | Get automation details with recent logs |
|
|
10
|
+
| [**list_comment_automation_logs**](CommentAutomationsApi.md#list_comment_automation_logs) | **GET** /v1/comment-automations/{automationId}/logs | List trigger logs for an automation |
|
|
11
|
+
| [**list_comment_automations**](CommentAutomationsApi.md#list_comment_automations) | **GET** /v1/comment-automations | List comment-to-DM automations |
|
|
12
|
+
| [**update_comment_automation**](CommentAutomationsApi.md#update_comment_automation) | **PATCH** /v1/comment-automations/{automationId} | Update automation settings |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## create_comment_automation
|
|
16
|
+
|
|
17
|
+
> create_comment_automation(create_comment_automation_request)
|
|
18
|
+
|
|
19
|
+
Create a comment-to-DM automation
|
|
20
|
+
|
|
21
|
+
Create a keyword-triggered DM automation on an Instagram or Facebook post. When someone comments a matching keyword, they automatically receive a DM. Only one active automation per post is allowed.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'late-sdk'
|
|
28
|
+
# setup authorization
|
|
29
|
+
Late.configure do |config|
|
|
30
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
31
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = Late::CommentAutomationsApi.new
|
|
35
|
+
create_comment_automation_request = Late::CreateCommentAutomationRequest.new({profile_id: 'profile_id_example', account_id: 'account_id_example', platform_post_id: 'platform_post_id_example', name: 'name_example', dm_message: 'dm_message_example'}) # CreateCommentAutomationRequest |
|
|
36
|
+
|
|
37
|
+
begin
|
|
38
|
+
# Create a comment-to-DM automation
|
|
39
|
+
api_instance.create_comment_automation(create_comment_automation_request)
|
|
40
|
+
rescue Late::ApiError => e
|
|
41
|
+
puts "Error when calling CommentAutomationsApi->create_comment_automation: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the create_comment_automation_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(nil, Integer, Hash)> create_comment_automation_with_http_info(create_comment_automation_request)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# Create a comment-to-DM automation
|
|
54
|
+
data, status_code, headers = api_instance.create_comment_automation_with_http_info(create_comment_automation_request)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => nil
|
|
58
|
+
rescue Late::ApiError => e
|
|
59
|
+
puts "Error when calling CommentAutomationsApi->create_comment_automation_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **create_comment_automation_request** | [**CreateCommentAutomationRequest**](CreateCommentAutomationRequest.md) | | |
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
nil (empty response body)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: application/json
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## delete_comment_automation
|
|
84
|
+
|
|
85
|
+
> delete_comment_automation(automation_id)
|
|
86
|
+
|
|
87
|
+
Delete automation and all logs
|
|
88
|
+
|
|
89
|
+
### Examples
|
|
90
|
+
|
|
91
|
+
```ruby
|
|
92
|
+
require 'time'
|
|
93
|
+
require 'late-sdk'
|
|
94
|
+
# setup authorization
|
|
95
|
+
Late.configure do |config|
|
|
96
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
97
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
api_instance = Late::CommentAutomationsApi.new
|
|
101
|
+
automation_id = 'automation_id_example' # String |
|
|
102
|
+
|
|
103
|
+
begin
|
|
104
|
+
# Delete automation and all logs
|
|
105
|
+
api_instance.delete_comment_automation(automation_id)
|
|
106
|
+
rescue Late::ApiError => e
|
|
107
|
+
puts "Error when calling CommentAutomationsApi->delete_comment_automation: #{e}"
|
|
108
|
+
end
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
#### Using the delete_comment_automation_with_http_info variant
|
|
112
|
+
|
|
113
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
114
|
+
|
|
115
|
+
> <Array(nil, Integer, Hash)> delete_comment_automation_with_http_info(automation_id)
|
|
116
|
+
|
|
117
|
+
```ruby
|
|
118
|
+
begin
|
|
119
|
+
# Delete automation and all logs
|
|
120
|
+
data, status_code, headers = api_instance.delete_comment_automation_with_http_info(automation_id)
|
|
121
|
+
p status_code # => 2xx
|
|
122
|
+
p headers # => { ... }
|
|
123
|
+
p data # => nil
|
|
124
|
+
rescue Late::ApiError => e
|
|
125
|
+
puts "Error when calling CommentAutomationsApi->delete_comment_automation_with_http_info: #{e}"
|
|
126
|
+
end
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Parameters
|
|
130
|
+
|
|
131
|
+
| Name | Type | Description | Notes |
|
|
132
|
+
| ---- | ---- | ----------- | ----- |
|
|
133
|
+
| **automation_id** | **String** | | |
|
|
134
|
+
|
|
135
|
+
### Return type
|
|
136
|
+
|
|
137
|
+
nil (empty response body)
|
|
138
|
+
|
|
139
|
+
### Authorization
|
|
140
|
+
|
|
141
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
142
|
+
|
|
143
|
+
### HTTP request headers
|
|
144
|
+
|
|
145
|
+
- **Content-Type**: Not defined
|
|
146
|
+
- **Accept**: application/json
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
## get_comment_automation
|
|
150
|
+
|
|
151
|
+
> get_comment_automation(automation_id)
|
|
152
|
+
|
|
153
|
+
Get automation details with recent logs
|
|
154
|
+
|
|
155
|
+
### Examples
|
|
156
|
+
|
|
157
|
+
```ruby
|
|
158
|
+
require 'time'
|
|
159
|
+
require 'late-sdk'
|
|
160
|
+
# setup authorization
|
|
161
|
+
Late.configure do |config|
|
|
162
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
163
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
api_instance = Late::CommentAutomationsApi.new
|
|
167
|
+
automation_id = 'automation_id_example' # String |
|
|
168
|
+
|
|
169
|
+
begin
|
|
170
|
+
# Get automation details with recent logs
|
|
171
|
+
api_instance.get_comment_automation(automation_id)
|
|
172
|
+
rescue Late::ApiError => e
|
|
173
|
+
puts "Error when calling CommentAutomationsApi->get_comment_automation: #{e}"
|
|
174
|
+
end
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
#### Using the get_comment_automation_with_http_info variant
|
|
178
|
+
|
|
179
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
180
|
+
|
|
181
|
+
> <Array(nil, Integer, Hash)> get_comment_automation_with_http_info(automation_id)
|
|
182
|
+
|
|
183
|
+
```ruby
|
|
184
|
+
begin
|
|
185
|
+
# Get automation details with recent logs
|
|
186
|
+
data, status_code, headers = api_instance.get_comment_automation_with_http_info(automation_id)
|
|
187
|
+
p status_code # => 2xx
|
|
188
|
+
p headers # => { ... }
|
|
189
|
+
p data # => nil
|
|
190
|
+
rescue Late::ApiError => e
|
|
191
|
+
puts "Error when calling CommentAutomationsApi->get_comment_automation_with_http_info: #{e}"
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
| Name | Type | Description | Notes |
|
|
198
|
+
| ---- | ---- | ----------- | ----- |
|
|
199
|
+
| **automation_id** | **String** | | |
|
|
200
|
+
|
|
201
|
+
### Return type
|
|
202
|
+
|
|
203
|
+
nil (empty response body)
|
|
204
|
+
|
|
205
|
+
### Authorization
|
|
206
|
+
|
|
207
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: Not defined
|
|
212
|
+
- **Accept**: application/json
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
## list_comment_automation_logs
|
|
216
|
+
|
|
217
|
+
> list_comment_automation_logs(automation_id, opts)
|
|
218
|
+
|
|
219
|
+
List trigger logs for an automation
|
|
220
|
+
|
|
221
|
+
Paginated list of every comment that triggered this automation, with send status and commenter info.
|
|
222
|
+
|
|
223
|
+
### Examples
|
|
224
|
+
|
|
225
|
+
```ruby
|
|
226
|
+
require 'time'
|
|
227
|
+
require 'late-sdk'
|
|
228
|
+
# setup authorization
|
|
229
|
+
Late.configure do |config|
|
|
230
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
231
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
api_instance = Late::CommentAutomationsApi.new
|
|
235
|
+
automation_id = 'automation_id_example' # String |
|
|
236
|
+
opts = {
|
|
237
|
+
status: 'sent', # String | Filter by result status
|
|
238
|
+
limit: 56, # Integer |
|
|
239
|
+
skip: 56 # Integer |
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
begin
|
|
243
|
+
# List trigger logs for an automation
|
|
244
|
+
api_instance.list_comment_automation_logs(automation_id, opts)
|
|
245
|
+
rescue Late::ApiError => e
|
|
246
|
+
puts "Error when calling CommentAutomationsApi->list_comment_automation_logs: #{e}"
|
|
247
|
+
end
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
#### Using the list_comment_automation_logs_with_http_info variant
|
|
251
|
+
|
|
252
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
253
|
+
|
|
254
|
+
> <Array(nil, Integer, Hash)> list_comment_automation_logs_with_http_info(automation_id, opts)
|
|
255
|
+
|
|
256
|
+
```ruby
|
|
257
|
+
begin
|
|
258
|
+
# List trigger logs for an automation
|
|
259
|
+
data, status_code, headers = api_instance.list_comment_automation_logs_with_http_info(automation_id, opts)
|
|
260
|
+
p status_code # => 2xx
|
|
261
|
+
p headers # => { ... }
|
|
262
|
+
p data # => nil
|
|
263
|
+
rescue Late::ApiError => e
|
|
264
|
+
puts "Error when calling CommentAutomationsApi->list_comment_automation_logs_with_http_info: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Parameters
|
|
269
|
+
|
|
270
|
+
| Name | Type | Description | Notes |
|
|
271
|
+
| ---- | ---- | ----------- | ----- |
|
|
272
|
+
| **automation_id** | **String** | | |
|
|
273
|
+
| **status** | **String** | Filter by result status | [optional] |
|
|
274
|
+
| **limit** | **Integer** | | [optional][default to 50] |
|
|
275
|
+
| **skip** | **Integer** | | [optional][default to 0] |
|
|
276
|
+
|
|
277
|
+
### Return type
|
|
278
|
+
|
|
279
|
+
nil (empty response body)
|
|
280
|
+
|
|
281
|
+
### Authorization
|
|
282
|
+
|
|
283
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
284
|
+
|
|
285
|
+
### HTTP request headers
|
|
286
|
+
|
|
287
|
+
- **Content-Type**: Not defined
|
|
288
|
+
- **Accept**: application/json
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
## list_comment_automations
|
|
292
|
+
|
|
293
|
+
> <ListCommentAutomations200Response> list_comment_automations(profile_id)
|
|
294
|
+
|
|
295
|
+
List comment-to-DM automations
|
|
296
|
+
|
|
297
|
+
List all comment-to-DM automations for a profile. Returns automations with their stats.
|
|
298
|
+
|
|
299
|
+
### Examples
|
|
300
|
+
|
|
301
|
+
```ruby
|
|
302
|
+
require 'time'
|
|
303
|
+
require 'late-sdk'
|
|
304
|
+
# setup authorization
|
|
305
|
+
Late.configure do |config|
|
|
306
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
307
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
api_instance = Late::CommentAutomationsApi.new
|
|
311
|
+
profile_id = 'profile_id_example' # String | Profile ID
|
|
312
|
+
|
|
313
|
+
begin
|
|
314
|
+
# List comment-to-DM automations
|
|
315
|
+
result = api_instance.list_comment_automations(profile_id)
|
|
316
|
+
p result
|
|
317
|
+
rescue Late::ApiError => e
|
|
318
|
+
puts "Error when calling CommentAutomationsApi->list_comment_automations: #{e}"
|
|
319
|
+
end
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
#### Using the list_comment_automations_with_http_info variant
|
|
323
|
+
|
|
324
|
+
This returns an Array which contains the response data, status code and headers.
|
|
325
|
+
|
|
326
|
+
> <Array(<ListCommentAutomations200Response>, Integer, Hash)> list_comment_automations_with_http_info(profile_id)
|
|
327
|
+
|
|
328
|
+
```ruby
|
|
329
|
+
begin
|
|
330
|
+
# List comment-to-DM automations
|
|
331
|
+
data, status_code, headers = api_instance.list_comment_automations_with_http_info(profile_id)
|
|
332
|
+
p status_code # => 2xx
|
|
333
|
+
p headers # => { ... }
|
|
334
|
+
p data # => <ListCommentAutomations200Response>
|
|
335
|
+
rescue Late::ApiError => e
|
|
336
|
+
puts "Error when calling CommentAutomationsApi->list_comment_automations_with_http_info: #{e}"
|
|
337
|
+
end
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Parameters
|
|
341
|
+
|
|
342
|
+
| Name | Type | Description | Notes |
|
|
343
|
+
| ---- | ---- | ----------- | ----- |
|
|
344
|
+
| **profile_id** | **String** | Profile ID | |
|
|
345
|
+
|
|
346
|
+
### Return type
|
|
347
|
+
|
|
348
|
+
[**ListCommentAutomations200Response**](ListCommentAutomations200Response.md)
|
|
349
|
+
|
|
350
|
+
### Authorization
|
|
351
|
+
|
|
352
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
353
|
+
|
|
354
|
+
### HTTP request headers
|
|
355
|
+
|
|
356
|
+
- **Content-Type**: Not defined
|
|
357
|
+
- **Accept**: application/json
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
## update_comment_automation
|
|
361
|
+
|
|
362
|
+
> update_comment_automation(automation_id, opts)
|
|
363
|
+
|
|
364
|
+
Update automation settings
|
|
365
|
+
|
|
366
|
+
### Examples
|
|
367
|
+
|
|
368
|
+
```ruby
|
|
369
|
+
require 'time'
|
|
370
|
+
require 'late-sdk'
|
|
371
|
+
# setup authorization
|
|
372
|
+
Late.configure do |config|
|
|
373
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
374
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
api_instance = Late::CommentAutomationsApi.new
|
|
378
|
+
automation_id = 'automation_id_example' # String |
|
|
379
|
+
opts = {
|
|
380
|
+
update_comment_automation_request: Late::UpdateCommentAutomationRequest.new # UpdateCommentAutomationRequest |
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
begin
|
|
384
|
+
# Update automation settings
|
|
385
|
+
api_instance.update_comment_automation(automation_id, opts)
|
|
386
|
+
rescue Late::ApiError => e
|
|
387
|
+
puts "Error when calling CommentAutomationsApi->update_comment_automation: #{e}"
|
|
388
|
+
end
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
#### Using the update_comment_automation_with_http_info variant
|
|
392
|
+
|
|
393
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
394
|
+
|
|
395
|
+
> <Array(nil, Integer, Hash)> update_comment_automation_with_http_info(automation_id, opts)
|
|
396
|
+
|
|
397
|
+
```ruby
|
|
398
|
+
begin
|
|
399
|
+
# Update automation settings
|
|
400
|
+
data, status_code, headers = api_instance.update_comment_automation_with_http_info(automation_id, opts)
|
|
401
|
+
p status_code # => 2xx
|
|
402
|
+
p headers # => { ... }
|
|
403
|
+
p data # => nil
|
|
404
|
+
rescue Late::ApiError => e
|
|
405
|
+
puts "Error when calling CommentAutomationsApi->update_comment_automation_with_http_info: #{e}"
|
|
406
|
+
end
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
### Parameters
|
|
410
|
+
|
|
411
|
+
| Name | Type | Description | Notes |
|
|
412
|
+
| ---- | ---- | ----------- | ----- |
|
|
413
|
+
| **automation_id** | **String** | | |
|
|
414
|
+
| **update_comment_automation_request** | [**UpdateCommentAutomationRequest**](UpdateCommentAutomationRequest.md) | | [optional] |
|
|
415
|
+
|
|
416
|
+
### Return type
|
|
417
|
+
|
|
418
|
+
nil (empty response body)
|
|
419
|
+
|
|
420
|
+
### Authorization
|
|
421
|
+
|
|
422
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
423
|
+
|
|
424
|
+
### HTTP request headers
|
|
425
|
+
|
|
426
|
+
- **Content-Type**: application/json
|
|
427
|
+
- **Accept**: application/json
|
|
428
|
+
|