late-sdk 0.0.77 → 0.0.79
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 +32 -1
- data/docs/BroadcastsApi.md +7 -6
- data/docs/BulkCreateContacts200Response.md +26 -0
- data/docs/CommentAutomationsApi.md +28 -24
- data/docs/ContactsApi.md +42 -36
- data/docs/CreateBroadcast200Response.md +20 -0
- data/docs/CreateBroadcast200ResponseBroadcast.md +30 -0
- data/docs/CreateCommentAutomation200Response.md +20 -0
- data/docs/CreateCommentAutomation200ResponseAutomation.md +38 -0
- data/docs/CreateCommentAutomation200ResponseAutomationStats.md +22 -0
- data/docs/CreateContact200Response.md +24 -0
- data/docs/CreateContact200ResponseChannel.md +24 -0
- data/docs/CreateContact200ResponseContact.md +36 -0
- data/docs/CreateCustomField200Response.md +20 -0
- data/docs/CreateSequence200Response.md +20 -0
- data/docs/CreateSequence200ResponseSequence.md +30 -0
- data/docs/CustomFieldsApi.md +21 -18
- data/docs/GetBroadcast200ResponseBroadcast.md +1 -1
- data/docs/GetCommentAutomation200Response.md +22 -0
- data/docs/GetCommentAutomation200ResponseAutomation.md +46 -0
- data/docs/GetCommentAutomation200ResponseLogsInner.md +32 -0
- data/docs/GetContact200Response.md +22 -0
- data/docs/GetContact200ResponseChannelsInner.md +32 -0
- data/docs/GetContact200ResponseContact.md +42 -0
- data/docs/GetContactChannels200Response.md +20 -0
- data/docs/GetContactChannels200ResponseChannelsInner.md +34 -0
- data/docs/ListCommentAutomationLogs200Response.md +22 -0
- data/docs/ListContacts200Response.md +24 -0
- data/docs/ListContacts200ResponseContactsInner.md +52 -0
- data/docs/{GetBroadcast200ResponseBroadcastSegmentFilters.md → ListContacts200ResponseFilters.md} +2 -2
- data/docs/ListCustomFields200Response.md +20 -0
- data/docs/ListCustomFields200ResponseFieldsInner.md +28 -0
- data/docs/SequencesApi.md +7 -6
- data/docs/UpdateCommentAutomation200Response.md +20 -0
- data/docs/UpdateCommentAutomation200ResponseAutomation.md +32 -0
- data/docs/UpdateContact200Response.md +20 -0
- data/docs/UpdateContact200ResponseContact.md +36 -0
- data/docs/UpdateCustomField200Response.md +20 -0
- data/docs/UpdateCustomField200ResponseField.md +26 -0
- data/lib/late-sdk/api/broadcasts_api.rb +5 -5
- data/lib/late-sdk/api/comment_automations_api.rb +20 -20
- data/lib/late-sdk/api/contacts_api.rb +30 -30
- data/lib/late-sdk/api/custom_fields_api.rb +15 -15
- data/lib/late-sdk/api/sequences_api.rb +5 -5
- data/lib/late-sdk/models/bulk_create_contacts200_response.rb +185 -0
- data/lib/late-sdk/models/create_broadcast200_response.rb +156 -0
- data/lib/late-sdk/models/create_broadcast200_response_broadcast.rb +201 -0
- data/lib/late-sdk/models/create_comment_automation200_response.rb +156 -0
- data/lib/late-sdk/models/create_comment_automation200_response_automation.rb +273 -0
- data/lib/late-sdk/models/create_comment_automation200_response_automation_stats.rb +165 -0
- data/lib/late-sdk/models/create_contact200_response.rb +174 -0
- data/lib/late-sdk/models/create_contact200_response_channel.rb +175 -0
- data/lib/late-sdk/models/create_contact200_response_contact.rb +230 -0
- data/lib/late-sdk/models/create_custom_field200_response.rb +156 -0
- data/lib/late-sdk/models/create_sequence200_response.rb +156 -0
- data/lib/late-sdk/models/create_sequence200_response_sequence.rb +201 -0
- data/lib/late-sdk/models/get_broadcast200_response_broadcast.rb +1 -1
- data/lib/late-sdk/models/get_comment_automation200_response.rb +167 -0
- data/lib/late-sdk/models/get_comment_automation200_response_automation.rb +309 -0
- data/lib/late-sdk/models/get_comment_automation200_response_logs_inner.rb +244 -0
- data/lib/late-sdk/models/get_contact200_response.rb +167 -0
- data/lib/late-sdk/models/get_contact200_response_channels_inner.rb +210 -0
- data/lib/late-sdk/models/get_contact200_response_contact.rb +259 -0
- data/lib/late-sdk/models/get_contact_channels200_response.rb +158 -0
- data/lib/late-sdk/models/get_contact_channels200_response_channels_inner.rb +219 -0
- data/lib/late-sdk/models/list_comment_automation_logs200_response.rb +167 -0
- data/lib/late-sdk/models/list_contacts200_response.rb +176 -0
- data/lib/late-sdk/models/list_contacts200_response_contacts_inner.rb +302 -0
- data/lib/late-sdk/models/{get_broadcast200_response_broadcast_segment_filters.rb → list_contacts200_response_filters.rb} +3 -3
- data/lib/late-sdk/models/list_custom_fields200_response.rb +158 -0
- data/lib/late-sdk/models/list_custom_fields200_response_fields_inner.rb +228 -0
- data/lib/late-sdk/models/update_comment_automation200_response.rb +156 -0
- data/lib/late-sdk/models/update_comment_automation200_response_automation.rb +246 -0
- data/lib/late-sdk/models/update_contact200_response.rb +156 -0
- data/lib/late-sdk/models/update_contact200_response_contact.rb +230 -0
- data/lib/late-sdk/models/update_custom_field200_response.rb +156 -0
- data/lib/late-sdk/models/update_custom_field200_response_field.rb +185 -0
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +32 -1
- data/openapi.yaml +360 -15
- data/spec/api/broadcasts_api_spec.rb +1 -1
- data/spec/api/comment_automations_api_spec.rb +4 -4
- data/spec/api/contacts_api_spec.rb +6 -6
- data/spec/api/custom_fields_api_spec.rb +3 -3
- data/spec/api/sequences_api_spec.rb +1 -1
- data/spec/models/bulk_create_contacts200_response_spec.rb +60 -0
- data/spec/models/create_broadcast200_response_broadcast_spec.rb +72 -0
- data/spec/models/create_broadcast200_response_spec.rb +42 -0
- data/spec/models/create_comment_automation200_response_automation_spec.rb +100 -0
- data/spec/models/create_comment_automation200_response_automation_stats_spec.rb +48 -0
- data/spec/models/create_comment_automation200_response_spec.rb +42 -0
- data/spec/models/create_contact200_response_channel_spec.rb +54 -0
- data/spec/models/create_contact200_response_contact_spec.rb +90 -0
- data/spec/models/create_contact200_response_spec.rb +54 -0
- data/spec/models/create_custom_field200_response_spec.rb +42 -0
- data/spec/models/create_sequence200_response_sequence_spec.rb +72 -0
- data/spec/models/create_sequence200_response_spec.rb +42 -0
- data/spec/models/get_comment_automation200_response_automation_spec.rb +124 -0
- data/spec/models/get_comment_automation200_response_logs_inner_spec.rb +82 -0
- data/spec/models/get_comment_automation200_response_spec.rb +48 -0
- data/spec/models/get_contact200_response_channels_inner_spec.rb +78 -0
- data/spec/models/get_contact200_response_contact_spec.rb +108 -0
- data/spec/models/get_contact200_response_spec.rb +48 -0
- data/spec/models/get_contact_channels200_response_channels_inner_spec.rb +84 -0
- data/spec/models/get_contact_channels200_response_spec.rb +42 -0
- data/spec/models/list_comment_automation_logs200_response_spec.rb +48 -0
- data/spec/models/list_contacts200_response_contacts_inner_spec.rb +138 -0
- data/spec/models/{get_broadcast200_response_broadcast_segment_filters_spec.rb → list_contacts200_response_filters_spec.rb} +6 -6
- data/spec/models/list_contacts200_response_spec.rb +54 -0
- data/spec/models/list_custom_fields200_response_fields_inner_spec.rb +70 -0
- data/spec/models/list_custom_fields200_response_spec.rb +42 -0
- data/spec/models/update_comment_automation200_response_automation_spec.rb +82 -0
- data/spec/models/update_comment_automation200_response_spec.rb +42 -0
- data/spec/models/update_contact200_response_contact_spec.rb +90 -0
- data/spec/models/update_contact200_response_spec.rb +42 -0
- data/spec/models/update_custom_field200_response_field_spec.rb +60 -0
- data/spec/models/update_custom_field200_response_spec.rb +42 -0
- data/zernio-sdk-0.0.79.gem +0 -0
- metadata +130 -6
- data/zernio-sdk-0.0.77.gem +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Late::ListCommentAutomationLogs200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **logs** | [**Array<GetCommentAutomation200ResponseLogsInner>**](GetCommentAutomation200ResponseLogsInner.md) | | [optional] |
|
|
9
|
+
| **pagination** | [**GetWhatsAppContacts200ResponsePagination**](GetWhatsAppContacts200ResponsePagination.md) | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'late-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Late::ListCommentAutomationLogs200Response.new(
|
|
17
|
+
success: null,
|
|
18
|
+
logs: null,
|
|
19
|
+
pagination: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Late::ListContacts200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **contacts** | [**Array<ListContacts200ResponseContactsInner>**](ListContacts200ResponseContactsInner.md) | | [optional] |
|
|
9
|
+
| **filters** | [**ListContacts200ResponseFilters**](ListContacts200ResponseFilters.md) | | [optional] |
|
|
10
|
+
| **pagination** | [**GetWhatsAppContacts200ResponsePagination**](GetWhatsAppContacts200ResponsePagination.md) | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'late-sdk'
|
|
16
|
+
|
|
17
|
+
instance = Late::ListContacts200Response.new(
|
|
18
|
+
success: null,
|
|
19
|
+
contacts: null,
|
|
20
|
+
filters: null,
|
|
21
|
+
pagination: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Late::ListContacts200ResponseContactsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **email** | **String** | | [optional] |
|
|
10
|
+
| **company** | **String** | | [optional] |
|
|
11
|
+
| **avatar_url** | **String** | | [optional] |
|
|
12
|
+
| **tags** | **Array<String>** | | [optional] |
|
|
13
|
+
| **is_subscribed** | **Boolean** | | [optional] |
|
|
14
|
+
| **is_blocked** | **Boolean** | | [optional] |
|
|
15
|
+
| **last_message_sent_at** | **Time** | | [optional] |
|
|
16
|
+
| **last_message_received_at** | **Time** | | [optional] |
|
|
17
|
+
| **messages_sent_count** | **Integer** | | [optional] |
|
|
18
|
+
| **messages_received_count** | **Integer** | | [optional] |
|
|
19
|
+
| **custom_fields** | **Object** | | [optional] |
|
|
20
|
+
| **notes** | **String** | | [optional] |
|
|
21
|
+
| **created_at** | **Time** | | [optional] |
|
|
22
|
+
| **platform** | **String** | | [optional] |
|
|
23
|
+
| **platform_identifier** | **String** | | [optional] |
|
|
24
|
+
| **display_identifier** | **String** | | [optional] |
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'late-sdk'
|
|
30
|
+
|
|
31
|
+
instance = Late::ListContacts200ResponseContactsInner.new(
|
|
32
|
+
id: null,
|
|
33
|
+
name: null,
|
|
34
|
+
email: null,
|
|
35
|
+
company: null,
|
|
36
|
+
avatar_url: null,
|
|
37
|
+
tags: null,
|
|
38
|
+
is_subscribed: null,
|
|
39
|
+
is_blocked: null,
|
|
40
|
+
last_message_sent_at: null,
|
|
41
|
+
last_message_received_at: null,
|
|
42
|
+
messages_sent_count: null,
|
|
43
|
+
messages_received_count: null,
|
|
44
|
+
custom_fields: null,
|
|
45
|
+
notes: null,
|
|
46
|
+
created_at: null,
|
|
47
|
+
platform: null,
|
|
48
|
+
platform_identifier: null,
|
|
49
|
+
display_identifier: null
|
|
50
|
+
)
|
|
51
|
+
```
|
|
52
|
+
|
data/docs/{GetBroadcast200ResponseBroadcastSegmentFilters.md → ListContacts200ResponseFilters.md}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Late::
|
|
1
|
+
# Late::ListContacts200ResponseFilters
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
```ruby
|
|
12
12
|
require 'late-sdk'
|
|
13
13
|
|
|
14
|
-
instance = Late::
|
|
14
|
+
instance = Late::ListContacts200ResponseFilters.new(
|
|
15
15
|
tags: null
|
|
16
16
|
)
|
|
17
17
|
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Late::ListCustomFields200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **fields** | [**Array<ListCustomFields200ResponseFieldsInner>**](ListCustomFields200ResponseFieldsInner.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'late-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Late::ListCustomFields200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
fields: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Late::ListCustomFields200ResponseFieldsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **slug** | **String** | | [optional] |
|
|
10
|
+
| **type** | **String** | | [optional] |
|
|
11
|
+
| **options** | **Array<String>** | | [optional] |
|
|
12
|
+
| **created_at** | **Time** | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'late-sdk'
|
|
18
|
+
|
|
19
|
+
instance = Late::ListCustomFields200ResponseFieldsInner.new(
|
|
20
|
+
id: null,
|
|
21
|
+
name: null,
|
|
22
|
+
slug: null,
|
|
23
|
+
type: null,
|
|
24
|
+
options: null,
|
|
25
|
+
created_at: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/SequencesApi.md
CHANGED
|
@@ -85,7 +85,7 @@ end
|
|
|
85
85
|
|
|
86
86
|
## create_sequence
|
|
87
87
|
|
|
88
|
-
> create_sequence(create_sequence_request)
|
|
88
|
+
> <CreateSequence200Response> create_sequence(create_sequence_request)
|
|
89
89
|
|
|
90
90
|
Create a sequence
|
|
91
91
|
|
|
@@ -105,7 +105,8 @@ create_sequence_request = Late::CreateSequenceRequest.new({profile_id: 'profile_
|
|
|
105
105
|
|
|
106
106
|
begin
|
|
107
107
|
# Create a sequence
|
|
108
|
-
api_instance.create_sequence(create_sequence_request)
|
|
108
|
+
result = api_instance.create_sequence(create_sequence_request)
|
|
109
|
+
p result
|
|
109
110
|
rescue Late::ApiError => e
|
|
110
111
|
puts "Error when calling SequencesApi->create_sequence: #{e}"
|
|
111
112
|
end
|
|
@@ -113,9 +114,9 @@ end
|
|
|
113
114
|
|
|
114
115
|
#### Using the create_sequence_with_http_info variant
|
|
115
116
|
|
|
116
|
-
This returns an Array which contains the response data
|
|
117
|
+
This returns an Array which contains the response data, status code and headers.
|
|
117
118
|
|
|
118
|
-
> <Array(
|
|
119
|
+
> <Array(<CreateSequence200Response>, Integer, Hash)> create_sequence_with_http_info(create_sequence_request)
|
|
119
120
|
|
|
120
121
|
```ruby
|
|
121
122
|
begin
|
|
@@ -123,7 +124,7 @@ begin
|
|
|
123
124
|
data, status_code, headers = api_instance.create_sequence_with_http_info(create_sequence_request)
|
|
124
125
|
p status_code # => 2xx
|
|
125
126
|
p headers # => { ... }
|
|
126
|
-
p data # =>
|
|
127
|
+
p data # => <CreateSequence200Response>
|
|
127
128
|
rescue Late::ApiError => e
|
|
128
129
|
puts "Error when calling SequencesApi->create_sequence_with_http_info: #{e}"
|
|
129
130
|
end
|
|
@@ -137,7 +138,7 @@ end
|
|
|
137
138
|
|
|
138
139
|
### Return type
|
|
139
140
|
|
|
140
|
-
|
|
141
|
+
[**CreateSequence200Response**](CreateSequence200Response.md)
|
|
141
142
|
|
|
142
143
|
### Authorization
|
|
143
144
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Late::UpdateCommentAutomation200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **automation** | [**UpdateCommentAutomation200ResponseAutomation**](UpdateCommentAutomation200ResponseAutomation.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'late-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Late::UpdateCommentAutomation200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
automation: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Late::UpdateCommentAutomation200ResponseAutomation
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **keywords** | **Array<String>** | | [optional] |
|
|
10
|
+
| **match_mode** | **String** | | [optional] |
|
|
11
|
+
| **dm_message** | **String** | | [optional] |
|
|
12
|
+
| **comment_reply** | **String** | | [optional] |
|
|
13
|
+
| **is_active** | **Boolean** | | [optional] |
|
|
14
|
+
| **updated_at** | **Time** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'late-sdk'
|
|
20
|
+
|
|
21
|
+
instance = Late::UpdateCommentAutomation200ResponseAutomation.new(
|
|
22
|
+
id: null,
|
|
23
|
+
name: null,
|
|
24
|
+
keywords: null,
|
|
25
|
+
match_mode: null,
|
|
26
|
+
dm_message: null,
|
|
27
|
+
comment_reply: null,
|
|
28
|
+
is_active: null,
|
|
29
|
+
updated_at: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Late::UpdateContact200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **contact** | [**UpdateContact200ResponseContact**](UpdateContact200ResponseContact.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'late-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Late::UpdateContact200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
contact: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Late::UpdateContact200ResponseContact
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **email** | **String** | | [optional] |
|
|
10
|
+
| **company** | **String** | | [optional] |
|
|
11
|
+
| **avatar_url** | **String** | | [optional] |
|
|
12
|
+
| **tags** | **Array<String>** | | [optional] |
|
|
13
|
+
| **is_subscribed** | **Boolean** | | [optional] |
|
|
14
|
+
| **is_blocked** | **Boolean** | | [optional] |
|
|
15
|
+
| **notes** | **String** | | [optional] |
|
|
16
|
+
| **updated_at** | **Time** | | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'late-sdk'
|
|
22
|
+
|
|
23
|
+
instance = Late::UpdateContact200ResponseContact.new(
|
|
24
|
+
id: null,
|
|
25
|
+
name: null,
|
|
26
|
+
email: null,
|
|
27
|
+
company: null,
|
|
28
|
+
avatar_url: null,
|
|
29
|
+
tags: null,
|
|
30
|
+
is_subscribed: null,
|
|
31
|
+
is_blocked: null,
|
|
32
|
+
notes: null,
|
|
33
|
+
updated_at: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Late::UpdateCustomField200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
|
8
|
+
| **field** | [**UpdateCustomField200ResponseField**](UpdateCustomField200ResponseField.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'late-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Late::UpdateCustomField200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
field: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Late::UpdateCustomField200ResponseField
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **slug** | **String** | | [optional] |
|
|
10
|
+
| **type** | **String** | | [optional] |
|
|
11
|
+
| **options** | **Array<String>** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'late-sdk'
|
|
17
|
+
|
|
18
|
+
instance = Late::UpdateCustomField200ResponseField.new(
|
|
19
|
+
id: null,
|
|
20
|
+
name: null,
|
|
21
|
+
slug: null,
|
|
22
|
+
type: null,
|
|
23
|
+
options: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -155,16 +155,16 @@ module Late
|
|
|
155
155
|
# Create a broadcast draft
|
|
156
156
|
# @param create_broadcast_request [CreateBroadcastRequest]
|
|
157
157
|
# @param [Hash] opts the optional parameters
|
|
158
|
-
# @return [
|
|
158
|
+
# @return [CreateBroadcast200Response]
|
|
159
159
|
def create_broadcast(create_broadcast_request, opts = {})
|
|
160
|
-
create_broadcast_with_http_info(create_broadcast_request, opts)
|
|
161
|
-
|
|
160
|
+
data, _status_code, _headers = create_broadcast_with_http_info(create_broadcast_request, opts)
|
|
161
|
+
data
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
# Create a broadcast draft
|
|
165
165
|
# @param create_broadcast_request [CreateBroadcastRequest]
|
|
166
166
|
# @param [Hash] opts the optional parameters
|
|
167
|
-
# @return [Array<(
|
|
167
|
+
# @return [Array<(CreateBroadcast200Response, Integer, Hash)>] CreateBroadcast200Response data, response status code and response headers
|
|
168
168
|
def create_broadcast_with_http_info(create_broadcast_request, opts = {})
|
|
169
169
|
if @api_client.config.debugging
|
|
170
170
|
@api_client.config.logger.debug 'Calling API: BroadcastsApi.create_broadcast ...'
|
|
@@ -196,7 +196,7 @@ module Late
|
|
|
196
196
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_broadcast_request)
|
|
197
197
|
|
|
198
198
|
# return_type
|
|
199
|
-
return_type = opts[:debug_return_type]
|
|
199
|
+
return_type = opts[:debug_return_type] || 'CreateBroadcast200Response'
|
|
200
200
|
|
|
201
201
|
# auth_names
|
|
202
202
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -23,17 +23,17 @@ module Late
|
|
|
23
23
|
# 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.
|
|
24
24
|
# @param create_comment_automation_request [CreateCommentAutomationRequest]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
-
# @return [
|
|
26
|
+
# @return [CreateCommentAutomation200Response]
|
|
27
27
|
def create_comment_automation(create_comment_automation_request, opts = {})
|
|
28
|
-
create_comment_automation_with_http_info(create_comment_automation_request, opts)
|
|
29
|
-
|
|
28
|
+
data, _status_code, _headers = create_comment_automation_with_http_info(create_comment_automation_request, opts)
|
|
29
|
+
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Create a comment-to-DM automation
|
|
33
33
|
# 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.
|
|
34
34
|
# @param create_comment_automation_request [CreateCommentAutomationRequest]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
|
-
# @return [Array<(
|
|
36
|
+
# @return [Array<(CreateCommentAutomation200Response, Integer, Hash)>] CreateCommentAutomation200Response data, response status code and response headers
|
|
37
37
|
def create_comment_automation_with_http_info(create_comment_automation_request, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
39
|
@api_client.config.logger.debug 'Calling API: CommentAutomationsApi.create_comment_automation ...'
|
|
@@ -65,7 +65,7 @@ module Late
|
|
|
65
65
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_comment_automation_request)
|
|
66
66
|
|
|
67
67
|
# return_type
|
|
68
|
-
return_type = opts[:debug_return_type]
|
|
68
|
+
return_type = opts[:debug_return_type] || 'CreateCommentAutomation200Response'
|
|
69
69
|
|
|
70
70
|
# auth_names
|
|
71
71
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -151,16 +151,16 @@ module Late
|
|
|
151
151
|
# Get automation details with recent logs
|
|
152
152
|
# @param automation_id [String]
|
|
153
153
|
# @param [Hash] opts the optional parameters
|
|
154
|
-
# @return [
|
|
154
|
+
# @return [GetCommentAutomation200Response]
|
|
155
155
|
def get_comment_automation(automation_id, opts = {})
|
|
156
|
-
get_comment_automation_with_http_info(automation_id, opts)
|
|
157
|
-
|
|
156
|
+
data, _status_code, _headers = get_comment_automation_with_http_info(automation_id, opts)
|
|
157
|
+
data
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# Get automation details with recent logs
|
|
161
161
|
# @param automation_id [String]
|
|
162
162
|
# @param [Hash] opts the optional parameters
|
|
163
|
-
# @return [Array<(
|
|
163
|
+
# @return [Array<(GetCommentAutomation200Response, Integer, Hash)>] GetCommentAutomation200Response data, response status code and response headers
|
|
164
164
|
def get_comment_automation_with_http_info(automation_id, opts = {})
|
|
165
165
|
if @api_client.config.debugging
|
|
166
166
|
@api_client.config.logger.debug 'Calling API: CommentAutomationsApi.get_comment_automation ...'
|
|
@@ -187,7 +187,7 @@ module Late
|
|
|
187
187
|
post_body = opts[:debug_body]
|
|
188
188
|
|
|
189
189
|
# return_type
|
|
190
|
-
return_type = opts[:debug_return_type]
|
|
190
|
+
return_type = opts[:debug_return_type] || 'GetCommentAutomation200Response'
|
|
191
191
|
|
|
192
192
|
# auth_names
|
|
193
193
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -216,10 +216,10 @@ module Late
|
|
|
216
216
|
# @option opts [String] :status Filter by result status
|
|
217
217
|
# @option opts [Integer] :limit (default to 50)
|
|
218
218
|
# @option opts [Integer] :skip (default to 0)
|
|
219
|
-
# @return [
|
|
219
|
+
# @return [ListCommentAutomationLogs200Response]
|
|
220
220
|
def list_comment_automation_logs(automation_id, opts = {})
|
|
221
|
-
list_comment_automation_logs_with_http_info(automation_id, opts)
|
|
222
|
-
|
|
221
|
+
data, _status_code, _headers = list_comment_automation_logs_with_http_info(automation_id, opts)
|
|
222
|
+
data
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# List trigger logs for an automation
|
|
@@ -229,7 +229,7 @@ module Late
|
|
|
229
229
|
# @option opts [String] :status Filter by result status
|
|
230
230
|
# @option opts [Integer] :limit (default to 50)
|
|
231
231
|
# @option opts [Integer] :skip (default to 0)
|
|
232
|
-
# @return [Array<(
|
|
232
|
+
# @return [Array<(ListCommentAutomationLogs200Response, Integer, Hash)>] ListCommentAutomationLogs200Response data, response status code and response headers
|
|
233
233
|
def list_comment_automation_logs_with_http_info(automation_id, opts = {})
|
|
234
234
|
if @api_client.config.debugging
|
|
235
235
|
@api_client.config.logger.debug 'Calling API: CommentAutomationsApi.list_comment_automation_logs ...'
|
|
@@ -263,7 +263,7 @@ module Late
|
|
|
263
263
|
post_body = opts[:debug_body]
|
|
264
264
|
|
|
265
265
|
# return_type
|
|
266
|
-
return_type = opts[:debug_return_type]
|
|
266
|
+
return_type = opts[:debug_return_type] || 'ListCommentAutomationLogs200Response'
|
|
267
267
|
|
|
268
268
|
# auth_names
|
|
269
269
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -349,17 +349,17 @@ module Late
|
|
|
349
349
|
# @param automation_id [String]
|
|
350
350
|
# @param [Hash] opts the optional parameters
|
|
351
351
|
# @option opts [UpdateCommentAutomationRequest] :update_comment_automation_request
|
|
352
|
-
# @return [
|
|
352
|
+
# @return [UpdateCommentAutomation200Response]
|
|
353
353
|
def update_comment_automation(automation_id, opts = {})
|
|
354
|
-
update_comment_automation_with_http_info(automation_id, opts)
|
|
355
|
-
|
|
354
|
+
data, _status_code, _headers = update_comment_automation_with_http_info(automation_id, opts)
|
|
355
|
+
data
|
|
356
356
|
end
|
|
357
357
|
|
|
358
358
|
# Update automation settings
|
|
359
359
|
# @param automation_id [String]
|
|
360
360
|
# @param [Hash] opts the optional parameters
|
|
361
361
|
# @option opts [UpdateCommentAutomationRequest] :update_comment_automation_request
|
|
362
|
-
# @return [Array<(
|
|
362
|
+
# @return [Array<(UpdateCommentAutomation200Response, Integer, Hash)>] UpdateCommentAutomation200Response data, response status code and response headers
|
|
363
363
|
def update_comment_automation_with_http_info(automation_id, opts = {})
|
|
364
364
|
if @api_client.config.debugging
|
|
365
365
|
@api_client.config.logger.debug 'Calling API: CommentAutomationsApi.update_comment_automation ...'
|
|
@@ -391,7 +391,7 @@ module Late
|
|
|
391
391
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_comment_automation_request'])
|
|
392
392
|
|
|
393
393
|
# return_type
|
|
394
|
-
return_type = opts[:debug_return_type]
|
|
394
|
+
return_type = opts[:debug_return_type] || 'UpdateCommentAutomation200Response'
|
|
395
395
|
|
|
396
396
|
# auth_names
|
|
397
397
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|