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
data/docs/NotesApi.md
ADDED
@@ -0,0 +1,312 @@
|
|
1
|
+
# SibApiV3Sdk::NotesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.sendinblue.com/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**crm_notes_get**](NotesApi.md#crm_notes_get) | **GET** /crm/notes | Get all notes
|
8
|
+
[**crm_notes_id_delete**](NotesApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note
|
9
|
+
[**crm_notes_id_get**](NotesApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note
|
10
|
+
[**crm_notes_id_patch**](NotesApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note
|
11
|
+
[**crm_notes_post**](NotesApi.md#crm_notes_post) | **POST** /crm/notes | Create a note
|
12
|
+
|
13
|
+
|
14
|
+
# **crm_notes_get**
|
15
|
+
> NoteList crm_notes_get(opts)
|
16
|
+
|
17
|
+
Get all notes
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'sib-api-v3-sdk'
|
23
|
+
# setup authorization
|
24
|
+
SibApiV3Sdk.configure do |config|
|
25
|
+
# Configure API key authorization: api-key
|
26
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
29
|
+
|
30
|
+
# Configure API key authorization: partner-key
|
31
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
32
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
33
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = SibApiV3Sdk::NotesApi.new
|
37
|
+
|
38
|
+
opts = {
|
39
|
+
entity: 'entity_example', # String | Filter by note entity type
|
40
|
+
entity_ids: 'entity_ids_example', # String | Filter by note entity IDs
|
41
|
+
date_from: 56, # Integer | dateFrom to date range filter type (timestamp in milliseconds)
|
42
|
+
date_to: 56, # Integer | dateTo to date range filter type (timestamp in milliseconds)
|
43
|
+
offset: 789, # Integer | Index of the first document of the page
|
44
|
+
limit: 50, # Integer | Number of documents per page
|
45
|
+
sort: 'sort_example' # String | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
|
46
|
+
}
|
47
|
+
|
48
|
+
begin
|
49
|
+
#Get all notes
|
50
|
+
result = api_instance.crm_notes_get(opts)
|
51
|
+
p result
|
52
|
+
rescue SibApiV3Sdk::ApiError => e
|
53
|
+
puts "Exception when calling NotesApi->crm_notes_get: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
Name | Type | Description | Notes
|
60
|
+
------------- | ------------- | ------------- | -------------
|
61
|
+
**entity** | **String**| Filter by note entity type | [optional]
|
62
|
+
**entity_ids** | **String**| Filter by note entity IDs | [optional]
|
63
|
+
**date_from** | **Integer**| dateFrom to date range filter type (timestamp in milliseconds) | [optional]
|
64
|
+
**date_to** | **Integer**| dateTo to date range filter type (timestamp in milliseconds) | [optional]
|
65
|
+
**offset** | **Integer**| Index of the first document of the page | [optional]
|
66
|
+
**limit** | **Integer**| Number of documents per page | [optional] [default to 50]
|
67
|
+
**sort** | **String**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional]
|
68
|
+
|
69
|
+
### Return type
|
70
|
+
|
71
|
+
[**NoteList**](NoteList.md)
|
72
|
+
|
73
|
+
### Authorization
|
74
|
+
|
75
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
76
|
+
|
77
|
+
### HTTP request headers
|
78
|
+
|
79
|
+
- **Content-Type**: application/json
|
80
|
+
- **Accept**: application/json
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
# **crm_notes_id_delete**
|
85
|
+
> crm_notes_id_delete(id)
|
86
|
+
|
87
|
+
Delete a note
|
88
|
+
|
89
|
+
### Example
|
90
|
+
```ruby
|
91
|
+
# load the gem
|
92
|
+
require 'sib-api-v3-sdk'
|
93
|
+
# setup authorization
|
94
|
+
SibApiV3Sdk.configure do |config|
|
95
|
+
# Configure API key authorization: api-key
|
96
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
97
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
98
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
99
|
+
|
100
|
+
# Configure API key authorization: partner-key
|
101
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
104
|
+
end
|
105
|
+
|
106
|
+
api_instance = SibApiV3Sdk::NotesApi.new
|
107
|
+
|
108
|
+
id = 'id_example' # String | Note ID to delete
|
109
|
+
|
110
|
+
|
111
|
+
begin
|
112
|
+
#Delete a note
|
113
|
+
api_instance.crm_notes_id_delete(id)
|
114
|
+
rescue SibApiV3Sdk::ApiError => e
|
115
|
+
puts "Exception when calling NotesApi->crm_notes_id_delete: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
Name | Type | Description | Notes
|
122
|
+
------------- | ------------- | ------------- | -------------
|
123
|
+
**id** | **String**| Note ID to delete |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
nil (empty response body)
|
128
|
+
|
129
|
+
### Authorization
|
130
|
+
|
131
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
132
|
+
|
133
|
+
### HTTP request headers
|
134
|
+
|
135
|
+
- **Content-Type**: application/json
|
136
|
+
- **Accept**: application/json
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
# **crm_notes_id_get**
|
141
|
+
> Note crm_notes_id_get(id)
|
142
|
+
|
143
|
+
Get a note
|
144
|
+
|
145
|
+
### Example
|
146
|
+
```ruby
|
147
|
+
# load the gem
|
148
|
+
require 'sib-api-v3-sdk'
|
149
|
+
# setup authorization
|
150
|
+
SibApiV3Sdk.configure do |config|
|
151
|
+
# Configure API key authorization: api-key
|
152
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
153
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
154
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
155
|
+
|
156
|
+
# Configure API key authorization: partner-key
|
157
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
158
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
159
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
160
|
+
end
|
161
|
+
|
162
|
+
api_instance = SibApiV3Sdk::NotesApi.new
|
163
|
+
|
164
|
+
id = 'id_example' # String | Note ID to get
|
165
|
+
|
166
|
+
|
167
|
+
begin
|
168
|
+
#Get a note
|
169
|
+
result = api_instance.crm_notes_id_get(id)
|
170
|
+
p result
|
171
|
+
rescue SibApiV3Sdk::ApiError => e
|
172
|
+
puts "Exception when calling NotesApi->crm_notes_id_get: #{e}"
|
173
|
+
end
|
174
|
+
```
|
175
|
+
|
176
|
+
### Parameters
|
177
|
+
|
178
|
+
Name | Type | Description | Notes
|
179
|
+
------------- | ------------- | ------------- | -------------
|
180
|
+
**id** | **String**| Note ID to get |
|
181
|
+
|
182
|
+
### Return type
|
183
|
+
|
184
|
+
[**Note**](Note.md)
|
185
|
+
|
186
|
+
### Authorization
|
187
|
+
|
188
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
189
|
+
|
190
|
+
### HTTP request headers
|
191
|
+
|
192
|
+
- **Content-Type**: application/json
|
193
|
+
- **Accept**: application/json
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
# **crm_notes_id_patch**
|
198
|
+
> crm_notes_id_patch(id, body)
|
199
|
+
|
200
|
+
Update a note
|
201
|
+
|
202
|
+
### Example
|
203
|
+
```ruby
|
204
|
+
# load the gem
|
205
|
+
require 'sib-api-v3-sdk'
|
206
|
+
# setup authorization
|
207
|
+
SibApiV3Sdk.configure do |config|
|
208
|
+
# Configure API key authorization: api-key
|
209
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
210
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
211
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
212
|
+
|
213
|
+
# Configure API key authorization: partner-key
|
214
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
215
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
216
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
217
|
+
end
|
218
|
+
|
219
|
+
api_instance = SibApiV3Sdk::NotesApi.new
|
220
|
+
|
221
|
+
id = 'id_example' # String | Note ID to update
|
222
|
+
|
223
|
+
body = SibApiV3Sdk::NoteData.new # NoteData | Note data to update a note
|
224
|
+
|
225
|
+
|
226
|
+
begin
|
227
|
+
#Update a note
|
228
|
+
api_instance.crm_notes_id_patch(id, body)
|
229
|
+
rescue SibApiV3Sdk::ApiError => e
|
230
|
+
puts "Exception when calling NotesApi->crm_notes_id_patch: #{e}"
|
231
|
+
end
|
232
|
+
```
|
233
|
+
|
234
|
+
### Parameters
|
235
|
+
|
236
|
+
Name | Type | Description | Notes
|
237
|
+
------------- | ------------- | ------------- | -------------
|
238
|
+
**id** | **String**| Note ID to update |
|
239
|
+
**body** | [**NoteData**](NoteData.md)| Note data to update a note |
|
240
|
+
|
241
|
+
### Return type
|
242
|
+
|
243
|
+
nil (empty response body)
|
244
|
+
|
245
|
+
### Authorization
|
246
|
+
|
247
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
248
|
+
|
249
|
+
### HTTP request headers
|
250
|
+
|
251
|
+
- **Content-Type**: application/json
|
252
|
+
- **Accept**: application/json
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
# **crm_notes_post**
|
257
|
+
> NoteId crm_notes_post(body)
|
258
|
+
|
259
|
+
Create a note
|
260
|
+
|
261
|
+
### Example
|
262
|
+
```ruby
|
263
|
+
# load the gem
|
264
|
+
require 'sib-api-v3-sdk'
|
265
|
+
# setup authorization
|
266
|
+
SibApiV3Sdk.configure do |config|
|
267
|
+
# Configure API key authorization: api-key
|
268
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
269
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
270
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
271
|
+
|
272
|
+
# Configure API key authorization: partner-key
|
273
|
+
config.api_key['partner-key'] = 'YOUR API KEY'
|
274
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
275
|
+
#config.api_key_prefix['partner-key'] = 'Bearer'
|
276
|
+
end
|
277
|
+
|
278
|
+
api_instance = SibApiV3Sdk::NotesApi.new
|
279
|
+
|
280
|
+
body = SibApiV3Sdk::NoteData.new # NoteData | Note data to create a note.
|
281
|
+
|
282
|
+
|
283
|
+
begin
|
284
|
+
#Create a note
|
285
|
+
result = api_instance.crm_notes_post(body)
|
286
|
+
p result
|
287
|
+
rescue SibApiV3Sdk::ApiError => e
|
288
|
+
puts "Exception when calling NotesApi->crm_notes_post: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
### Parameters
|
293
|
+
|
294
|
+
Name | Type | Description | Notes
|
295
|
+
------------- | ------------- | ------------- | -------------
|
296
|
+
**body** | [**NoteData**](NoteData.md)| Note data to create a note. |
|
297
|
+
|
298
|
+
### Return type
|
299
|
+
|
300
|
+
[**NoteId**](NoteId.md)
|
301
|
+
|
302
|
+
### Authorization
|
303
|
+
|
304
|
+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
|
305
|
+
|
306
|
+
### HTTP request headers
|
307
|
+
|
308
|
+
- **Content-Type**: application/json
|
309
|
+
- **Accept**: application/json
|
310
|
+
|
311
|
+
|
312
|
+
|
data/docs/Pipeline.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# SibApiV3Sdk::ScheduleSmtpEmail
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**message_id** | **String** | Message ID of the transactional email scheduled | [optional]
|
7
|
+
**message_ids** | **Array<String>** | | [optional]
|
8
|
+
**batch_id** | **String** | Batch ID of the batch transactional email scheduled | [optional]
|
9
|
+
|
10
|
+
|
data/docs/SendSmtpEmail.md
CHANGED
@@ -13,9 +13,11 @@ Name | Type | Description | Notes
|
|
13
13
|
**reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional]
|
14
14
|
**attachment** | [**Array<SendSmtpEmailAttachment>**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass and xlsm ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional]
|
15
15
|
**headers** | **Object** | Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\", \"idempotencyKey\":\"abc-123\"}`. | [optional]
|
16
|
-
**
|
16
|
+
**templateId** | **Integer** | Id of the template. | [optional]
|
17
17
|
**params** | **Object** | Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}. It's considered only if template is in New Template Language format. | [optional]
|
18
18
|
**message_versions** | [**Array<SendSmtpEmailMessageVersions>**](SendSmtpEmailMessageVersions.md) | You can customize and send out multiple versions of a mail. templateId can be customized only if global parameter contains templateId. htmlContent and textContent can be customized only if any of the two, htmlContent or textContent, is present in global parameters. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 2000. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails | [optional]
|
19
19
|
**tags** | **Array<String>** | Tag your emails to find them more easily | [optional]
|
20
|
+
**scheduled_at** | **DateTime** | UTC date-time on which the email has to schedule (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for scheduling. There can be an expected delay of +5 minutes in scheduled email delivery. **Please note this feature is currently a public beta**. | [optional]
|
21
|
+
**batch_id** | **String** | Valid UUIDv4 batch id to identify the scheduled batches transactional email. If not passed we will create a valid UUIDv4 batch id at our end. | [optional]
|
20
22
|
|
21
23
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**sms** | **Integer** |
|
6
|
+
**sms** | **Integer** | SMS credits remaining on the sub-account | [optional]
|
7
7
|
**emails** | [**SubAccountDetailsResponsePlanInfoCreditsEmails**](SubAccountDetailsResponsePlanInfoCreditsEmails.md) | | [optional]
|
8
8
|
|
9
9
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **Integer** |
|
7
|
-
**company_name** | **String** | Name of sub-account
|
8
|
-
**active** | **BOOLEAN** | Whether
|
9
|
-
**created_at** | **Integer** |
|
6
|
+
**id** | **Integer** | id of the sub-account |
|
7
|
+
**company_name** | **String** | Name of the sub-account company |
|
8
|
+
**active** | **BOOLEAN** | Whether the sub-account is active or not |
|
9
|
+
**created_at** | **Integer** | Timestamp when the sub-account was created |
|
10
10
|
|
11
11
|
|
data/docs/Task.md
CHANGED
@@ -3,22 +3,11 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**first_contact** | [**Contact**](Contact.md) | | [optional]
|
7
6
|
**id** | **String** | Unique task id | [optional]
|
8
7
|
**task_type_id** | **String** | Id for type of task e.g Call / Email / Meeting etc. |
|
9
8
|
**name** | **String** | Name of task |
|
10
9
|
**contacts_ids** | **Array<Integer>** | Contact ids for contacts linked to this task | [optional]
|
11
|
-
**contacts** | [**Array<Contact>**](Contact.md) | Contact details for contacts linked to this task | [optional]
|
12
10
|
**deals_ids** | **Array<String>** | Deal ids for deals a task is linked to | [optional]
|
13
11
|
**companies_ids** | **Array<String>** | Companies ids for companies a task is linked to | [optional]
|
14
|
-
**assign_to_id** | **String** | User id to whom task is assigned | [optional]
|
15
|
-
**date** | **DateTime** | Task date/time |
|
16
|
-
**duration** | **Integer** | Duration of task | [optional]
|
17
|
-
**notes** | **String** | Notes added to a task | [optional]
|
18
|
-
**done** | **BOOLEAN** | Task marked as done | [optional]
|
19
|
-
**reminder** | [**TaskReminder**](TaskReminder.md) | Task reminder date/time for a task | [optional]
|
20
|
-
**created_at** | **DateTime** | Task created date/time | [optional]
|
21
|
-
**updated_at** | **DateTime** | Task update date/time | [optional]
|
22
|
-
**refs** | **Object** | | [optional]
|
23
12
|
|
24
13
|
|
data/docs/TaskList.md
ADDED
data/docs/TaskReminder.md
CHANGED
@@ -5,6 +5,6 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**value** | **Integer** | Value of time unit before reminder is to be sent |
|
7
7
|
**unit** | **String** | Unit of time before reminder is to be sent |
|
8
|
-
**types** | **Array<String>** | Type of task reminder |
|
8
|
+
**types** | **Array<String>** | Type of task reminder e.g email, push |
|
9
9
|
|
10
10
|
|
data/docs/TaskTypes.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**id** | **String** | Id of task type | [optional]
|
7
|
-
**icon** | **String** | Icon of task type | [optional]
|
8
7
|
**title** | **String** | Title of task type | [optional]
|
9
8
|
|
10
9
|
|