sib-api-v3-sdk 8.1.0 → 9.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +82 -33
- data/docs/Body.md +3 -11
- data/docs/Body1.md +3 -11
- data/docs/Body10.md +11 -0
- data/docs/Body11.md +8 -0
- data/docs/Body12.md +11 -0
- data/docs/Body2.md +11 -0
- data/docs/Body3.md +9 -0
- data/docs/Body4.md +9 -0
- data/docs/Body5.md +11 -0
- data/docs/Body6.md +18 -0
- data/docs/Body7.md +17 -0
- data/docs/Body8.md +13 -0
- data/docs/Body9.md +8 -0
- data/docs/CompaniesApi.md +425 -0
- data/docs/CompaniesList.md +8 -0
- data/docs/Company.md +11 -0
- data/docs/CompanyAttributes.md +7 -0
- data/docs/CompanyAttributesInner.md +12 -0
- data/docs/ContactsApi.md +8 -2
- data/docs/{ListsApi.md → ConversationsApi.md} +115 -133
- data/docs/ConversationsMessage.md +17 -0
- data/docs/ConversationsMessageFile.md +12 -0
- data/docs/ConversationsMessageFileImageInfo.md +10 -0
- data/docs/CreateContact.md +1 -1
- data/docs/CreateEmailCampaign.md +2 -0
- data/docs/CreateEmailCampaignRecipients.md +1 -0
- data/docs/CreateSubAccount.md +3 -3
- data/docs/CreateSubAccountResponse.md +8 -0
- data/docs/Deal.md +11 -0
- data/docs/DealAttributes.md +7 -0
- data/docs/DealAttributesInner.md +12 -0
- data/docs/DealsApi.md +476 -0
- data/docs/DealsList.md +8 -0
- data/docs/EmailCampaignsApi.md +6 -5
- data/docs/FileData.md +3 -6
- data/docs/FileDownloadableLink.md +8 -0
- data/docs/FileList.md +7 -0
- data/docs/FilesApi.md +318 -0
- data/docs/GetCampaignStats.md +2 -0
- data/docs/GetScheduledEmailByBatchId.md +9 -0
- data/docs/GetScheduledEmailByBatchIdBatches.md +10 -0
- data/docs/GetScheduledEmailByMessageId.md +10 -0
- data/docs/GetSsoToken.md +1 -1
- data/docs/InboundParsingApi.md +60 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse201.md +8 -0
- data/docs/InlineResponse2011.md +8 -0
- data/docs/MasterAccountApi.md +6 -6
- data/docs/NoteData.md +1 -0
- data/docs/NoteId.md +8 -0
- data/docs/NoteList.md +7 -0
- data/docs/NotesApi.md +312 -0
- data/docs/Pipeline.md +8 -0
- data/docs/PipelineStage.md +9 -0
- data/docs/ScheduleSmtpEmail.md +10 -0
- data/docs/SendSmtpEmail.md +3 -1
- data/docs/SubAccountDetailsResponsePlanInfoCredits.md +1 -1
- data/docs/SubAccountsResponseSubAccounts.md +4 -4
- data/docs/Task.md +0 -11
- data/docs/TaskList.md +8 -0
- data/docs/TaskReminder.md +1 -1
- data/docs/TaskTypes.md +0 -1
- data/docs/{FoldersApi.md → TasksApi.md} +95 -91
- data/docs/TransactionalEmailsApi.md +201 -2
- data/docs/UpdateContact.md +1 -1
- data/docs/UpdateEmailCampaign.md +3 -1
- data/docs/UpdateEmailCampaignRecipients.md +2 -1
- data/docs/UpdateSmtpTemplate.md +1 -1
- data/docs/UploadImageModel.md +8 -0
- data/lib/sib-api-v3-sdk/api/companies_api.rb +409 -0
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +26 -0
- data/lib/sib-api-v3-sdk/api/conversations_api.rb +504 -0
- data/lib/sib-api-v3-sdk/api/deals_api.rb +454 -0
- data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +13 -8
- data/lib/sib-api-v3-sdk/api/files_api.rb +313 -0
- data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +57 -1
- data/lib/sib-api-v3-sdk/api/master_account_api.rb +9 -9
- data/lib/sib-api-v3-sdk/api/notes_api.rb +308 -0
- data/lib/sib-api-v3-sdk/api/process_api.rb +4 -0
- data/lib/sib-api-v3-sdk/api/reseller_api.rb +4 -0
- data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +4 -0
- data/lib/sib-api-v3-sdk/api/tasks_api.rb +375 -0
- data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +222 -3
- data/lib/sib-api-v3-sdk/models/body.rb +16 -111
- data/lib/sib-api-v3-sdk/models/body_1.rb +16 -116
- data/lib/sib-api-v3-sdk/models/body_10.rb +225 -0
- data/lib/sib-api-v3-sdk/models/body_11.rb +190 -0
- data/lib/sib-api-v3-sdk/models/body_12.rb +215 -0
- data/lib/sib-api-v3-sdk/models/body_2.rb +223 -0
- data/lib/sib-api-v3-sdk/models/body_3.rb +200 -0
- data/lib/sib-api-v3-sdk/models/body_4.rb +195 -0
- data/lib/sib-api-v3-sdk/models/body_5.rb +223 -0
- data/lib/sib-api-v3-sdk/models/body_6.rb +320 -0
- data/lib/sib-api-v3-sdk/models/body_7.rb +281 -0
- data/lib/sib-api-v3-sdk/models/body_8.rb +245 -0
- data/lib/sib-api-v3-sdk/models/body_9.rb +190 -0
- data/lib/sib-api-v3-sdk/models/companies_list.rb +188 -0
- data/lib/sib-api-v3-sdk/models/company.rb +220 -0
- data/lib/sib-api-v3-sdk/models/company_attributes.rb +176 -0
- data/lib/sib-api-v3-sdk/models/company_attributes_inner.rb +223 -0
- data/lib/sib-api-v3-sdk/models/conversations_message.rb +324 -0
- data/lib/sib-api-v3-sdk/models/conversations_message_file.rb +239 -0
- data/lib/sib-api-v3-sdk/models/conversations_message_file_image_info.rb +236 -0
- data/lib/sib-api-v3-sdk/models/create_contact.rb +1 -1
- data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +24 -4
- data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +17 -5
- data/lib/sib-api-v3-sdk/models/create_sub_account.rb +3 -3
- data/lib/sib-api-v3-sdk/models/create_sub_account_response.rb +190 -0
- data/lib/sib-api-v3-sdk/models/deal.rb +220 -0
- data/lib/sib-api-v3-sdk/models/deal_attributes.rb +176 -0
- data/lib/sib-api-v3-sdk/models/deal_attributes_inner.rb +223 -0
- data/lib/sib-api-v3-sdk/models/deals_list.rb +188 -0
- data/lib/sib-api-v3-sdk/models/file_data.rb +22 -54
- data/lib/sib-api-v3-sdk/models/file_downloadable_link.rb +190 -0
- data/lib/sib-api-v3-sdk/models/file_list.rb +176 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +21 -1
- data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_batch_id.rb +196 -0
- data/lib/sib-api-v3-sdk/models/{contact.rb → get_scheduled_email_by_batch_id_batches.rb} +62 -74
- data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_message_id.rb +254 -0
- data/lib/sib-api-v3-sdk/models/get_sso_token.rb +1 -1
- data/lib/sib-api-v3-sdk/models/inline_response_200.rb +191 -0
- data/lib/sib-api-v3-sdk/models/inline_response_201.rb +191 -0
- data/lib/sib-api-v3-sdk/models/inline_response_201_1.rb +191 -0
- data/lib/sib-api-v3-sdk/models/note_data.rb +16 -4
- data/lib/sib-api-v3-sdk/models/note_id.rb +186 -0
- data/lib/sib-api-v3-sdk/models/note_list.rb +176 -0
- data/lib/sib-api-v3-sdk/models/pipeline.rb +188 -0
- data/lib/sib-api-v3-sdk/models/pipeline_stage.rb +196 -0
- data/lib/sib-api-v3-sdk/models/schedule_smtp_email.rb +206 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +24 -4
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +2 -2
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +1 -1
- data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +1 -1
- data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +4 -4
- data/lib/sib-api-v3-sdk/models/task.rb +4 -119
- data/lib/sib-api-v3-sdk/models/task_list.rb +188 -0
- data/lib/sib-api-v3-sdk/models/task_reminder.rb +1 -1
- data/lib/sib-api-v3-sdk/models/task_types.rb +1 -11
- data/lib/sib-api-v3-sdk/models/update_contact.rb +1 -1
- data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +25 -5
- data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +18 -6
- data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +1 -1
- data/lib/sib-api-v3-sdk/models/upload_image_model.rb +190 -0
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/lib/sib-api-v3-sdk.rb +44 -5
- data/spec/api/companies_api_spec.rb +119 -0
- data/spec/api/contacts_api_spec.rb +2 -0
- data/spec/api/{crm_api_spec.rb → conversations_api_spec.rb} +54 -94
- data/spec/api/{lists_api_spec.rb → deals_api_spec.rb} +51 -68
- data/spec/api/email_campaigns_api_spec.rb +1 -1
- data/spec/api/files_api_spec.rb +99 -0
- data/spec/api/inbound_parsing_api_spec.rb +12 -0
- data/spec/api/master_account_api_spec.rb +4 -4
- data/spec/api/notes_api_spec.rb +97 -0
- data/spec/api/{folders_api_spec.rb → tasks_api_spec.rb} +47 -41
- data/spec/api/transactional_emails_api_spec.rb +44 -0
- data/spec/models/body_10_spec.rb +59 -0
- data/spec/models/body_11_spec.rb +41 -0
- data/spec/models/body_12_spec.rb +59 -0
- data/spec/models/body_1_spec.rb +2 -50
- data/spec/models/body_2_spec.rb +59 -0
- data/spec/models/body_3_spec.rb +47 -0
- data/spec/models/body_4_spec.rb +47 -0
- data/spec/models/body_5_spec.rb +59 -0
- data/spec/models/body_6_spec.rb +101 -0
- data/spec/models/{contact_spec.rb → body_7_spec.rb} +26 -14
- data/spec/{api/attributes_api_spec.rb → models/body_8_spec.rb} +22 -34
- data/spec/models/body_9_spec.rb +41 -0
- data/spec/models/body_spec.rb +2 -50
- data/spec/models/companies_list_spec.rb +41 -0
- data/spec/models/company_attributes_inner_spec.rb +65 -0
- data/spec/models/company_attributes_spec.rb +35 -0
- data/spec/models/company_spec.rb +59 -0
- data/spec/models/conversations_message_file_image_info_spec.rb +53 -0
- data/spec/models/conversations_message_file_spec.rb +65 -0
- data/spec/models/conversations_message_spec.rb +99 -0
- data/spec/models/create_email_campaign_recipients_spec.rb +6 -0
- data/spec/models/create_email_campaign_spec.rb +12 -0
- data/spec/models/create_sub_account_response_spec.rb +41 -0
- data/spec/models/deal_attributes_inner_spec.rb +65 -0
- data/spec/models/deal_attributes_spec.rb +35 -0
- data/spec/models/deal_spec.rb +59 -0
- data/spec/models/deals_list_spec.rb +41 -0
- data/spec/models/file_data_spec.rb +3 -21
- data/spec/models/file_downloadable_link_spec.rb +41 -0
- data/spec/models/file_list_spec.rb +35 -0
- data/spec/models/get_campaign_stats_spec.rb +12 -0
- data/spec/models/get_scheduled_email_by_batch_id_batches_spec.rb +57 -0
- data/spec/models/get_scheduled_email_by_batch_id_spec.rb +47 -0
- data/spec/models/get_scheduled_email_by_message_id_spec.rb +57 -0
- data/spec/models/inline_response_200_spec.rb +41 -0
- data/spec/models/inline_response_201_1_spec.rb +41 -0
- data/spec/models/inline_response_201_spec.rb +41 -0
- data/spec/models/note_data_spec.rb +6 -0
- data/spec/models/note_id_spec.rb +41 -0
- data/spec/models/note_list_spec.rb +35 -0
- data/spec/models/pipeline_spec.rb +41 -0
- data/spec/models/pipeline_stage_spec.rb +47 -0
- data/spec/models/schedule_smtp_email_spec.rb +53 -0
- data/spec/models/send_smtp_email_spec.rb +12 -0
- data/spec/models/task_list_spec.rb +41 -0
- data/spec/models/task_spec.rb +0 -66
- data/spec/models/task_types_spec.rb +0 -6
- data/spec/models/update_email_campaign_recipients_spec.rb +6 -0
- data/spec/models/update_email_campaign_spec.rb +12 -0
- data/spec/models/upload_image_model_spec.rb +41 -0
- metadata +179 -23
- data/docs/AttributesApi.md +0 -246
- data/docs/CRMApi.md +0 -762
- data/docs/Contact.md +0 -15
- data/lib/sib-api-v3-sdk/api/attributes_api.rb +0 -274
- data/lib/sib-api-v3-sdk/api/crm_api.rb +0 -716
- data/lib/sib-api-v3-sdk/api/folders_api.rb +0 -383
- data/lib/sib-api-v3-sdk/api/lists_api.rb +0 -562
@@ -1,24 +1,26 @@
|
|
1
|
-
# SibApiV3Sdk::
|
1
|
+
# SibApiV3Sdk::ConversationsApi
|
2
2
|
|
3
3
|
All URIs are relative to *https://api.sendinblue.com/v3*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
10
|
-
[**
|
11
|
-
[**
|
12
|
-
[**
|
13
|
-
[**
|
14
|
-
[**
|
15
|
-
[**
|
7
|
+
[**conversations_agent_online_ping_post**](ConversationsApi.md#conversations_agent_online_ping_post) | **POST** /conversations/agentOnlinePing | Sets agent’s status to online for 2-3 minutes
|
8
|
+
[**conversations_messages_id_delete**](ConversationsApi.md#conversations_messages_id_delete) | **DELETE** /conversations/messages/{id} | Delete a message sent by an agent
|
9
|
+
[**conversations_messages_id_get**](ConversationsApi.md#conversations_messages_id_get) | **GET** /conversations/messages/{id} | Get a message
|
10
|
+
[**conversations_messages_id_put**](ConversationsApi.md#conversations_messages_id_put) | **PUT** /conversations/messages/{id} | Update a message sent by an agent
|
11
|
+
[**conversations_messages_post**](ConversationsApi.md#conversations_messages_post) | **POST** /conversations/messages | Send a message as an agent
|
12
|
+
[**conversations_pushed_messages_id_delete**](ConversationsApi.md#conversations_pushed_messages_id_delete) | **DELETE** /conversations/pushedMessages/{id} | Delete an automated message
|
13
|
+
[**conversations_pushed_messages_id_get**](ConversationsApi.md#conversations_pushed_messages_id_get) | **GET** /conversations/pushedMessages/{id} | Get an automated message
|
14
|
+
[**conversations_pushed_messages_id_put**](ConversationsApi.md#conversations_pushed_messages_id_put) | **PUT** /conversations/pushedMessages/{id} | Update an automated message
|
15
|
+
[**conversations_pushed_messages_post**](ConversationsApi.md#conversations_pushed_messages_post) | **POST** /conversations/pushedMessages | Send an automated message to a visitor
|
16
16
|
|
17
17
|
|
18
|
-
# **
|
19
|
-
>
|
18
|
+
# **conversations_agent_online_ping_post**
|
19
|
+
> conversations_agent_online_ping_post(body)
|
20
20
|
|
21
|
-
|
21
|
+
Sets agent’s status to online for 2-3 minutes
|
22
|
+
|
23
|
+
We recommend pinging this endpoint every minute for as long as the agent has to be considered online.
|
22
24
|
|
23
25
|
### Example
|
24
26
|
```ruby
|
@@ -37,19 +39,16 @@ SibApiV3Sdk.configure do |config|
|
|
37
39
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
38
40
|
end
|
39
41
|
|
40
|
-
api_instance = SibApiV3Sdk::
|
41
|
-
|
42
|
-
list_id = 789 # Integer | Id of the list
|
42
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
43
43
|
|
44
|
-
|
44
|
+
body = SibApiV3Sdk::Body12.new # Body12 | Agent fields.
|
45
45
|
|
46
46
|
|
47
47
|
begin
|
48
|
-
#
|
49
|
-
|
50
|
-
p result
|
48
|
+
#Sets agent’s status to online for 2-3 minutes
|
49
|
+
api_instance.conversations_agent_online_ping_post(body)
|
51
50
|
rescue SibApiV3Sdk::ApiError => e
|
52
|
-
puts "Exception when calling
|
51
|
+
puts "Exception when calling ConversationsApi->conversations_agent_online_ping_post: #{e}"
|
53
52
|
end
|
54
53
|
```
|
55
54
|
|
@@ -57,12 +56,11 @@ end
|
|
57
56
|
|
58
57
|
Name | Type | Description | Notes
|
59
58
|
------------- | ------------- | ------------- | -------------
|
60
|
-
**
|
61
|
-
**contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses OR IDs of the contacts |
|
59
|
+
**body** | [**Body12**](Body12.md)| Agent fields. |
|
62
60
|
|
63
61
|
### Return type
|
64
62
|
|
65
|
-
|
63
|
+
nil (empty response body)
|
66
64
|
|
67
65
|
### Authorization
|
68
66
|
|
@@ -75,10 +73,12 @@ Name | Type | Description | Notes
|
|
75
73
|
|
76
74
|
|
77
75
|
|
78
|
-
# **
|
79
|
-
>
|
76
|
+
# **conversations_messages_id_delete**
|
77
|
+
> conversations_messages_id_delete(id)
|
78
|
+
|
79
|
+
Delete a message sent by an agent
|
80
80
|
|
81
|
-
|
81
|
+
Only agents’ messages can be deleted.
|
82
82
|
|
83
83
|
### Example
|
84
84
|
```ruby
|
@@ -97,17 +97,16 @@ SibApiV3Sdk.configure do |config|
|
|
97
97
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
98
98
|
end
|
99
99
|
|
100
|
-
api_instance = SibApiV3Sdk::
|
100
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
101
101
|
|
102
|
-
|
102
|
+
id = 'id_example' # String | ID of the message
|
103
103
|
|
104
104
|
|
105
105
|
begin
|
106
|
-
#
|
107
|
-
|
108
|
-
p result
|
106
|
+
#Delete a message sent by an agent
|
107
|
+
api_instance.conversations_messages_id_delete(id)
|
109
108
|
rescue SibApiV3Sdk::ApiError => e
|
110
|
-
puts "Exception when calling
|
109
|
+
puts "Exception when calling ConversationsApi->conversations_messages_id_delete: #{e}"
|
111
110
|
end
|
112
111
|
```
|
113
112
|
|
@@ -115,11 +114,11 @@ end
|
|
115
114
|
|
116
115
|
Name | Type | Description | Notes
|
117
116
|
------------- | ------------- | ------------- | -------------
|
118
|
-
**
|
117
|
+
**id** | **String**| ID of the message |
|
119
118
|
|
120
119
|
### Return type
|
121
120
|
|
122
|
-
|
121
|
+
nil (empty response body)
|
123
122
|
|
124
123
|
### Authorization
|
125
124
|
|
@@ -132,10 +131,10 @@ Name | Type | Description | Notes
|
|
132
131
|
|
133
132
|
|
134
133
|
|
135
|
-
# **
|
136
|
-
>
|
134
|
+
# **conversations_messages_id_get**
|
135
|
+
> ConversationsMessage conversations_messages_id_get(id)
|
137
136
|
|
138
|
-
|
137
|
+
Get a message
|
139
138
|
|
140
139
|
### Example
|
141
140
|
```ruby
|
@@ -154,16 +153,17 @@ SibApiV3Sdk.configure do |config|
|
|
154
153
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
155
154
|
end
|
156
155
|
|
157
|
-
api_instance = SibApiV3Sdk::
|
156
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
158
157
|
|
159
|
-
|
158
|
+
id = 'id_example' # String | ID of the message
|
160
159
|
|
161
160
|
|
162
161
|
begin
|
163
|
-
#
|
164
|
-
api_instance.
|
162
|
+
#Get a message
|
163
|
+
result = api_instance.conversations_messages_id_get(id)
|
164
|
+
p result
|
165
165
|
rescue SibApiV3Sdk::ApiError => e
|
166
|
-
puts "Exception when calling
|
166
|
+
puts "Exception when calling ConversationsApi->conversations_messages_id_get: #{e}"
|
167
167
|
end
|
168
168
|
```
|
169
169
|
|
@@ -171,11 +171,11 @@ end
|
|
171
171
|
|
172
172
|
Name | Type | Description | Notes
|
173
173
|
------------- | ------------- | ------------- | -------------
|
174
|
-
**
|
174
|
+
**id** | **String**| ID of the message |
|
175
175
|
|
176
176
|
### Return type
|
177
177
|
|
178
|
-
|
178
|
+
[**ConversationsMessage**](ConversationsMessage.md)
|
179
179
|
|
180
180
|
### Authorization
|
181
181
|
|
@@ -188,10 +188,12 @@ nil (empty response body)
|
|
188
188
|
|
189
189
|
|
190
190
|
|
191
|
-
# **
|
192
|
-
>
|
191
|
+
# **conversations_messages_id_put**
|
192
|
+
> ConversationsMessage conversations_messages_id_put(id, opts)
|
193
193
|
|
194
|
-
|
194
|
+
Update a message sent by an agent
|
195
|
+
|
196
|
+
Only agents’ messages can be edited.
|
195
197
|
|
196
198
|
### Example
|
197
199
|
```ruby
|
@@ -210,23 +212,20 @@ SibApiV3Sdk.configure do |config|
|
|
210
212
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
211
213
|
end
|
212
214
|
|
213
|
-
api_instance = SibApiV3Sdk::
|
215
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
214
216
|
|
215
|
-
|
217
|
+
id = 'id_example' # String | ID of the message
|
216
218
|
|
217
219
|
opts = {
|
218
|
-
|
219
|
-
limit: 50, # Integer | Number of documents per page
|
220
|
-
offset: 0, # Integer | Index of the first document of the page
|
221
|
-
sort: 'desc' # String | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
220
|
+
body: SibApiV3Sdk::Body9.new # Body9 |
|
222
221
|
}
|
223
222
|
|
224
223
|
begin
|
225
|
-
#
|
226
|
-
result = api_instance.
|
224
|
+
#Update a message sent by an agent
|
225
|
+
result = api_instance.conversations_messages_id_put(id, opts)
|
227
226
|
p result
|
228
227
|
rescue SibApiV3Sdk::ApiError => e
|
229
|
-
puts "Exception when calling
|
228
|
+
puts "Exception when calling ConversationsApi->conversations_messages_id_put: #{e}"
|
230
229
|
end
|
231
230
|
```
|
232
231
|
|
@@ -234,15 +233,12 @@ end
|
|
234
233
|
|
235
234
|
Name | Type | Description | Notes
|
236
235
|
------------- | ------------- | ------------- | -------------
|
237
|
-
**
|
238
|
-
**
|
239
|
-
**limit** | **Integer**| Number of documents per page | [optional] [default to 50]
|
240
|
-
**offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
|
241
|
-
**sort** | **String**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
|
236
|
+
**id** | **String**| ID of the message |
|
237
|
+
**body** | [**Body9**](Body9.md)| | [optional]
|
242
238
|
|
243
239
|
### Return type
|
244
240
|
|
245
|
-
[**
|
241
|
+
[**ConversationsMessage**](ConversationsMessage.md)
|
246
242
|
|
247
243
|
### Authorization
|
248
244
|
|
@@ -255,10 +251,10 @@ Name | Type | Description | Notes
|
|
255
251
|
|
256
252
|
|
257
253
|
|
258
|
-
# **
|
259
|
-
>
|
254
|
+
# **conversations_messages_post**
|
255
|
+
> ConversationsMessage conversations_messages_post(body)
|
260
256
|
|
261
|
-
|
257
|
+
Send a message as an agent
|
262
258
|
|
263
259
|
### Example
|
264
260
|
```ruby
|
@@ -277,22 +273,17 @@ SibApiV3Sdk.configure do |config|
|
|
277
273
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
278
274
|
end
|
279
275
|
|
280
|
-
api_instance = SibApiV3Sdk::
|
276
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
281
277
|
|
282
|
-
|
278
|
+
body = SibApiV3Sdk::Body8.new # Body8 | Message fields.
|
283
279
|
|
284
|
-
opts = {
|
285
|
-
limit: 10, # Integer | Number of documents per page
|
286
|
-
offset: 0, # Integer | Index of the first document of the page
|
287
|
-
sort: 'desc' # String | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
288
|
-
}
|
289
280
|
|
290
281
|
begin
|
291
|
-
#
|
292
|
-
result = api_instance.
|
282
|
+
#Send a message as an agent
|
283
|
+
result = api_instance.conversations_messages_post(body)
|
293
284
|
p result
|
294
285
|
rescue SibApiV3Sdk::ApiError => e
|
295
|
-
puts "Exception when calling
|
286
|
+
puts "Exception when calling ConversationsApi->conversations_messages_post: #{e}"
|
296
287
|
end
|
297
288
|
```
|
298
289
|
|
@@ -300,14 +291,11 @@ end
|
|
300
291
|
|
301
292
|
Name | Type | Description | Notes
|
302
293
|
------------- | ------------- | ------------- | -------------
|
303
|
-
**
|
304
|
-
**limit** | **Integer**| Number of documents per page | [optional] [default to 10]
|
305
|
-
**offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
|
306
|
-
**sort** | **String**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
|
294
|
+
**body** | [**Body8**](Body8.md)| Message fields. |
|
307
295
|
|
308
296
|
### Return type
|
309
297
|
|
310
|
-
[**
|
298
|
+
[**ConversationsMessage**](ConversationsMessage.md)
|
311
299
|
|
312
300
|
### Authorization
|
313
301
|
|
@@ -320,10 +308,10 @@ Name | Type | Description | Notes
|
|
320
308
|
|
321
309
|
|
322
310
|
|
323
|
-
# **
|
324
|
-
>
|
311
|
+
# **conversations_pushed_messages_id_delete**
|
312
|
+
> conversations_pushed_messages_id_delete(id)
|
325
313
|
|
326
|
-
|
314
|
+
Delete an automated message
|
327
315
|
|
328
316
|
### Example
|
329
317
|
```ruby
|
@@ -342,17 +330,16 @@ SibApiV3Sdk.configure do |config|
|
|
342
330
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
343
331
|
end
|
344
332
|
|
345
|
-
api_instance = SibApiV3Sdk::
|
333
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
346
334
|
|
347
|
-
|
335
|
+
id = 'id_example' # String | ID of the message
|
348
336
|
|
349
337
|
|
350
338
|
begin
|
351
|
-
#
|
352
|
-
|
353
|
-
p result
|
339
|
+
#Delete an automated message
|
340
|
+
api_instance.conversations_pushed_messages_id_delete(id)
|
354
341
|
rescue SibApiV3Sdk::ApiError => e
|
355
|
-
puts "Exception when calling
|
342
|
+
puts "Exception when calling ConversationsApi->conversations_pushed_messages_id_delete: #{e}"
|
356
343
|
end
|
357
344
|
```
|
358
345
|
|
@@ -360,11 +347,11 @@ end
|
|
360
347
|
|
361
348
|
Name | Type | Description | Notes
|
362
349
|
------------- | ------------- | ------------- | -------------
|
363
|
-
**
|
350
|
+
**id** | **String**| ID of the message |
|
364
351
|
|
365
352
|
### Return type
|
366
353
|
|
367
|
-
|
354
|
+
nil (empty response body)
|
368
355
|
|
369
356
|
### Authorization
|
370
357
|
|
@@ -377,10 +364,10 @@ Name | Type | Description | Notes
|
|
377
364
|
|
378
365
|
|
379
366
|
|
380
|
-
# **
|
381
|
-
>
|
367
|
+
# **conversations_pushed_messages_id_get**
|
368
|
+
> ConversationsMessage conversations_pushed_messages_id_get(id)
|
382
369
|
|
383
|
-
Get
|
370
|
+
Get an automated message
|
384
371
|
|
385
372
|
### Example
|
386
373
|
```ruby
|
@@ -399,20 +386,17 @@ SibApiV3Sdk.configure do |config|
|
|
399
386
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
400
387
|
end
|
401
388
|
|
402
|
-
api_instance = SibApiV3Sdk::
|
389
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
390
|
+
|
391
|
+
id = 'id_example' # String | ID of the message sent previously
|
403
392
|
|
404
|
-
opts = {
|
405
|
-
limit: 10, # Integer | Number of documents per page
|
406
|
-
offset: 0, # Integer | Index of the first document of the page
|
407
|
-
sort: 'desc' # String | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
408
|
-
}
|
409
393
|
|
410
394
|
begin
|
411
|
-
#Get
|
412
|
-
result = api_instance.
|
395
|
+
#Get an automated message
|
396
|
+
result = api_instance.conversations_pushed_messages_id_get(id)
|
413
397
|
p result
|
414
398
|
rescue SibApiV3Sdk::ApiError => e
|
415
|
-
puts "Exception when calling
|
399
|
+
puts "Exception when calling ConversationsApi->conversations_pushed_messages_id_get: #{e}"
|
416
400
|
end
|
417
401
|
```
|
418
402
|
|
@@ -420,13 +404,11 @@ end
|
|
420
404
|
|
421
405
|
Name | Type | Description | Notes
|
422
406
|
------------- | ------------- | ------------- | -------------
|
423
|
-
**
|
424
|
-
**offset** | **Integer**| Index of the first document of the page | [optional] [default to 0]
|
425
|
-
**sort** | **String**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
|
407
|
+
**id** | **String**| ID of the message sent previously |
|
426
408
|
|
427
409
|
### Return type
|
428
410
|
|
429
|
-
[**
|
411
|
+
[**ConversationsMessage**](ConversationsMessage.md)
|
430
412
|
|
431
413
|
### Authorization
|
432
414
|
|
@@ -439,10 +421,10 @@ Name | Type | Description | Notes
|
|
439
421
|
|
440
422
|
|
441
423
|
|
442
|
-
# **
|
443
|
-
>
|
424
|
+
# **conversations_pushed_messages_id_put**
|
425
|
+
> ConversationsMessage conversations_pushed_messages_id_put(id, body)
|
444
426
|
|
445
|
-
|
427
|
+
Update an automated message
|
446
428
|
|
447
429
|
### Example
|
448
430
|
```ruby
|
@@ -461,19 +443,19 @@ SibApiV3Sdk.configure do |config|
|
|
461
443
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
462
444
|
end
|
463
445
|
|
464
|
-
api_instance = SibApiV3Sdk::
|
446
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
465
447
|
|
466
|
-
|
448
|
+
id = 'id_example' # String | ID of the message
|
467
449
|
|
468
|
-
|
450
|
+
body = SibApiV3Sdk::Body11.new # Body11 |
|
469
451
|
|
470
452
|
|
471
453
|
begin
|
472
|
-
#
|
473
|
-
result = api_instance.
|
454
|
+
#Update an automated message
|
455
|
+
result = api_instance.conversations_pushed_messages_id_put(id, body)
|
474
456
|
p result
|
475
457
|
rescue SibApiV3Sdk::ApiError => e
|
476
|
-
puts "Exception when calling
|
458
|
+
puts "Exception when calling ConversationsApi->conversations_pushed_messages_id_put: #{e}"
|
477
459
|
end
|
478
460
|
```
|
479
461
|
|
@@ -481,12 +463,12 @@ end
|
|
481
463
|
|
482
464
|
Name | Type | Description | Notes
|
483
465
|
------------- | ------------- | ------------- | -------------
|
484
|
-
**
|
485
|
-
**
|
466
|
+
**id** | **String**| ID of the message |
|
467
|
+
**body** | [**Body11**](Body11.md)| |
|
486
468
|
|
487
469
|
### Return type
|
488
470
|
|
489
|
-
[**
|
471
|
+
[**ConversationsMessage**](ConversationsMessage.md)
|
490
472
|
|
491
473
|
### Authorization
|
492
474
|
|
@@ -499,10 +481,12 @@ Name | Type | Description | Notes
|
|
499
481
|
|
500
482
|
|
501
483
|
|
502
|
-
# **
|
503
|
-
>
|
484
|
+
# **conversations_pushed_messages_post**
|
485
|
+
> ConversationsMessage conversations_pushed_messages_post(body)
|
486
|
+
|
487
|
+
Send an automated message to a visitor
|
504
488
|
|
505
|
-
|
489
|
+
Example of automated messages: order status, announce new features in your web app, etc.
|
506
490
|
|
507
491
|
### Example
|
508
492
|
```ruby
|
@@ -521,18 +505,17 @@ SibApiV3Sdk.configure do |config|
|
|
521
505
|
#config.api_key_prefix['partner-key'] = 'Bearer'
|
522
506
|
end
|
523
507
|
|
524
|
-
api_instance = SibApiV3Sdk::
|
525
|
-
|
526
|
-
list_id = 789 # Integer | Id of the list
|
508
|
+
api_instance = SibApiV3Sdk::ConversationsApi.new
|
527
509
|
|
528
|
-
|
510
|
+
body = SibApiV3Sdk::Body10.new # Body10 |
|
529
511
|
|
530
512
|
|
531
513
|
begin
|
532
|
-
#
|
533
|
-
api_instance.
|
514
|
+
#Send an automated message to a visitor
|
515
|
+
result = api_instance.conversations_pushed_messages_post(body)
|
516
|
+
p result
|
534
517
|
rescue SibApiV3Sdk::ApiError => e
|
535
|
-
puts "Exception when calling
|
518
|
+
puts "Exception when calling ConversationsApi->conversations_pushed_messages_post: #{e}"
|
536
519
|
end
|
537
520
|
```
|
538
521
|
|
@@ -540,12 +523,11 @@ end
|
|
540
523
|
|
541
524
|
Name | Type | Description | Notes
|
542
525
|
------------- | ------------- | ------------- | -------------
|
543
|
-
**
|
544
|
-
**update_list** | [**UpdateList**](UpdateList.md)| Values to update a list |
|
526
|
+
**body** | [**Body10**](Body10.md)| |
|
545
527
|
|
546
528
|
### Return type
|
547
529
|
|
548
|
-
|
530
|
+
[**ConversationsMessage**](ConversationsMessage.md)
|
549
531
|
|
550
532
|
### Authorization
|
551
533
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# SibApiV3Sdk::ConversationsMessage
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Message ID. It can be used for further manipulations with the message. | [optional]
|
7
|
+
**type** | **String** | `\"agent\"` for agents’ messages, `\"visitor\"` for visitors’ messages. | [optional]
|
8
|
+
**text** | **String** | Message text or name of the attached file | [optional]
|
9
|
+
**visitor_id** | **String** | visitor’s ID | [optional]
|
10
|
+
**agent_id** | **String** | ID of the agent on whose behalf the message was sent (only in messages sent by an agent). | [optional]
|
11
|
+
**agent_name** | **String** | Agent’s name as displayed to the visitor. Only in the messages sent by an agent. | [optional]
|
12
|
+
**created_at** | **Integer** | Timestamp in milliseconds. | [optional]
|
13
|
+
**is_pushed** | **BOOLEAN** | `true` for pushed messages | [optional]
|
14
|
+
**received_from** | **String** | In two-way integrations, messages sent via REST API can be marked with receivedFrom property and then filtered out when received in a webhook to avoid infinite loop. | [optional]
|
15
|
+
**file** | [**ConversationsMessageFile**](ConversationsMessageFile.md) | | [optional]
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SibApiV3Sdk::ConversationsMessageFile
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**filename** | **String** | Name of the file | [optional]
|
7
|
+
**size** | **Integer** | Size in bytes | [optional]
|
8
|
+
**is_image** | **BOOLEAN** | Whether the file is an image | [optional]
|
9
|
+
**url** | **String** | URL of the file | [optional]
|
10
|
+
**image_info** | [**ConversationsMessageFileImageInfo**](ConversationsMessageFileImageInfo.md) | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# SibApiV3Sdk::ConversationsMessageFileImageInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**width** | **Integer** | Width of the image | [optional]
|
7
|
+
**height** | **Integer** | height of the image | [optional]
|
8
|
+
**preview_url** | **String** | URL of the preview | [optional]
|
9
|
+
|
10
|
+
|
data/docs/CreateContact.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**email** | **String** | Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} | [optional]
|
7
|
-
**attributes** | **Object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. {\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"} | [optional]
|
7
|
+
**attributes** | **Object** | Pass the set of attributes and their values. The attribute's parameter should be passed in capital letter while creating a contact. These attributes must be present in your SendinBlue account. For eg. {\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"} | [optional]
|
8
8
|
**email_blacklisted** | **BOOLEAN** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional]
|
9
9
|
**sms_blacklisted** | **BOOLEAN** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional]
|
10
10
|
**list_ids** | **Array<Integer>** | Ids of the lists to add the contact to | [optional]
|
data/docs/CreateEmailCampaign.md
CHANGED
@@ -31,5 +31,7 @@ Name | Type | Description | Notes
|
|
31
31
|
**ip_warmup_enable** | **BOOLEAN** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to false]
|
32
32
|
**initial_quota** | **Integer** | Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional]
|
33
33
|
**increase_rate** | **Integer** | Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional]
|
34
|
+
**unsubscription_page_id** | **String** | Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. If not entered, then the default unsubscription page will be used. | [optional]
|
35
|
+
**update_form_id** | **String** | Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. If not entered, then the default update profile form will be used. | [optional]
|
34
36
|
|
35
37
|
|
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**exclusion_list_ids** | **Array<Integer>** | List ids to exclude from the campaign | [optional]
|
7
7
|
**list_ids** | **Array<Integer>** | Mandatory if scheduledAt is not empty. List Ids to send the campaign to | [optional]
|
8
|
+
**segment_ids** | **Array<Integer>** | Mandatory if listIds are not used. Segment ids to send the campaign to. | [optional]
|
8
9
|
|
9
10
|
|
data/docs/CreateSubAccount.md
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**company_name** | **String** |
|
6
|
+
**company_name** | **String** | Set the name of the sub-account company |
|
7
7
|
**email** | **String** | Email address for the organization |
|
8
|
-
**language** | **String** |
|
9
|
-
**timezone** | **String** |
|
8
|
+
**language** | **String** | Set the language of the sub-account | [optional]
|
9
|
+
**timezone** | **String** | Set the timezone of the sub-account | [optional]
|
10
10
|
|
11
11
|
|
data/docs/Deal.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# SibApiV3Sdk::Deal
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Unique deal id | [optional]
|
7
|
+
**attributes** | **Object** | Deal attributes with values | [optional]
|
8
|
+
**linked_contacts_ids** | **Array<Integer>** | Contact ids for contacts linked to this deal | [optional]
|
9
|
+
**linked_companies_ids** | **Array<String>** | Companies ids for companies linked to this deal | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SibApiV3Sdk::DealAttributesInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**internal_name** | **String** | | [optional]
|
7
|
+
**label** | **String** | | [optional]
|
8
|
+
**attribute_type_name** | **String** | | [optional]
|
9
|
+
**attribute_options** | **Array<Object>** | | [optional]
|
10
|
+
**is_required** | **BOOLEAN** | | [optional]
|
11
|
+
|
12
|
+
|