sib-api-v3-sdk 7.5.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -4
  3. data/docs/Body.md +18 -0
  4. data/docs/Body1.md +18 -0
  5. data/docs/CRMApi.md +710 -0
  6. data/docs/Contact.md +15 -0
  7. data/docs/ContactsApi.md +61 -2
  8. data/docs/CreateSmsCampaign.md +1 -0
  9. data/docs/CreateSubAccount.md +10 -0
  10. data/docs/CreateWebhook.md +2 -1
  11. data/docs/FileData.md +17 -0
  12. data/docs/GetCampaignStats.md +1 -0
  13. data/docs/GetContactCampaignStats.md +1 -0
  14. data/docs/GetExtendedContactDetailsStatistics.md +1 -0
  15. data/docs/GetExtendedContactDetailsStatisticsDelivered.md +9 -0
  16. data/docs/GetInboundEmailEvents.md +8 -0
  17. data/docs/GetInboundEmailEventsByUuid.md +15 -0
  18. data/docs/GetInboundEmailEventsByUuidAttachments.md +11 -0
  19. data/docs/GetInboundEmailEventsByUuidLogs.md +9 -0
  20. data/docs/GetInboundEmailEventsEvents.md +11 -0
  21. data/docs/InboundParsingApi.md +139 -0
  22. data/docs/MasterAccountApi.md +367 -0
  23. data/docs/MasterDetailsResponse.md +14 -0
  24. data/docs/MasterDetailsResponseBillingInfo.md +11 -0
  25. data/docs/MasterDetailsResponseBillingInfoAddress.md +12 -0
  26. data/docs/MasterDetailsResponseBillingInfoName.md +9 -0
  27. data/docs/MasterDetailsResponsePlanInfo.md +13 -0
  28. data/docs/MasterDetailsResponsePlanInfoFeatures.md +12 -0
  29. data/docs/Note.md +14 -0
  30. data/docs/NoteData.md +10 -0
  31. data/docs/RequestContactExport.md +1 -2
  32. data/docs/SendSmtpEmail.md +3 -3
  33. data/docs/SendTransacSms.md +1 -0
  34. data/docs/SsoTokenRequest.md +9 -0
  35. data/docs/SubAccountDetailsResponse.md +11 -0
  36. data/docs/SubAccountDetailsResponsePlanInfo.md +10 -0
  37. data/docs/SubAccountDetailsResponsePlanInfoCredits.md +9 -0
  38. data/docs/SubAccountDetailsResponsePlanInfoCreditsEmails.md +9 -0
  39. data/docs/SubAccountDetailsResponsePlanInfoFeatures.md +10 -0
  40. data/docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md +9 -0
  41. data/docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md +9 -0
  42. data/docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md +9 -0
  43. data/docs/SubAccountUpdatePlanRequest.md +9 -0
  44. data/docs/SubAccountUpdatePlanRequestCredits.md +8 -0
  45. data/docs/SubAccountUpdatePlanRequestFeatures.md +10 -0
  46. data/docs/SubAccountsResponse.md +9 -0
  47. data/docs/SubAccountsResponseSubAccounts.md +11 -0
  48. data/docs/Task.md +24 -0
  49. data/docs/TaskReminder.md +10 -0
  50. data/docs/TransactionalEmailsApi.md +4 -63
  51. data/docs/UpdateBatchContacts.md +8 -0
  52. data/docs/UpdateBatchContactsContacts.md +16 -0
  53. data/docs/UpdateBatchContactsModel.md +9 -0
  54. data/docs/UpdateSmsCampaign.md +1 -0
  55. data/docs/UpdateWebhook.md +2 -1
  56. data/lib/sib-api-v3-sdk/api/contacts_api.rb +55 -2
  57. data/lib/sib-api-v3-sdk/api/crm_api.rb +670 -0
  58. data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +161 -0
  59. data/lib/sib-api-v3-sdk/api/master_account_api.rb +365 -0
  60. data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +4 -60
  61. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +2 -2
  62. data/lib/sib-api-v3-sdk/models/body.rb +305 -0
  63. data/lib/sib-api-v3-sdk/models/body_1.rb +305 -0
  64. data/lib/sib-api-v3-sdk/models/{send_email.rb → contact.rb} +64 -78
  65. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +16 -4
  66. data/lib/sib-api-v3-sdk/models/create_sub_account.rb +244 -0
  67. data/lib/sib-api-v3-sdk/models/create_webhook.rb +17 -7
  68. data/lib/sib-api-v3-sdk/models/file_data.rb +278 -0
  69. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +16 -1
  70. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +15 -4
  71. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +16 -4
  72. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_delivered.rb +205 -0
  73. data/lib/sib-api-v3-sdk/models/{send_template_email.rb → get_inbound_email_events.rb} +10 -14
  74. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid.rb +259 -0
  75. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_attachments.rb +215 -0
  76. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_logs.rb +229 -0
  77. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_events.rb +235 -0
  78. data/lib/sib-api-v3-sdk/models/master_details_response.rb +243 -0
  79. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info.rb +214 -0
  80. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_address.rb +226 -0
  81. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_name.rb +196 -0
  82. data/lib/sib-api-v3-sdk/models/master_details_response_plan_info.rb +272 -0
  83. data/lib/sib-api-v3-sdk/models/{send_email_attachment.rb → master_details_response_plan_info_features.rb} +45 -44
  84. data/lib/sib-api-v3-sdk/models/note.rb +283 -0
  85. data/lib/sib-api-v3-sdk/models/note_data.rb +243 -0
  86. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +6 -11
  87. data/lib/sib-api-v3-sdk/models/request_contact_export_custom_contact_filter.rb +1 -1
  88. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +3 -3
  89. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +16 -4
  90. data/lib/sib-api-v3-sdk/models/sso_token_request.rb +200 -0
  91. data/lib/sib-api-v3-sdk/models/sub_account_details_response.rb +214 -0
  92. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info.rb +204 -0
  93. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +195 -0
  94. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +196 -0
  95. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +203 -0
  96. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_inbox.rb +196 -0
  97. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_landing_page.rb +196 -0
  98. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_users.rb +196 -0
  99. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request.rb +194 -0
  100. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_credits.rb +186 -0
  101. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_features.rb +206 -0
  102. data/lib/sib-api-v3-sdk/models/sub_accounts_response.rb +196 -0
  103. data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +235 -0
  104. data/lib/sib-api-v3-sdk/models/task.rb +367 -0
  105. data/lib/sib-api-v3-sdk/models/task_reminder.rb +257 -0
  106. data/lib/sib-api-v3-sdk/models/update_batch_contacts.rb +187 -0
  107. data/lib/sib-api-v3-sdk/models/update_batch_contacts_contacts.rb +273 -0
  108. data/lib/sib-api-v3-sdk/models/update_batch_contacts_model.rb +197 -0
  109. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +16 -4
  110. data/lib/sib-api-v3-sdk/models/update_webhook.rb +15 -5
  111. data/lib/sib-api-v3-sdk/version.rb +1 -1
  112. data/lib/sib-api-v3-sdk.rb +41 -3
  113. data/sib-api-v3-sdk.gemspec +2 -1
  114. data/spec/api/contacts_api_spec.rb +13 -1
  115. data/spec/api/crm_api_spec.rb +170 -0
  116. data/spec/api/inbound_parsing_api_spec.rb +64 -0
  117. data/spec/api/master_account_api_spec.rb +108 -0
  118. data/spec/api/transactional_emails_api_spec.rb +2 -13
  119. data/spec/models/body_1_spec.rb +101 -0
  120. data/spec/models/body_spec.rb +101 -0
  121. data/spec/models/contact_spec.rb +83 -0
  122. data/spec/models/create_sms_campaign_spec.rb +6 -0
  123. data/spec/models/create_sub_account_spec.rb +57 -0
  124. data/spec/models/create_webhook_spec.rb +8 -2
  125. data/spec/models/file_data_spec.rb +95 -0
  126. data/spec/models/get_campaign_stats_spec.rb +6 -0
  127. data/spec/models/get_contact_campaign_stats_spec.rb +6 -0
  128. data/spec/models/get_extended_contact_details_statistics_delivered_spec.rb +47 -0
  129. data/spec/models/get_extended_contact_details_statistics_spec.rb +6 -0
  130. data/spec/models/get_inbound_email_events_by_uuid_attachments_spec.rb +59 -0
  131. data/spec/models/get_inbound_email_events_by_uuid_logs_spec.rb +51 -0
  132. data/spec/models/get_inbound_email_events_by_uuid_spec.rb +83 -0
  133. data/spec/models/get_inbound_email_events_events_spec.rb +59 -0
  134. data/spec/models/get_inbound_email_events_spec.rb +41 -0
  135. data/spec/models/master_details_response_billing_info_address_spec.rb +65 -0
  136. data/spec/models/master_details_response_billing_info_name_spec.rb +47 -0
  137. data/spec/models/master_details_response_billing_info_spec.rb +59 -0
  138. data/spec/models/master_details_response_plan_info_features_spec.rb +65 -0
  139. data/spec/models/master_details_response_plan_info_spec.rb +75 -0
  140. data/spec/models/master_details_response_spec.rb +77 -0
  141. data/spec/models/note_data_spec.rb +53 -0
  142. data/spec/models/note_spec.rb +77 -0
  143. data/spec/models/request_contact_export_spec.rb +0 -6
  144. data/spec/models/send_transac_sms_spec.rb +6 -0
  145. data/spec/models/{send_email_attachment_spec.rb → sso_token_request_spec.rb} +8 -8
  146. data/spec/models/sub_account_details_response_plan_info_credits_emails_spec.rb +47 -0
  147. data/spec/models/sub_account_details_response_plan_info_credits_spec.rb +47 -0
  148. data/spec/models/sub_account_details_response_plan_info_features_inbox_spec.rb +47 -0
  149. data/spec/models/sub_account_details_response_plan_info_features_landing_page_spec.rb +47 -0
  150. data/spec/models/sub_account_details_response_plan_info_features_spec.rb +53 -0
  151. data/spec/models/sub_account_details_response_plan_info_features_users_spec.rb +47 -0
  152. data/spec/models/sub_account_details_response_plan_info_spec.rb +53 -0
  153. data/spec/models/sub_account_details_response_spec.rb +59 -0
  154. data/spec/models/sub_account_update_plan_request_credits_spec.rb +41 -0
  155. data/spec/models/sub_account_update_plan_request_features_spec.rb +53 -0
  156. data/spec/models/sub_account_update_plan_request_spec.rb +47 -0
  157. data/spec/models/sub_accounts_response_spec.rb +47 -0
  158. data/spec/models/sub_accounts_response_sub_accounts_spec.rb +59 -0
  159. data/spec/models/task_reminder_spec.rb +57 -0
  160. data/spec/models/task_spec.rb +137 -0
  161. data/spec/models/{send_email_spec.rb → update_batch_contacts_contacts_spec.rb} +15 -15
  162. data/spec/models/update_batch_contacts_model_spec.rb +47 -0
  163. data/spec/models/{send_template_email_spec.rb → update_batch_contacts_spec.rb} +7 -7
  164. data/spec/models/update_sms_campaign_spec.rb +6 -0
  165. data/spec/models/update_webhook_spec.rb +7 -1
  166. metadata +186 -14
  167. data/docs/SendEmail.md +0 -16
  168. data/docs/SendEmailAttachment.md +0 -9
  169. data/docs/SendTemplateEmail.md +0 -8
