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,697 @@
|
|
|
1
|
+
# Late::SequencesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://zernio.com/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**activate_sequence**](SequencesApi.md#activate_sequence) | **POST** /v1/sequences/{sequenceId}/activate | Activate a sequence |
|
|
8
|
+
| [**create_sequence**](SequencesApi.md#create_sequence) | **POST** /v1/sequences | Create a sequence |
|
|
9
|
+
| [**delete_sequence**](SequencesApi.md#delete_sequence) | **DELETE** /v1/sequences/{sequenceId} | Delete a sequence |
|
|
10
|
+
| [**enroll_contacts**](SequencesApi.md#enroll_contacts) | **POST** /v1/sequences/{sequenceId}/enroll | Enroll contacts in a sequence |
|
|
11
|
+
| [**get_sequence**](SequencesApi.md#get_sequence) | **GET** /v1/sequences/{sequenceId} | Get sequence with steps |
|
|
12
|
+
| [**list_sequence_enrollments**](SequencesApi.md#list_sequence_enrollments) | **GET** /v1/sequences/{sequenceId}/enrollments | List enrollments for a sequence |
|
|
13
|
+
| [**list_sequences**](SequencesApi.md#list_sequences) | **GET** /v1/sequences | List sequences |
|
|
14
|
+
| [**pause_sequence**](SequencesApi.md#pause_sequence) | **POST** /v1/sequences/{sequenceId}/pause | Pause a sequence |
|
|
15
|
+
| [**unenroll_contact**](SequencesApi.md#unenroll_contact) | **DELETE** /v1/sequences/{sequenceId}/enroll/{contactId} | Unenroll a contact from a sequence |
|
|
16
|
+
| [**update_sequence**](SequencesApi.md#update_sequence) | **PATCH** /v1/sequences/{sequenceId} | Update a sequence |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## activate_sequence
|
|
20
|
+
|
|
21
|
+
> activate_sequence(sequence_id)
|
|
22
|
+
|
|
23
|
+
Activate a sequence
|
|
24
|
+
|
|
25
|
+
### Examples
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
require 'time'
|
|
29
|
+
require 'late-sdk'
|
|
30
|
+
# setup authorization
|
|
31
|
+
Late.configure do |config|
|
|
32
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
33
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = Late::SequencesApi.new
|
|
37
|
+
sequence_id = 'sequence_id_example' # String |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# Activate a sequence
|
|
41
|
+
api_instance.activate_sequence(sequence_id)
|
|
42
|
+
rescue Late::ApiError => e
|
|
43
|
+
puts "Error when calling SequencesApi->activate_sequence: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the activate_sequence_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(nil, Integer, Hash)> activate_sequence_with_http_info(sequence_id)
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# Activate a sequence
|
|
56
|
+
data, status_code, headers = api_instance.activate_sequence_with_http_info(sequence_id)
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => nil
|
|
60
|
+
rescue Late::ApiError => e
|
|
61
|
+
puts "Error when calling SequencesApi->activate_sequence_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
| Name | Type | Description | Notes |
|
|
68
|
+
| ---- | ---- | ----------- | ----- |
|
|
69
|
+
| **sequence_id** | **String** | | |
|
|
70
|
+
|
|
71
|
+
### Return type
|
|
72
|
+
|
|
73
|
+
nil (empty response body)
|
|
74
|
+
|
|
75
|
+
### Authorization
|
|
76
|
+
|
|
77
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
78
|
+
|
|
79
|
+
### HTTP request headers
|
|
80
|
+
|
|
81
|
+
- **Content-Type**: Not defined
|
|
82
|
+
- **Accept**: application/json
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## create_sequence
|
|
86
|
+
|
|
87
|
+
> create_sequence(create_sequence_request)
|
|
88
|
+
|
|
89
|
+
Create a sequence
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'late-sdk'
|
|
96
|
+
# setup authorization
|
|
97
|
+
Late.configure do |config|
|
|
98
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
99
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
api_instance = Late::SequencesApi.new
|
|
103
|
+
create_sequence_request = Late::CreateSequenceRequest.new({profile_id: 'profile_id_example', account_id: 'account_id_example', platform: 'instagram', name: 'name_example'}) # CreateSequenceRequest |
|
|
104
|
+
|
|
105
|
+
begin
|
|
106
|
+
# Create a sequence
|
|
107
|
+
api_instance.create_sequence(create_sequence_request)
|
|
108
|
+
rescue Late::ApiError => e
|
|
109
|
+
puts "Error when calling SequencesApi->create_sequence: #{e}"
|
|
110
|
+
end
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
#### Using the create_sequence_with_http_info variant
|
|
114
|
+
|
|
115
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
116
|
+
|
|
117
|
+
> <Array(nil, Integer, Hash)> create_sequence_with_http_info(create_sequence_request)
|
|
118
|
+
|
|
119
|
+
```ruby
|
|
120
|
+
begin
|
|
121
|
+
# Create a sequence
|
|
122
|
+
data, status_code, headers = api_instance.create_sequence_with_http_info(create_sequence_request)
|
|
123
|
+
p status_code # => 2xx
|
|
124
|
+
p headers # => { ... }
|
|
125
|
+
p data # => nil
|
|
126
|
+
rescue Late::ApiError => e
|
|
127
|
+
puts "Error when calling SequencesApi->create_sequence_with_http_info: #{e}"
|
|
128
|
+
end
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
| Name | Type | Description | Notes |
|
|
134
|
+
| ---- | ---- | ----------- | ----- |
|
|
135
|
+
| **create_sequence_request** | [**CreateSequenceRequest**](CreateSequenceRequest.md) | | |
|
|
136
|
+
|
|
137
|
+
### Return type
|
|
138
|
+
|
|
139
|
+
nil (empty response body)
|
|
140
|
+
|
|
141
|
+
### Authorization
|
|
142
|
+
|
|
143
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
144
|
+
|
|
145
|
+
### HTTP request headers
|
|
146
|
+
|
|
147
|
+
- **Content-Type**: application/json
|
|
148
|
+
- **Accept**: application/json
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## delete_sequence
|
|
152
|
+
|
|
153
|
+
> delete_sequence(sequence_id)
|
|
154
|
+
|
|
155
|
+
Delete a sequence
|
|
156
|
+
|
|
157
|
+
### Examples
|
|
158
|
+
|
|
159
|
+
```ruby
|
|
160
|
+
require 'time'
|
|
161
|
+
require 'late-sdk'
|
|
162
|
+
# setup authorization
|
|
163
|
+
Late.configure do |config|
|
|
164
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
165
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
api_instance = Late::SequencesApi.new
|
|
169
|
+
sequence_id = 'sequence_id_example' # String |
|
|
170
|
+
|
|
171
|
+
begin
|
|
172
|
+
# Delete a sequence
|
|
173
|
+
api_instance.delete_sequence(sequence_id)
|
|
174
|
+
rescue Late::ApiError => e
|
|
175
|
+
puts "Error when calling SequencesApi->delete_sequence: #{e}"
|
|
176
|
+
end
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
#### Using the delete_sequence_with_http_info variant
|
|
180
|
+
|
|
181
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
182
|
+
|
|
183
|
+
> <Array(nil, Integer, Hash)> delete_sequence_with_http_info(sequence_id)
|
|
184
|
+
|
|
185
|
+
```ruby
|
|
186
|
+
begin
|
|
187
|
+
# Delete a sequence
|
|
188
|
+
data, status_code, headers = api_instance.delete_sequence_with_http_info(sequence_id)
|
|
189
|
+
p status_code # => 2xx
|
|
190
|
+
p headers # => { ... }
|
|
191
|
+
p data # => nil
|
|
192
|
+
rescue Late::ApiError => e
|
|
193
|
+
puts "Error when calling SequencesApi->delete_sequence_with_http_info: #{e}"
|
|
194
|
+
end
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Parameters
|
|
198
|
+
|
|
199
|
+
| Name | Type | Description | Notes |
|
|
200
|
+
| ---- | ---- | ----------- | ----- |
|
|
201
|
+
| **sequence_id** | **String** | | |
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
nil (empty response body)
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: Not defined
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
## enroll_contacts
|
|
218
|
+
|
|
219
|
+
> enroll_contacts(sequence_id, enroll_contacts_request)
|
|
220
|
+
|
|
221
|
+
Enroll contacts in a sequence
|
|
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::SequencesApi.new
|
|
235
|
+
sequence_id = 'sequence_id_example' # String |
|
|
236
|
+
enroll_contacts_request = Late::EnrollContactsRequest.new({contact_ids: ['contact_ids_example']}) # EnrollContactsRequest |
|
|
237
|
+
|
|
238
|
+
begin
|
|
239
|
+
# Enroll contacts in a sequence
|
|
240
|
+
api_instance.enroll_contacts(sequence_id, enroll_contacts_request)
|
|
241
|
+
rescue Late::ApiError => e
|
|
242
|
+
puts "Error when calling SequencesApi->enroll_contacts: #{e}"
|
|
243
|
+
end
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
#### Using the enroll_contacts_with_http_info variant
|
|
247
|
+
|
|
248
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
249
|
+
|
|
250
|
+
> <Array(nil, Integer, Hash)> enroll_contacts_with_http_info(sequence_id, enroll_contacts_request)
|
|
251
|
+
|
|
252
|
+
```ruby
|
|
253
|
+
begin
|
|
254
|
+
# Enroll contacts in a sequence
|
|
255
|
+
data, status_code, headers = api_instance.enroll_contacts_with_http_info(sequence_id, enroll_contacts_request)
|
|
256
|
+
p status_code # => 2xx
|
|
257
|
+
p headers # => { ... }
|
|
258
|
+
p data # => nil
|
|
259
|
+
rescue Late::ApiError => e
|
|
260
|
+
puts "Error when calling SequencesApi->enroll_contacts_with_http_info: #{e}"
|
|
261
|
+
end
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### Parameters
|
|
265
|
+
|
|
266
|
+
| Name | Type | Description | Notes |
|
|
267
|
+
| ---- | ---- | ----------- | ----- |
|
|
268
|
+
| **sequence_id** | **String** | | |
|
|
269
|
+
| **enroll_contacts_request** | [**EnrollContactsRequest**](EnrollContactsRequest.md) | | |
|
|
270
|
+
|
|
271
|
+
### Return type
|
|
272
|
+
|
|
273
|
+
nil (empty response body)
|
|
274
|
+
|
|
275
|
+
### Authorization
|
|
276
|
+
|
|
277
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
278
|
+
|
|
279
|
+
### HTTP request headers
|
|
280
|
+
|
|
281
|
+
- **Content-Type**: application/json
|
|
282
|
+
- **Accept**: application/json
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
## get_sequence
|
|
286
|
+
|
|
287
|
+
> get_sequence(sequence_id)
|
|
288
|
+
|
|
289
|
+
Get sequence with steps
|
|
290
|
+
|
|
291
|
+
### Examples
|
|
292
|
+
|
|
293
|
+
```ruby
|
|
294
|
+
require 'time'
|
|
295
|
+
require 'late-sdk'
|
|
296
|
+
# setup authorization
|
|
297
|
+
Late.configure do |config|
|
|
298
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
299
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
api_instance = Late::SequencesApi.new
|
|
303
|
+
sequence_id = 'sequence_id_example' # String |
|
|
304
|
+
|
|
305
|
+
begin
|
|
306
|
+
# Get sequence with steps
|
|
307
|
+
api_instance.get_sequence(sequence_id)
|
|
308
|
+
rescue Late::ApiError => e
|
|
309
|
+
puts "Error when calling SequencesApi->get_sequence: #{e}"
|
|
310
|
+
end
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
#### Using the get_sequence_with_http_info variant
|
|
314
|
+
|
|
315
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
316
|
+
|
|
317
|
+
> <Array(nil, Integer, Hash)> get_sequence_with_http_info(sequence_id)
|
|
318
|
+
|
|
319
|
+
```ruby
|
|
320
|
+
begin
|
|
321
|
+
# Get sequence with steps
|
|
322
|
+
data, status_code, headers = api_instance.get_sequence_with_http_info(sequence_id)
|
|
323
|
+
p status_code # => 2xx
|
|
324
|
+
p headers # => { ... }
|
|
325
|
+
p data # => nil
|
|
326
|
+
rescue Late::ApiError => e
|
|
327
|
+
puts "Error when calling SequencesApi->get_sequence_with_http_info: #{e}"
|
|
328
|
+
end
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Parameters
|
|
332
|
+
|
|
333
|
+
| Name | Type | Description | Notes |
|
|
334
|
+
| ---- | ---- | ----------- | ----- |
|
|
335
|
+
| **sequence_id** | **String** | | |
|
|
336
|
+
|
|
337
|
+
### Return type
|
|
338
|
+
|
|
339
|
+
nil (empty response body)
|
|
340
|
+
|
|
341
|
+
### Authorization
|
|
342
|
+
|
|
343
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
344
|
+
|
|
345
|
+
### HTTP request headers
|
|
346
|
+
|
|
347
|
+
- **Content-Type**: Not defined
|
|
348
|
+
- **Accept**: application/json
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
## list_sequence_enrollments
|
|
352
|
+
|
|
353
|
+
> list_sequence_enrollments(sequence_id, opts)
|
|
354
|
+
|
|
355
|
+
List enrollments for a sequence
|
|
356
|
+
|
|
357
|
+
### Examples
|
|
358
|
+
|
|
359
|
+
```ruby
|
|
360
|
+
require 'time'
|
|
361
|
+
require 'late-sdk'
|
|
362
|
+
# setup authorization
|
|
363
|
+
Late.configure do |config|
|
|
364
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
365
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
api_instance = Late::SequencesApi.new
|
|
369
|
+
sequence_id = 'sequence_id_example' # String |
|
|
370
|
+
opts = {
|
|
371
|
+
status: 'active', # String |
|
|
372
|
+
limit: 56, # Integer |
|
|
373
|
+
skip: 56 # Integer |
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
begin
|
|
377
|
+
# List enrollments for a sequence
|
|
378
|
+
api_instance.list_sequence_enrollments(sequence_id, opts)
|
|
379
|
+
rescue Late::ApiError => e
|
|
380
|
+
puts "Error when calling SequencesApi->list_sequence_enrollments: #{e}"
|
|
381
|
+
end
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
#### Using the list_sequence_enrollments_with_http_info variant
|
|
385
|
+
|
|
386
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
387
|
+
|
|
388
|
+
> <Array(nil, Integer, Hash)> list_sequence_enrollments_with_http_info(sequence_id, opts)
|
|
389
|
+
|
|
390
|
+
```ruby
|
|
391
|
+
begin
|
|
392
|
+
# List enrollments for a sequence
|
|
393
|
+
data, status_code, headers = api_instance.list_sequence_enrollments_with_http_info(sequence_id, opts)
|
|
394
|
+
p status_code # => 2xx
|
|
395
|
+
p headers # => { ... }
|
|
396
|
+
p data # => nil
|
|
397
|
+
rescue Late::ApiError => e
|
|
398
|
+
puts "Error when calling SequencesApi->list_sequence_enrollments_with_http_info: #{e}"
|
|
399
|
+
end
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Parameters
|
|
403
|
+
|
|
404
|
+
| Name | Type | Description | Notes |
|
|
405
|
+
| ---- | ---- | ----------- | ----- |
|
|
406
|
+
| **sequence_id** | **String** | | |
|
|
407
|
+
| **status** | **String** | | [optional] |
|
|
408
|
+
| **limit** | **Integer** | | [optional][default to 50] |
|
|
409
|
+
| **skip** | **Integer** | | [optional][default to 0] |
|
|
410
|
+
|
|
411
|
+
### Return type
|
|
412
|
+
|
|
413
|
+
nil (empty response body)
|
|
414
|
+
|
|
415
|
+
### Authorization
|
|
416
|
+
|
|
417
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
418
|
+
|
|
419
|
+
### HTTP request headers
|
|
420
|
+
|
|
421
|
+
- **Content-Type**: Not defined
|
|
422
|
+
- **Accept**: application/json
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
## list_sequences
|
|
426
|
+
|
|
427
|
+
> list_sequences(profile_id, opts)
|
|
428
|
+
|
|
429
|
+
List sequences
|
|
430
|
+
|
|
431
|
+
### Examples
|
|
432
|
+
|
|
433
|
+
```ruby
|
|
434
|
+
require 'time'
|
|
435
|
+
require 'late-sdk'
|
|
436
|
+
# setup authorization
|
|
437
|
+
Late.configure do |config|
|
|
438
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
439
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
api_instance = Late::SequencesApi.new
|
|
443
|
+
profile_id = 'profile_id_example' # String |
|
|
444
|
+
opts = {
|
|
445
|
+
status: 'draft', # String |
|
|
446
|
+
limit: 56, # Integer |
|
|
447
|
+
skip: 56 # Integer |
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
begin
|
|
451
|
+
# List sequences
|
|
452
|
+
api_instance.list_sequences(profile_id, opts)
|
|
453
|
+
rescue Late::ApiError => e
|
|
454
|
+
puts "Error when calling SequencesApi->list_sequences: #{e}"
|
|
455
|
+
end
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
#### Using the list_sequences_with_http_info variant
|
|
459
|
+
|
|
460
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
461
|
+
|
|
462
|
+
> <Array(nil, Integer, Hash)> list_sequences_with_http_info(profile_id, opts)
|
|
463
|
+
|
|
464
|
+
```ruby
|
|
465
|
+
begin
|
|
466
|
+
# List sequences
|
|
467
|
+
data, status_code, headers = api_instance.list_sequences_with_http_info(profile_id, opts)
|
|
468
|
+
p status_code # => 2xx
|
|
469
|
+
p headers # => { ... }
|
|
470
|
+
p data # => nil
|
|
471
|
+
rescue Late::ApiError => e
|
|
472
|
+
puts "Error when calling SequencesApi->list_sequences_with_http_info: #{e}"
|
|
473
|
+
end
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### Parameters
|
|
477
|
+
|
|
478
|
+
| Name | Type | Description | Notes |
|
|
479
|
+
| ---- | ---- | ----------- | ----- |
|
|
480
|
+
| **profile_id** | **String** | | |
|
|
481
|
+
| **status** | **String** | | [optional] |
|
|
482
|
+
| **limit** | **Integer** | | [optional][default to 50] |
|
|
483
|
+
| **skip** | **Integer** | | [optional][default to 0] |
|
|
484
|
+
|
|
485
|
+
### Return type
|
|
486
|
+
|
|
487
|
+
nil (empty response body)
|
|
488
|
+
|
|
489
|
+
### Authorization
|
|
490
|
+
|
|
491
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
492
|
+
|
|
493
|
+
### HTTP request headers
|
|
494
|
+
|
|
495
|
+
- **Content-Type**: Not defined
|
|
496
|
+
- **Accept**: application/json
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
## pause_sequence
|
|
500
|
+
|
|
501
|
+
> pause_sequence(sequence_id)
|
|
502
|
+
|
|
503
|
+
Pause a sequence
|
|
504
|
+
|
|
505
|
+
### Examples
|
|
506
|
+
|
|
507
|
+
```ruby
|
|
508
|
+
require 'time'
|
|
509
|
+
require 'late-sdk'
|
|
510
|
+
# setup authorization
|
|
511
|
+
Late.configure do |config|
|
|
512
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
513
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
api_instance = Late::SequencesApi.new
|
|
517
|
+
sequence_id = 'sequence_id_example' # String |
|
|
518
|
+
|
|
519
|
+
begin
|
|
520
|
+
# Pause a sequence
|
|
521
|
+
api_instance.pause_sequence(sequence_id)
|
|
522
|
+
rescue Late::ApiError => e
|
|
523
|
+
puts "Error when calling SequencesApi->pause_sequence: #{e}"
|
|
524
|
+
end
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
#### Using the pause_sequence_with_http_info variant
|
|
528
|
+
|
|
529
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
530
|
+
|
|
531
|
+
> <Array(nil, Integer, Hash)> pause_sequence_with_http_info(sequence_id)
|
|
532
|
+
|
|
533
|
+
```ruby
|
|
534
|
+
begin
|
|
535
|
+
# Pause a sequence
|
|
536
|
+
data, status_code, headers = api_instance.pause_sequence_with_http_info(sequence_id)
|
|
537
|
+
p status_code # => 2xx
|
|
538
|
+
p headers # => { ... }
|
|
539
|
+
p data # => nil
|
|
540
|
+
rescue Late::ApiError => e
|
|
541
|
+
puts "Error when calling SequencesApi->pause_sequence_with_http_info: #{e}"
|
|
542
|
+
end
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### Parameters
|
|
546
|
+
|
|
547
|
+
| Name | Type | Description | Notes |
|
|
548
|
+
| ---- | ---- | ----------- | ----- |
|
|
549
|
+
| **sequence_id** | **String** | | |
|
|
550
|
+
|
|
551
|
+
### Return type
|
|
552
|
+
|
|
553
|
+
nil (empty response body)
|
|
554
|
+
|
|
555
|
+
### Authorization
|
|
556
|
+
|
|
557
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
558
|
+
|
|
559
|
+
### HTTP request headers
|
|
560
|
+
|
|
561
|
+
- **Content-Type**: Not defined
|
|
562
|
+
- **Accept**: application/json
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
## unenroll_contact
|
|
566
|
+
|
|
567
|
+
> unenroll_contact(sequence_id, contact_id)
|
|
568
|
+
|
|
569
|
+
Unenroll a contact from a sequence
|
|
570
|
+
|
|
571
|
+
### Examples
|
|
572
|
+
|
|
573
|
+
```ruby
|
|
574
|
+
require 'time'
|
|
575
|
+
require 'late-sdk'
|
|
576
|
+
# setup authorization
|
|
577
|
+
Late.configure do |config|
|
|
578
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
579
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
api_instance = Late::SequencesApi.new
|
|
583
|
+
sequence_id = 'sequence_id_example' # String |
|
|
584
|
+
contact_id = 'contact_id_example' # String |
|
|
585
|
+
|
|
586
|
+
begin
|
|
587
|
+
# Unenroll a contact from a sequence
|
|
588
|
+
api_instance.unenroll_contact(sequence_id, contact_id)
|
|
589
|
+
rescue Late::ApiError => e
|
|
590
|
+
puts "Error when calling SequencesApi->unenroll_contact: #{e}"
|
|
591
|
+
end
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
#### Using the unenroll_contact_with_http_info variant
|
|
595
|
+
|
|
596
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
597
|
+
|
|
598
|
+
> <Array(nil, Integer, Hash)> unenroll_contact_with_http_info(sequence_id, contact_id)
|
|
599
|
+
|
|
600
|
+
```ruby
|
|
601
|
+
begin
|
|
602
|
+
# Unenroll a contact from a sequence
|
|
603
|
+
data, status_code, headers = api_instance.unenroll_contact_with_http_info(sequence_id, contact_id)
|
|
604
|
+
p status_code # => 2xx
|
|
605
|
+
p headers # => { ... }
|
|
606
|
+
p data # => nil
|
|
607
|
+
rescue Late::ApiError => e
|
|
608
|
+
puts "Error when calling SequencesApi->unenroll_contact_with_http_info: #{e}"
|
|
609
|
+
end
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
### Parameters
|
|
613
|
+
|
|
614
|
+
| Name | Type | Description | Notes |
|
|
615
|
+
| ---- | ---- | ----------- | ----- |
|
|
616
|
+
| **sequence_id** | **String** | | |
|
|
617
|
+
| **contact_id** | **String** | | |
|
|
618
|
+
|
|
619
|
+
### Return type
|
|
620
|
+
|
|
621
|
+
nil (empty response body)
|
|
622
|
+
|
|
623
|
+
### Authorization
|
|
624
|
+
|
|
625
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
626
|
+
|
|
627
|
+
### HTTP request headers
|
|
628
|
+
|
|
629
|
+
- **Content-Type**: Not defined
|
|
630
|
+
- **Accept**: application/json
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
## update_sequence
|
|
634
|
+
|
|
635
|
+
> update_sequence(sequence_id)
|
|
636
|
+
|
|
637
|
+
Update a sequence
|
|
638
|
+
|
|
639
|
+
### Examples
|
|
640
|
+
|
|
641
|
+
```ruby
|
|
642
|
+
require 'time'
|
|
643
|
+
require 'late-sdk'
|
|
644
|
+
# setup authorization
|
|
645
|
+
Late.configure do |config|
|
|
646
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
647
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
api_instance = Late::SequencesApi.new
|
|
651
|
+
sequence_id = 'sequence_id_example' # String |
|
|
652
|
+
|
|
653
|
+
begin
|
|
654
|
+
# Update a sequence
|
|
655
|
+
api_instance.update_sequence(sequence_id)
|
|
656
|
+
rescue Late::ApiError => e
|
|
657
|
+
puts "Error when calling SequencesApi->update_sequence: #{e}"
|
|
658
|
+
end
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
#### Using the update_sequence_with_http_info variant
|
|
662
|
+
|
|
663
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
664
|
+
|
|
665
|
+
> <Array(nil, Integer, Hash)> update_sequence_with_http_info(sequence_id)
|
|
666
|
+
|
|
667
|
+
```ruby
|
|
668
|
+
begin
|
|
669
|
+
# Update a sequence
|
|
670
|
+
data, status_code, headers = api_instance.update_sequence_with_http_info(sequence_id)
|
|
671
|
+
p status_code # => 2xx
|
|
672
|
+
p headers # => { ... }
|
|
673
|
+
p data # => nil
|
|
674
|
+
rescue Late::ApiError => e
|
|
675
|
+
puts "Error when calling SequencesApi->update_sequence_with_http_info: #{e}"
|
|
676
|
+
end
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
### Parameters
|
|
680
|
+
|
|
681
|
+
| Name | Type | Description | Notes |
|
|
682
|
+
| ---- | ---- | ----------- | ----- |
|
|
683
|
+
| **sequence_id** | **String** | | |
|
|
684
|
+
|
|
685
|
+
### Return type
|
|
686
|
+
|
|
687
|
+
nil (empty response body)
|
|
688
|
+
|
|
689
|
+
### Authorization
|
|
690
|
+
|
|
691
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
692
|
+
|
|
693
|
+
### HTTP request headers
|
|
694
|
+
|
|
695
|
+
- **Content-Type**: Not defined
|
|
696
|
+
- **Accept**: application/json
|
|
697
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Late::SetContactFieldValueRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **value** | **Object** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'late-sdk'
|
|
13
|
+
|
|
14
|
+
instance = Late::SetContactFieldValueRequest.new(
|
|
15
|
+
value: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|