data/docs/CRMApi.md ADDED
@@ -0,0 +1,710 @@
1
+ # SibApiV3Sdk::CRMApi
2
+
3
+ All URIs are relative to *https://api.sendinblue.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**crm_files_id_data_get**](CRMApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file data by id.
8
+ [**crm_files_id_delete**](CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete file.
9
+ [**crm_files_id_get**](CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download file by id.
10
+ [**crm_files_post**](CRMApi.md#crm_files_post) | **POST** /crm/files | Upload and create file.
11
+ [**crm_notes_id_delete**](CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete Note by ID
12
+ [**crm_notes_id_get**](CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get one Note by ID
13
+ [**crm_notes_id_patch**](CRMApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note
14
+ [**crm_notes_post**](CRMApi.md#crm_notes_post) | **POST** /crm/notes | Create a new Note
15
+ [**crm_tasks_id_delete**](CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete Task by id
16
+ [**crm_tasks_id_get**](CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get one Task by ID
17
+ [**crm_tasks_id_patch**](CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update partial existing task
18
+ [**crm_tasks_post**](CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a new Task
19
+
20
+
21
+ # **crm_files_id_data_get**
22
+ > FileData crm_files_id_data_get(id)
23
+
24
+ Get file data by id.
25
+
26
+ ### Example
27
+ ```ruby
28
+ # load the gem
29
+ require 'sib-api-v3-sdk'
30
+ # setup authorization
31
+ SibApiV3Sdk.configure do |config|
32
+ # Configure API key authorization: api-key
33
+ config.api_key['api-key'] = 'YOUR API KEY'
34
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
35
+ #config.api_key_prefix['api-key'] = 'Bearer'
36
+
37
+ # Configure API key authorization: partner-key
38
+ config.api_key['partner-key'] = 'YOUR API KEY'
39
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
40
+ #config.api_key_prefix['partner-key'] = 'Bearer'
41
+ end
42
+
43
+ api_instance = SibApiV3Sdk::CRMApi.new
44
+
45
+ id = 'id_example' # String | File id to get file data.
46
+
47
+
48
+ begin
49
+ #Get file data by id.
50
+ result = api_instance.crm_files_id_data_get(id)
51
+ p result
52
+ rescue SibApiV3Sdk::ApiError => e
53
+ puts "Exception when calling CRMApi->crm_files_id_data_get: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ Name | Type | Description | Notes
60
+ ------------- | ------------- | ------------- | -------------
61
+ **id** | **String**| File id to get file data. |
62
+
63
+ ### Return type
64
+
65
+ [**FileData**](FileData.md)
66
+
67
+ ### Authorization
68
+
69
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: application/json
74
+ - **Accept**: application/json
75
+
76
+
77
+
78
+ # **crm_files_id_delete**
79
+ > crm_files_id_delete(id)
80
+
81
+ Delete file.
82
+
83
+ ### Example
84
+ ```ruby
85
+ # load the gem
86
+ require 'sib-api-v3-sdk'
87
+ # setup authorization
88
+ SibApiV3Sdk.configure do |config|
89
+ # Configure API key authorization: api-key
90
+ config.api_key['api-key'] = 'YOUR API KEY'
91
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
92
+ #config.api_key_prefix['api-key'] = 'Bearer'
93
+
94
+ # Configure API key authorization: partner-key
95
+ config.api_key['partner-key'] = 'YOUR API KEY'
96
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
97
+ #config.api_key_prefix['partner-key'] = 'Bearer'
98
+ end
99
+
100
+ api_instance = SibApiV3Sdk::CRMApi.new
101
+
102
+ id = 'id_example' # String | File id to delete.
103
+
104
+
105
+ begin
106
+ #Delete file.
107
+ api_instance.crm_files_id_delete(id)
108
+ rescue SibApiV3Sdk::ApiError => e
109
+ puts "Exception when calling CRMApi->crm_files_id_delete: #{e}"
110
+ end
111
+ ```
112
+
113
+ ### Parameters
114
+
115
+ Name | Type | Description | Notes
116
+ ------------- | ------------- | ------------- | -------------
117
+ **id** | **String**| File id to delete. |
118
+
119
+ ### Return type
120
+
121
+ nil (empty response body)
122
+
123
+ ### Authorization
124
+
125
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
126
+
127
+ ### HTTP request headers
128
+
129
+ - **Content-Type**: application/json
130
+ - **Accept**: application/json
131
+
132
+
133
+
134
+ # **crm_files_id_get**
135
+ > crm_files_id_get(id)
136
+
137
+ Download file by id.
138
+
139
+ ### Example
140
+ ```ruby
141
+ # load the gem
142
+ require 'sib-api-v3-sdk'
143
+ # setup authorization
144
+ SibApiV3Sdk.configure do |config|
145
+ # Configure API key authorization: api-key
146
+ config.api_key['api-key'] = 'YOUR API KEY'
147
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
148
+ #config.api_key_prefix['api-key'] = 'Bearer'
149
+
150
+ # Configure API key authorization: partner-key
151
+ config.api_key['partner-key'] = 'YOUR API KEY'
152
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
153
+ #config.api_key_prefix['partner-key'] = 'Bearer'
154
+ end
155
+
156
+ api_instance = SibApiV3Sdk::CRMApi.new
157
+
158
+ id = 'id_example' # String | File id to download.
159
+
160
+
161
+ begin
162
+ #Download file by id.
163
+ api_instance.crm_files_id_get(id)
164
+ rescue SibApiV3Sdk::ApiError => e
165
+ puts "Exception when calling CRMApi->crm_files_id_get: #{e}"
166
+ end
167
+ ```
168
+
169
+ ### Parameters
170
+
171
+ Name | Type | Description | Notes
172
+ ------------- | ------------- | ------------- | -------------
173
+ **id** | **String**| File id to download. |
174
+
175
+ ### Return type
176
+
177
+ nil (empty response body)
178
+
179
+ ### Authorization
180
+
181
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
182
+
183
+ ### HTTP request headers
184
+
185
+ - **Content-Type**: application/json
186
+ - **Accept**: application/json
187
+
188
+
189
+
190
+ # **crm_files_post**
191
+ > FileData crm_files_post(file, opts)
192
+
193
+ Upload and create file.
194
+
195
+ ### Example
196
+ ```ruby
197
+ # load the gem
198
+ require 'sib-api-v3-sdk'
199
+ # setup authorization
200
+ SibApiV3Sdk.configure do |config|
201
+ # Configure API key authorization: api-key
202
+ config.api_key['api-key'] = 'YOUR API KEY'
203
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
204
+ #config.api_key_prefix['api-key'] = 'Bearer'
205
+
206
+ # Configure API key authorization: partner-key
207
+ config.api_key['partner-key'] = 'YOUR API KEY'
208
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
209
+ #config.api_key_prefix['partner-key'] = 'Bearer'
210
+ end
211
+
212
+ api_instance = SibApiV3Sdk::CRMApi.new
213
+
214
+ file = File.new('/path/to/file.txt') # File | File data to create a file.
215
+
216
+ opts = {
217
+ deals_ids: ['deals_ids_example'] # Array<String> | Deal ids linked to a file
218
+ }
219
+
220
+ begin
221
+ #Upload and create file.
222
+ result = api_instance.crm_files_post(file, opts)
223
+ p result
224
+ rescue SibApiV3Sdk::ApiError => e
225
+ puts "Exception when calling CRMApi->crm_files_post: #{e}"
226
+ end
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+ Name | Type | Description | Notes
232
+ ------------- | ------------- | ------------- | -------------
233
+ **file** | **File**| File data to create a file. |
234
+ **deals_ids** | [**Array&lt;String&gt;**](String.md)| Deal ids linked to a file | [optional]
235
+
236
+ ### Return type
237
+
238
+ [**FileData**](FileData.md)
239
+
240
+ ### Authorization
241
+
242
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
243
+
244
+ ### HTTP request headers
245
+
246
+ - **Content-Type**: multipart/form-data
247
+ - **Accept**: application/json
248
+
249
+
250
+
251
+ # **crm_notes_id_delete**
252
+ > crm_notes_id_delete(id)
253
+
254
+ Delete Note by ID
255
+
256
+ ### Example
257
+ ```ruby
258
+ # load the gem
259
+ require 'sib-api-v3-sdk'
260
+ # setup authorization
261
+ SibApiV3Sdk.configure do |config|
262
+ # Configure API key authorization: api-key
263
+ config.api_key['api-key'] = 'YOUR API KEY'
264
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
265
+ #config.api_key_prefix['api-key'] = 'Bearer'
266
+
267
+ # Configure API key authorization: partner-key
268
+ config.api_key['partner-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['partner-key'] = 'Bearer'
271
+ end
272
+
273
+ api_instance = SibApiV3Sdk::CRMApi.new
274
+
275
+ id = 'id_example' # String | Note ID to delete
276
+
277
+
278
+ begin
279
+ #Delete Note by ID
280
+ api_instance.crm_notes_id_delete(id)
281
+ rescue SibApiV3Sdk::ApiError => e
282
+ puts "Exception when calling CRMApi->crm_notes_id_delete: #{e}"
283
+ end
284
+ ```
285
+
286
+ ### Parameters
287
+
288
+ Name | Type | Description | Notes
289
+ ------------- | ------------- | ------------- | -------------
290
+ **id** | **String**| Note ID to delete |
291
+
292
+ ### Return type
293
+
294
+ nil (empty response body)
295
+
296
+ ### Authorization
297
+
298
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
299
+
300
+ ### HTTP request headers
301
+
302
+ - **Content-Type**: application/json
303
+ - **Accept**: application/json
304
+
305
+
306
+
307
+ # **crm_notes_id_get**
308
+ > Note crm_notes_id_get(id)
309
+
310
+ Get one Note by ID
311
+
312
+ ### Example
313
+ ```ruby
314
+ # load the gem
315
+ require 'sib-api-v3-sdk'
316
+ # setup authorization
317
+ SibApiV3Sdk.configure do |config|
318
+ # Configure API key authorization: api-key
319
+ config.api_key['api-key'] = 'YOUR API KEY'
320
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
321
+ #config.api_key_prefix['api-key'] = 'Bearer'
322
+
323
+ # Configure API key authorization: partner-key
324
+ config.api_key['partner-key'] = 'YOUR API KEY'
325
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
326
+ #config.api_key_prefix['partner-key'] = 'Bearer'
327
+ end
328
+
329
+ api_instance = SibApiV3Sdk::CRMApi.new
330
+
331
+ id = 'id_example' # String | Note ID to get
332
+
333
+
334
+ begin
335
+ #Get one Note by ID
336
+ result = api_instance.crm_notes_id_get(id)
337
+ p result
338
+ rescue SibApiV3Sdk::ApiError => e
339
+ puts "Exception when calling CRMApi->crm_notes_id_get: #{e}"
340
+ end
341
+ ```
342
+
343
+ ### Parameters
344
+
345
+ Name | Type | Description | Notes
346
+ ------------- | ------------- | ------------- | -------------
347
+ **id** | **String**| Note ID to get |
348
+
349
+ ### Return type
350
+
351
+ [**Note**](Note.md)
352
+
353
+ ### Authorization
354
+
355
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
356
+
357
+ ### HTTP request headers
358
+
359
+ - **Content-Type**: application/json
360
+ - **Accept**: application/json
361
+
362
+
363
+
364
+ # **crm_notes_id_patch**
365
+ > Note crm_notes_id_patch(id, body)
366
+
367
+ Update a note
368
+
369
+ ### Example
370
+ ```ruby
371
+ # load the gem
372
+ require 'sib-api-v3-sdk'
373
+ # setup authorization
374
+ SibApiV3Sdk.configure do |config|
375
+ # Configure API key authorization: api-key
376
+ config.api_key['api-key'] = 'YOUR API KEY'
377
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
378
+ #config.api_key_prefix['api-key'] = 'Bearer'
379
+
380
+ # Configure API key authorization: partner-key
381
+ config.api_key['partner-key'] = 'YOUR API KEY'
382
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
383
+ #config.api_key_prefix['partner-key'] = 'Bearer'
384
+ end
385
+
386
+ api_instance = SibApiV3Sdk::CRMApi.new
387
+
388
+ id = 'id_example' # String | Note ID to update
389
+
390
+ body = SibApiV3Sdk::NoteData.new # NoteData | Note data to update a note
391
+
392
+
393
+ begin
394
+ #Update a note
395
+ result = api_instance.crm_notes_id_patch(id, body)
396
+ p result
397
+ rescue SibApiV3Sdk::ApiError => e
398
+ puts "Exception when calling CRMApi->crm_notes_id_patch: #{e}"
399
+ end
400
+ ```
401
+
402
+ ### Parameters
403
+
404
+ Name | Type | Description | Notes
405
+ ------------- | ------------- | ------------- | -------------
406
+ **id** | **String**| Note ID to update |
407
+ **body** | [**NoteData**](NoteData.md)| Note data to update a note |
408
+
409
+ ### Return type
410
+
411
+ [**Note**](Note.md)
412
+
413
+ ### Authorization
414
+
415
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
416
+
417
+ ### HTTP request headers
418
+
419
+ - **Content-Type**: application/json
420
+ - **Accept**: application/json
421
+
422
+
423
+
424
+ # **crm_notes_post**
425
+ > Note crm_notes_post(body)
426
+
427
+ Create a new Note
428
+
429
+ ### Example
430
+ ```ruby
431
+ # load the gem
432
+ require 'sib-api-v3-sdk'
433
+ # setup authorization
434
+ SibApiV3Sdk.configure do |config|
435
+ # Configure API key authorization: api-key
436
+ config.api_key['api-key'] = 'YOUR API KEY'
437
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
438
+ #config.api_key_prefix['api-key'] = 'Bearer'
439
+
440
+ # Configure API key authorization: partner-key
441
+ config.api_key['partner-key'] = 'YOUR API KEY'
442
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
443
+ #config.api_key_prefix['partner-key'] = 'Bearer'
444
+ end
445
+
446
+ api_instance = SibApiV3Sdk::CRMApi.new
447
+
448
+ body = SibApiV3Sdk::NoteData.new # NoteData | Note data to create a note.
449
+
450
+
451
+ begin
452
+ #Create a new Note
453
+ result = api_instance.crm_notes_post(body)
454
+ p result
455
+ rescue SibApiV3Sdk::ApiError => e
456
+ puts "Exception when calling CRMApi->crm_notes_post: #{e}"
457
+ end
458
+ ```
459
+
460
+ ### Parameters
461
+
462
+ Name | Type | Description | Notes
463
+ ------------- | ------------- | ------------- | -------------
464
+ **body** | [**NoteData**](NoteData.md)| Note data to create a note. |
465
+
466
+ ### Return type
467
+
468
+ [**Note**](Note.md)
469
+
470
+ ### Authorization
471
+
472
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
473
+
474
+ ### HTTP request headers
475
+
476
+ - **Content-Type**: application/json
477
+ - **Accept**: application/json
478
+
479
+
480
+
481
+ # **crm_tasks_id_delete**
482
+ > crm_tasks_id_delete(id)
483
+
484
+ Delete Task by id
485
+
486
+ ### Example
487
+ ```ruby
488
+ # load the gem
489
+ require 'sib-api-v3-sdk'
490
+ # setup authorization
491
+ SibApiV3Sdk.configure do |config|
492
+ # Configure API key authorization: api-key
493
+ config.api_key['api-key'] = 'YOUR API KEY'
494
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
495
+ #config.api_key_prefix['api-key'] = 'Bearer'
496
+
497
+ # Configure API key authorization: partner-key
498
+ config.api_key['partner-key'] = 'YOUR API KEY'
499
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
500
+ #config.api_key_prefix['partner-key'] = 'Bearer'
501
+ end
502
+
503
+ api_instance = SibApiV3Sdk::CRMApi.new
504
+
505
+ id = 'id_example' # String |
506
+
507
+
508
+ begin
509
+ #Delete Task by id
510
+ api_instance.crm_tasks_id_delete(id)
511
+ rescue SibApiV3Sdk::ApiError => e
512
+ puts "Exception when calling CRMApi->crm_tasks_id_delete: #{e}"
513
+ end
514
+ ```
515
+
516
+ ### Parameters
517
+
518
+ Name | Type | Description | Notes
519
+ ------------- | ------------- | ------------- | -------------
520
+ **id** | **String**| |
521
+
522
+ ### Return type
523
+
524
+ nil (empty response body)
525
+
526
+ ### Authorization
527
+
528
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
529
+
530
+ ### HTTP request headers
531
+
532
+ - **Content-Type**: application/json
533
+ - **Accept**: application/json
534
+
535
+
536
+
537
+ # **crm_tasks_id_get**
538
+ > Task crm_tasks_id_get(id)
539
+
540
+ Get one Task by ID
541
+
542
+ ### Example
543
+ ```ruby
544
+ # load the gem
545
+ require 'sib-api-v3-sdk'
546
+ # setup authorization
547
+ SibApiV3Sdk.configure do |config|
548
+ # Configure API key authorization: api-key
549
+ config.api_key['api-key'] = 'YOUR API KEY'
550
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
551
+ #config.api_key_prefix['api-key'] = 'Bearer'
552
+
553
+ # Configure API key authorization: partner-key
554
+ config.api_key['partner-key'] = 'YOUR API KEY'
555
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
556
+ #config.api_key_prefix['partner-key'] = 'Bearer'
557
+ end
558
+
559
+ api_instance = SibApiV3Sdk::CRMApi.new
560
+
561
+ id = 'id_example' # String |
562
+
563
+
564
+ begin
565
+ #Get one Task by ID
566
+ result = api_instance.crm_tasks_id_get(id)
567
+ p result
568
+ rescue SibApiV3Sdk::ApiError => e
569
+ puts "Exception when calling CRMApi->crm_tasks_id_get: #{e}"
570
+ end
571
+ ```
572
+
573
+ ### Parameters
574
+
575
+ Name | Type | Description | Notes
576
+ ------------- | ------------- | ------------- | -------------
577
+ **id** | **String**| |
578
+
579
+ ### Return type
580
+
581
+ [**Task**](Task.md)
582
+
583
+ ### Authorization
584
+
585
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
586
+
587
+ ### HTTP request headers
588
+
589
+ - **Content-Type**: application/json
590
+ - **Accept**: application/json
591
+
592
+
593
+
594
+ # **crm_tasks_id_patch**
595
+ > Task crm_tasks_id_patch(id, body)
596
+
597
+ Update partial existing task
598
+
599
+ ### Example
600
+ ```ruby
601
+ # load the gem
602
+ require 'sib-api-v3-sdk'
603
+ # setup authorization
604
+ SibApiV3Sdk.configure do |config|
605
+ # Configure API key authorization: api-key
606
+ config.api_key['api-key'] = 'YOUR API KEY'
607
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
608
+ #config.api_key_prefix['api-key'] = 'Bearer'
609
+
610
+ # Configure API key authorization: partner-key
611
+ config.api_key['partner-key'] = 'YOUR API KEY'
612
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
613
+ #config.api_key_prefix['partner-key'] = 'Bearer'
614
+ end
615
+
616
+ api_instance = SibApiV3Sdk::CRMApi.new
617
+
618
+ id = 'id_example' # String |
619
+
620
+ body = SibApiV3Sdk::Body1.new # Body1 | Updated task details.
621
+
622
+
623
+ begin
624
+ #Update partial existing task
625
+ result = api_instance.crm_tasks_id_patch(id, body)
626
+ p result
627
+ rescue SibApiV3Sdk::ApiError => e
628
+ puts "Exception when calling CRMApi->crm_tasks_id_patch: #{e}"
629
+ end
630
+ ```
631
+
632
+ ### Parameters
633
+
634
+ Name | Type | Description | Notes
635
+ ------------- | ------------- | ------------- | -------------
636
+ **id** | **String**| |
637
+ **body** | [**Body1**](Body1.md)| Updated task details. |
638
+
639
+ ### Return type
640
+
641
+ [**Task**](Task.md)
642
+
643
+ ### Authorization
644
+
645
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
646
+
647
+ ### HTTP request headers
648
+
649
+ - **Content-Type**: application/json
650
+ - **Accept**: application/json
651
+
652
+
653
+
654
+ # **crm_tasks_post**
655
+ > Task crm_tasks_post(body)
656
+
657
+ Create a new Task
658
+
659
+ ### Example
660
+ ```ruby
661
+ # load the gem
662
+ require 'sib-api-v3-sdk'
663
+ # setup authorization
664
+ SibApiV3Sdk.configure do |config|
665
+ # Configure API key authorization: api-key
666
+ config.api_key['api-key'] = 'YOUR API KEY'
667
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
668
+ #config.api_key_prefix['api-key'] = 'Bearer'
669
+
670
+ # Configure API key authorization: partner-key
671
+ config.api_key['partner-key'] = 'YOUR API KEY'
672
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
673
+ #config.api_key_prefix['partner-key'] = 'Bearer'
674
+ end
675
+
676
+ api_instance = SibApiV3Sdk::CRMApi.new
677
+
678
+ body = SibApiV3Sdk::Body.new # Body | Task name.
679
+
680
+
681
+ begin
682
+ #Create a new Task
683
+ result = api_instance.crm_tasks_post(body)
684
+ p result
685
+ rescue SibApiV3Sdk::ApiError => e
686
+ puts "Exception when calling CRMApi->crm_tasks_post: #{e}"
687
+ end
688
+ ```
689
+
690
+ ### Parameters
691
+
692
+ Name | Type | Description | Notes
693
+ ------------- | ------------- | ------------- | -------------
694
+ **body** | [**Body**](Body.md)| Task name. |
695
+
696
+ ### Return type
697
+
698
+ [**Task**](Task.md)
699
+
700
+ ### Authorization
701
+
702
+ [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
703
+
704
+ ### HTTP request headers
705
+
706
+ - **Content-Type**: application/json
707
+ - **Accept**: application/json
708
+
709
+
710
+
data/docs/Contact.md ADDED
@@ -0,0 +1,15 @@
1
+ # SibApiV3Sdk::Contact
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **virtual_next_task** | **Object** | Next incomplete task of contact | [optional]
7
+ **email** | **String** | Contact email |
8
+ **assign_to_id** | **String** | User id to whom contact is assigned | [optional]
9
+ **contacts_id** | **Integer** | Contact id | [optional]
10
+ **crm_lists** | **Object** | CRM lists in which contact is added |
11
+ **attributes** | **Object** | Contact attributes e.g firstname / lastname / SMS etc. | [optional]
12
+ **created_at** | **DateTime** | Contact created date/time | [optional]
13
+ **updated_at** | **DateTime** | Contact updated date/time | [optional]
14
+
15
+