sib-api-v3-sdk 8.1.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +82 -14
  3. data/docs/Body.md +2 -11
  4. data/docs/Body1.md +2 -11
  5. data/docs/Body10.md +11 -0
  6. data/docs/Body11.md +8 -0
  7. data/docs/Body12.md +11 -0
  8. data/docs/Body2.md +11 -0
  9. data/docs/Body3.md +9 -0
  10. data/docs/Body4.md +9 -0
  11. data/docs/Body5.md +11 -0
  12. data/docs/Body6.md +18 -0
  13. data/docs/Body7.md +17 -0
  14. data/docs/Body8.md +13 -0
  15. data/docs/Body9.md +8 -0
  16. data/docs/CompaniesApi.md +425 -0
  17. data/docs/CompaniesList.md +8 -0
  18. data/docs/Company.md +11 -0
  19. data/docs/CompanyAttributes.md +7 -0
  20. data/docs/CompanyAttributesInner.md +12 -0
  21. data/docs/ContactsApi.md +8 -2
  22. data/docs/ConversationsApi.md +542 -0
  23. data/docs/ConversationsMessage.md +17 -0
  24. data/docs/ConversationsMessageFile.md +12 -0
  25. data/docs/ConversationsMessageFileImageInfo.md +10 -0
  26. data/docs/CreateContact.md +1 -1
  27. data/docs/CreateSubAccount.md +3 -3
  28. data/docs/CreateSubAccountResponse.md +8 -0
  29. data/docs/Deal.md +11 -0
  30. data/docs/DealAttributes.md +7 -0
  31. data/docs/DealAttributesInner.md +12 -0
  32. data/docs/DealsApi.md +476 -0
  33. data/docs/DealsList.md +8 -0
  34. data/docs/EmailCampaignsApi.md +6 -5
  35. data/docs/FileData.md +3 -6
  36. data/docs/FileDownloadableLink.md +8 -0
  37. data/docs/FileList.md +7 -0
  38. data/docs/FilesApi.md +318 -0
  39. data/docs/GetCampaignStats.md +2 -0
  40. data/docs/GetScheduledEmailByBatchId.md +9 -0
  41. data/docs/GetScheduledEmailByBatchIdBatches.md +10 -0
  42. data/docs/GetScheduledEmailByMessageId.md +10 -0
  43. data/docs/GetSsoToken.md +1 -1
  44. data/docs/InboundParsingApi.md +60 -0
  45. data/docs/InlineResponse200.md +8 -0
  46. data/docs/InlineResponse201.md +8 -0
  47. data/docs/InlineResponse2011.md +8 -0
  48. data/docs/MasterAccountApi.md +6 -6
  49. data/docs/NoteId.md +8 -0
  50. data/docs/NoteList.md +7 -0
  51. data/docs/NotesApi.md +312 -0
  52. data/docs/Pipeline.md +8 -0
  53. data/docs/PipelineStage.md +9 -0
  54. data/docs/ScheduleSmtpEmail.md +10 -0
  55. data/docs/SendSmtpEmail.md +3 -1
  56. data/docs/SubAccountDetailsResponsePlanInfoCredits.md +1 -1
  57. data/docs/SubAccountsResponseSubAccounts.md +4 -4
  58. data/docs/Task.md +0 -11
  59. data/docs/TaskList.md +8 -0
  60. data/docs/TaskReminder.md +1 -1
  61. data/docs/TaskTypes.md +0 -1
  62. data/docs/TasksApi.md +376 -0
  63. data/docs/TransactionalEmailsApi.md +199 -0
  64. data/docs/UpdateContact.md +1 -1
  65. data/docs/UpdateEmailCampaign.md +1 -1
  66. data/docs/UpdateSmtpTemplate.md +1 -1
  67. data/docs/UploadImageModel.md +8 -0
  68. data/lib/sib-api-v3-sdk/api/companies_api.rb +409 -0
  69. data/lib/sib-api-v3-sdk/api/contacts_api.rb +6 -0
  70. data/lib/sib-api-v3-sdk/api/conversations_api.rb +504 -0
  71. data/lib/sib-api-v3-sdk/api/deals_api.rb +454 -0
  72. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +9 -8
  73. data/lib/sib-api-v3-sdk/api/files_api.rb +313 -0
  74. data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +53 -1
  75. data/lib/sib-api-v3-sdk/api/master_account_api.rb +9 -9
  76. data/lib/sib-api-v3-sdk/api/notes_api.rb +308 -0
  77. data/lib/sib-api-v3-sdk/api/tasks_api.rb +375 -0
  78. data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +195 -0
  79. data/lib/sib-api-v3-sdk/models/body.rb +9 -114
  80. data/lib/sib-api-v3-sdk/models/body_1.rb +9 -119
  81. data/lib/sib-api-v3-sdk/models/body_10.rb +225 -0
  82. data/lib/sib-api-v3-sdk/models/body_11.rb +190 -0
  83. data/lib/sib-api-v3-sdk/models/body_12.rb +215 -0
  84. data/lib/sib-api-v3-sdk/models/body_2.rb +223 -0
  85. data/lib/sib-api-v3-sdk/models/body_3.rb +200 -0
  86. data/lib/sib-api-v3-sdk/models/body_4.rb +195 -0
  87. data/lib/sib-api-v3-sdk/models/body_5.rb +223 -0
  88. data/lib/sib-api-v3-sdk/models/body_6.rb +320 -0
  89. data/lib/sib-api-v3-sdk/models/body_7.rb +281 -0
  90. data/lib/sib-api-v3-sdk/models/body_8.rb +245 -0
  91. data/lib/sib-api-v3-sdk/models/body_9.rb +190 -0
  92. data/lib/sib-api-v3-sdk/models/companies_list.rb +188 -0
  93. data/lib/sib-api-v3-sdk/models/company.rb +220 -0
  94. data/lib/sib-api-v3-sdk/models/company_attributes.rb +176 -0
  95. data/lib/sib-api-v3-sdk/models/company_attributes_inner.rb +223 -0
  96. data/lib/sib-api-v3-sdk/models/conversations_message.rb +324 -0
  97. data/lib/sib-api-v3-sdk/models/conversations_message_file.rb +239 -0
  98. data/lib/sib-api-v3-sdk/models/conversations_message_file_image_info.rb +236 -0
  99. data/lib/sib-api-v3-sdk/models/create_contact.rb +1 -1
  100. data/lib/sib-api-v3-sdk/models/create_sub_account.rb +3 -3
  101. data/lib/sib-api-v3-sdk/models/create_sub_account_response.rb +190 -0
  102. data/lib/sib-api-v3-sdk/models/deal.rb +220 -0
  103. data/lib/sib-api-v3-sdk/models/deal_attributes.rb +176 -0
  104. data/lib/sib-api-v3-sdk/models/deal_attributes_inner.rb +223 -0
  105. data/lib/sib-api-v3-sdk/models/deals_list.rb +188 -0
  106. data/lib/sib-api-v3-sdk/models/file_data.rb +22 -54
  107. data/lib/sib-api-v3-sdk/models/file_downloadable_link.rb +190 -0
  108. data/lib/sib-api-v3-sdk/models/file_list.rb +176 -0
  109. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +21 -1
  110. data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_batch_id.rb +196 -0
  111. data/lib/sib-api-v3-sdk/models/{contact.rb → get_scheduled_email_by_batch_id_batches.rb} +62 -74
  112. data/lib/sib-api-v3-sdk/models/get_scheduled_email_by_message_id.rb +254 -0
  113. data/lib/sib-api-v3-sdk/models/get_sso_token.rb +1 -1
  114. data/lib/sib-api-v3-sdk/models/inline_response_200.rb +191 -0
  115. data/lib/sib-api-v3-sdk/models/inline_response_201.rb +191 -0
  116. data/lib/sib-api-v3-sdk/models/inline_response_201_1.rb +191 -0
  117. data/lib/sib-api-v3-sdk/models/note_id.rb +186 -0
  118. data/lib/sib-api-v3-sdk/models/note_list.rb +176 -0
  119. data/lib/sib-api-v3-sdk/models/pipeline.rb +188 -0
  120. data/lib/sib-api-v3-sdk/models/pipeline_stage.rb +196 -0
  121. data/lib/sib-api-v3-sdk/models/schedule_smtp_email.rb +206 -0
  122. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +24 -4
  123. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +2 -2
  124. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +1 -1
  125. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +1 -1
  126. data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +4 -4
  127. data/lib/sib-api-v3-sdk/models/task.rb +4 -119
  128. data/lib/sib-api-v3-sdk/models/task_list.rb +188 -0
  129. data/lib/sib-api-v3-sdk/models/task_reminder.rb +1 -1
  130. data/lib/sib-api-v3-sdk/models/task_types.rb +1 -11
  131. data/lib/sib-api-v3-sdk/models/update_contact.rb +1 -1
  132. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +1 -1
  133. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +1 -1
  134. data/lib/sib-api-v3-sdk/models/upload_image_model.rb +190 -0
  135. data/lib/sib-api-v3-sdk/version.rb +1 -1
  136. data/lib/sib-api-v3-sdk.rb +44 -2
  137. data/spec/api/companies_api_spec.rb +119 -0
  138. data/spec/api/contacts_api_spec.rb +2 -0
  139. data/spec/api/conversations_api_spec.rb +140 -0
  140. data/spec/api/deals_api_spec.rb +129 -0
  141. data/spec/api/email_campaigns_api_spec.rb +1 -1
  142. data/spec/api/files_api_spec.rb +99 -0
  143. data/spec/api/inbound_parsing_api_spec.rb +12 -0
  144. data/spec/api/master_account_api_spec.rb +4 -4
  145. data/spec/api/notes_api_spec.rb +97 -0
  146. data/spec/api/{crm_api_spec.rb → tasks_api_spec.rb} +25 -92
  147. data/spec/api/transactional_emails_api_spec.rb +44 -0
  148. data/spec/models/body_10_spec.rb +59 -0
  149. data/spec/models/body_11_spec.rb +41 -0
  150. data/spec/models/body_12_spec.rb +59 -0
  151. data/spec/models/body_1_spec.rb +1 -55
  152. data/spec/models/body_2_spec.rb +59 -0
  153. data/spec/models/body_3_spec.rb +47 -0
  154. data/spec/models/body_4_spec.rb +47 -0
  155. data/spec/models/body_5_spec.rb +59 -0
  156. data/spec/models/body_6_spec.rb +101 -0
  157. data/spec/models/{contact_spec.rb → body_7_spec.rb} +26 -14
  158. data/spec/models/body_8_spec.rb +71 -0
  159. data/spec/models/body_9_spec.rb +41 -0
  160. data/spec/models/body_spec.rb +1 -55
  161. data/spec/models/companies_list_spec.rb +41 -0
  162. data/spec/models/company_attributes_inner_spec.rb +65 -0
  163. data/spec/models/company_attributes_spec.rb +35 -0
  164. data/spec/models/company_spec.rb +59 -0
  165. data/spec/models/conversations_message_file_image_info_spec.rb +53 -0
  166. data/spec/models/conversations_message_file_spec.rb +65 -0
  167. data/spec/models/conversations_message_spec.rb +99 -0
  168. data/spec/models/create_sub_account_response_spec.rb +41 -0
  169. data/spec/models/deal_attributes_inner_spec.rb +65 -0
  170. data/spec/models/deal_attributes_spec.rb +35 -0
  171. data/spec/models/deal_spec.rb +59 -0
  172. data/spec/models/deals_list_spec.rb +41 -0
  173. data/spec/models/file_data_spec.rb +3 -21
  174. data/spec/models/file_downloadable_link_spec.rb +41 -0
  175. data/spec/models/file_list_spec.rb +35 -0
  176. data/spec/models/get_campaign_stats_spec.rb +12 -0
  177. data/spec/models/get_scheduled_email_by_batch_id_batches_spec.rb +57 -0
  178. data/spec/models/get_scheduled_email_by_batch_id_spec.rb +47 -0
  179. data/spec/models/get_scheduled_email_by_message_id_spec.rb +57 -0
  180. data/spec/models/inline_response_200_spec.rb +41 -0
  181. data/spec/models/inline_response_201_1_spec.rb +41 -0
  182. data/spec/models/inline_response_201_spec.rb +41 -0
  183. data/spec/models/note_id_spec.rb +41 -0
  184. data/spec/models/note_list_spec.rb +35 -0
  185. data/spec/models/pipeline_spec.rb +41 -0
  186. data/spec/models/pipeline_stage_spec.rb +47 -0
  187. data/spec/models/schedule_smtp_email_spec.rb +53 -0
  188. data/spec/models/send_smtp_email_spec.rb +12 -0
  189. data/spec/models/task_list_spec.rb +41 -0
  190. data/spec/models/task_spec.rb +0 -66
  191. data/spec/models/task_types_spec.rb +0 -6
  192. data/spec/models/upload_image_model_spec.rb +41 -0
  193. metadata +179 -11
  194. data/docs/CRMApi.md +0 -762
  195. data/docs/Contact.md +0 -15
  196. data/lib/sib-api-v3-sdk/api/crm_api.rb +0 -716
data/docs/CRMApi.md DELETED
@@ -1,762 +0,0 @@
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 details
8
- [**crm_files_id_delete**](CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file
9
- [**crm_files_id_get**](CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file
10
- [**crm_files_post**](CRMApi.md#crm_files_post) | **POST** /crm/files | Upload a file
11
- [**crm_notes_id_delete**](CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note
12
- [**crm_notes_id_get**](CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note
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 note
15
- [**crm_tasks_id_delete**](CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete a task
16
- [**crm_tasks_id_get**](CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get a task
17
- [**crm_tasks_id_patch**](CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update a task
18
- [**crm_tasks_post**](CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a task
19
- [**crm_tasktypes_get**](CRMApi.md#crm_tasktypes_get) | **GET** /crm/tasktypes | Get all task types
20
-
21
-
22
- # **crm_files_id_data_get**
23
- > FileData crm_files_id_data_get(id)
24
-
25
- Get file details
26
-
27
- ### Example
28
- ```ruby
29
- # load the gem
30
- require 'sib-api-v3-sdk'
31
- # setup authorization
32
- SibApiV3Sdk.configure do |config|
33
- # Configure API key authorization: api-key
34
- config.api_key['api-key'] = 'YOUR API KEY'
35
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
36
- #config.api_key_prefix['api-key'] = 'Bearer'
37
-
38
- # Configure API key authorization: partner-key
39
- config.api_key['partner-key'] = 'YOUR API KEY'
40
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
41
- #config.api_key_prefix['partner-key'] = 'Bearer'
42
- end
43
-
44
- api_instance = SibApiV3Sdk::CRMApi.new
45
-
46
- id = 'id_example' # String | File id to get file data.
47
-
48
-
49
- begin
50
- #Get file details
51
- result = api_instance.crm_files_id_data_get(id)
52
- p result
53
- rescue SibApiV3Sdk::ApiError => e
54
- puts "Exception when calling CRMApi->crm_files_id_data_get: #{e}"
55
- end
56
- ```
57
-
58
- ### Parameters
59
-
60
- Name | Type | Description | Notes
61
- ------------- | ------------- | ------------- | -------------
62
- **id** | **String**| File id to get file data. |
63
-
64
- ### Return type
65
-
66
- [**FileData**](FileData.md)
67
-
68
- ### Authorization
69
-
70
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
71
-
72
- ### HTTP request headers
73
-
74
- - **Content-Type**: application/json
75
- - **Accept**: application/json
76
-
77
-
78
-
79
- # **crm_files_id_delete**
80
- > crm_files_id_delete(id)
81
-
82
- Delete a file
83
-
84
- ### Example
85
- ```ruby
86
- # load the gem
87
- require 'sib-api-v3-sdk'
88
- # setup authorization
89
- SibApiV3Sdk.configure do |config|
90
- # Configure API key authorization: api-key
91
- config.api_key['api-key'] = 'YOUR API KEY'
92
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
93
- #config.api_key_prefix['api-key'] = 'Bearer'
94
-
95
- # Configure API key authorization: partner-key
96
- config.api_key['partner-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['partner-key'] = 'Bearer'
99
- end
100
-
101
- api_instance = SibApiV3Sdk::CRMApi.new
102
-
103
- id = 'id_example' # String | File id to delete.
104
-
105
-
106
- begin
107
- #Delete a file
108
- api_instance.crm_files_id_delete(id)
109
- rescue SibApiV3Sdk::ApiError => e
110
- puts "Exception when calling CRMApi->crm_files_id_delete: #{e}"
111
- end
112
- ```
113
-
114
- ### Parameters
115
-
116
- Name | Type | Description | Notes
117
- ------------- | ------------- | ------------- | -------------
118
- **id** | **String**| File id to delete. |
119
-
120
- ### Return type
121
-
122
- nil (empty response body)
123
-
124
- ### Authorization
125
-
126
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
127
-
128
- ### HTTP request headers
129
-
130
- - **Content-Type**: application/json
131
- - **Accept**: application/json
132
-
133
-
134
-
135
- # **crm_files_id_get**
136
- > crm_files_id_get(id)
137
-
138
- Download a file
139
-
140
- ### Example
141
- ```ruby
142
- # load the gem
143
- require 'sib-api-v3-sdk'
144
- # setup authorization
145
- SibApiV3Sdk.configure do |config|
146
- # Configure API key authorization: api-key
147
- config.api_key['api-key'] = 'YOUR API KEY'
148
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
149
- #config.api_key_prefix['api-key'] = 'Bearer'
150
-
151
- # Configure API key authorization: partner-key
152
- config.api_key['partner-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['partner-key'] = 'Bearer'
155
- end
156
-
157
- api_instance = SibApiV3Sdk::CRMApi.new
158
-
159
- id = 'id_example' # String | File id to download.
160
-
161
-
162
- begin
163
- #Download a file
164
- api_instance.crm_files_id_get(id)
165
- rescue SibApiV3Sdk::ApiError => e
166
- puts "Exception when calling CRMApi->crm_files_id_get: #{e}"
167
- end
168
- ```
169
-
170
- ### Parameters
171
-
172
- Name | Type | Description | Notes
173
- ------------- | ------------- | ------------- | -------------
174
- **id** | **String**| File id to download. |
175
-
176
- ### Return type
177
-
178
- nil (empty response body)
179
-
180
- ### Authorization
181
-
182
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
183
-
184
- ### HTTP request headers
185
-
186
- - **Content-Type**: application/json
187
- - **Accept**: application/json
188
-
189
-
190
-
191
- # **crm_files_post**
192
- > FileData crm_files_post(file, opts)
193
-
194
- Upload a file
195
-
196
- ### Example
197
- ```ruby
198
- # load the gem
199
- require 'sib-api-v3-sdk'
200
- # setup authorization
201
- SibApiV3Sdk.configure do |config|
202
- # Configure API key authorization: api-key
203
- config.api_key['api-key'] = 'YOUR API KEY'
204
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
205
- #config.api_key_prefix['api-key'] = 'Bearer'
206
-
207
- # Configure API key authorization: partner-key
208
- config.api_key['partner-key'] = 'YOUR API KEY'
209
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
210
- #config.api_key_prefix['partner-key'] = 'Bearer'
211
- end
212
-
213
- api_instance = SibApiV3Sdk::CRMApi.new
214
-
215
- file = File.new('/path/to/file.txt') # File | File data to create a file.
216
-
217
- opts = {
218
- deals_ids: ['deals_ids_example'] # Array<String> | Deal ids linked to a file
219
- }
220
-
221
- begin
222
- #Upload a file
223
- result = api_instance.crm_files_post(file, opts)
224
- p result
225
- rescue SibApiV3Sdk::ApiError => e
226
- puts "Exception when calling CRMApi->crm_files_post: #{e}"
227
- end
228
- ```
229
-
230
- ### Parameters
231
-
232
- Name | Type | Description | Notes
233
- ------------- | ------------- | ------------- | -------------
234
- **file** | **File**| File data to create a file. |
235
- **deals_ids** | [**Array&lt;String&gt;**](String.md)| Deal ids linked to a file | [optional]
236
-
237
- ### Return type
238
-
239
- [**FileData**](FileData.md)
240
-
241
- ### Authorization
242
-
243
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
244
-
245
- ### HTTP request headers
246
-
247
- - **Content-Type**: multipart/form-data
248
- - **Accept**: application/json
249
-
250
-
251
-
252
- # **crm_notes_id_delete**
253
- > crm_notes_id_delete(id)
254
-
255
- Delete a note
256
-
257
- ### Example
258
- ```ruby
259
- # load the gem
260
- require 'sib-api-v3-sdk'
261
- # setup authorization
262
- SibApiV3Sdk.configure do |config|
263
- # Configure API key authorization: api-key
264
- config.api_key['api-key'] = 'YOUR API KEY'
265
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
266
- #config.api_key_prefix['api-key'] = 'Bearer'
267
-
268
- # Configure API key authorization: partner-key
269
- config.api_key['partner-key'] = 'YOUR API KEY'
270
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
271
- #config.api_key_prefix['partner-key'] = 'Bearer'
272
- end
273
-
274
- api_instance = SibApiV3Sdk::CRMApi.new
275
-
276
- id = 'id_example' # String | Note ID to delete
277
-
278
-
279
- begin
280
- #Delete a note
281
- api_instance.crm_notes_id_delete(id)
282
- rescue SibApiV3Sdk::ApiError => e
283
- puts "Exception when calling CRMApi->crm_notes_id_delete: #{e}"
284
- end
285
- ```
286
-
287
- ### Parameters
288
-
289
- Name | Type | Description | Notes
290
- ------------- | ------------- | ------------- | -------------
291
- **id** | **String**| Note ID to delete |
292
-
293
- ### Return type
294
-
295
- nil (empty response body)
296
-
297
- ### Authorization
298
-
299
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
300
-
301
- ### HTTP request headers
302
-
303
- - **Content-Type**: application/json
304
- - **Accept**: application/json
305
-
306
-
307
-
308
- # **crm_notes_id_get**
309
- > Note crm_notes_id_get(id)
310
-
311
- Get a note
312
-
313
- ### Example
314
- ```ruby
315
- # load the gem
316
- require 'sib-api-v3-sdk'
317
- # setup authorization
318
- SibApiV3Sdk.configure do |config|
319
- # Configure API key authorization: api-key
320
- config.api_key['api-key'] = 'YOUR API KEY'
321
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
322
- #config.api_key_prefix['api-key'] = 'Bearer'
323
-
324
- # Configure API key authorization: partner-key
325
- config.api_key['partner-key'] = 'YOUR API KEY'
326
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
327
- #config.api_key_prefix['partner-key'] = 'Bearer'
328
- end
329
-
330
- api_instance = SibApiV3Sdk::CRMApi.new
331
-
332
- id = 'id_example' # String | Note ID to get
333
-
334
-
335
- begin
336
- #Get a note
337
- result = api_instance.crm_notes_id_get(id)
338
- p result
339
- rescue SibApiV3Sdk::ApiError => e
340
- puts "Exception when calling CRMApi->crm_notes_id_get: #{e}"
341
- end
342
- ```
343
-
344
- ### Parameters
345
-
346
- Name | Type | Description | Notes
347
- ------------- | ------------- | ------------- | -------------
348
- **id** | **String**| Note ID to get |
349
-
350
- ### Return type
351
-
352
- [**Note**](Note.md)
353
-
354
- ### Authorization
355
-
356
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
357
-
358
- ### HTTP request headers
359
-
360
- - **Content-Type**: application/json
361
- - **Accept**: application/json
362
-
363
-
364
-
365
- # **crm_notes_id_patch**
366
- > Note crm_notes_id_patch(id, body)
367
-
368
- Update a note
369
-
370
- ### Example
371
- ```ruby
372
- # load the gem
373
- require 'sib-api-v3-sdk'
374
- # setup authorization
375
- SibApiV3Sdk.configure do |config|
376
- # Configure API key authorization: api-key
377
- config.api_key['api-key'] = 'YOUR API KEY'
378
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
379
- #config.api_key_prefix['api-key'] = 'Bearer'
380
-
381
- # Configure API key authorization: partner-key
382
- config.api_key['partner-key'] = 'YOUR API KEY'
383
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
384
- #config.api_key_prefix['partner-key'] = 'Bearer'
385
- end
386
-
387
- api_instance = SibApiV3Sdk::CRMApi.new
388
-
389
- id = 'id_example' # String | Note ID to update
390
-
391
- body = SibApiV3Sdk::NoteData.new # NoteData | Note data to update a note
392
-
393
-
394
- begin
395
- #Update a note
396
- result = api_instance.crm_notes_id_patch(id, body)
397
- p result
398
- rescue SibApiV3Sdk::ApiError => e
399
- puts "Exception when calling CRMApi->crm_notes_id_patch: #{e}"
400
- end
401
- ```
402
-
403
- ### Parameters
404
-
405
- Name | Type | Description | Notes
406
- ------------- | ------------- | ------------- | -------------
407
- **id** | **String**| Note ID to update |
408
- **body** | [**NoteData**](NoteData.md)| Note data to update a note |
409
-
410
- ### Return type
411
-
412
- [**Note**](Note.md)
413
-
414
- ### Authorization
415
-
416
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
417
-
418
- ### HTTP request headers
419
-
420
- - **Content-Type**: application/json
421
- - **Accept**: application/json
422
-
423
-
424
-
425
- # **crm_notes_post**
426
- > Note crm_notes_post(body)
427
-
428
- Create a note
429
-
430
- ### Example
431
- ```ruby
432
- # load the gem
433
- require 'sib-api-v3-sdk'
434
- # setup authorization
435
- SibApiV3Sdk.configure do |config|
436
- # Configure API key authorization: api-key
437
- config.api_key['api-key'] = 'YOUR API KEY'
438
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
439
- #config.api_key_prefix['api-key'] = 'Bearer'
440
-
441
- # Configure API key authorization: partner-key
442
- config.api_key['partner-key'] = 'YOUR API KEY'
443
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
444
- #config.api_key_prefix['partner-key'] = 'Bearer'
445
- end
446
-
447
- api_instance = SibApiV3Sdk::CRMApi.new
448
-
449
- body = SibApiV3Sdk::NoteData.new # NoteData | Note data to create a note.
450
-
451
-
452
- begin
453
- #Create a note
454
- result = api_instance.crm_notes_post(body)
455
- p result
456
- rescue SibApiV3Sdk::ApiError => e
457
- puts "Exception when calling CRMApi->crm_notes_post: #{e}"
458
- end
459
- ```
460
-
461
- ### Parameters
462
-
463
- Name | Type | Description | Notes
464
- ------------- | ------------- | ------------- | -------------
465
- **body** | [**NoteData**](NoteData.md)| Note data to create a note. |
466
-
467
- ### Return type
468
-
469
- [**Note**](Note.md)
470
-
471
- ### Authorization
472
-
473
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
474
-
475
- ### HTTP request headers
476
-
477
- - **Content-Type**: application/json
478
- - **Accept**: application/json
479
-
480
-
481
-
482
- # **crm_tasks_id_delete**
483
- > crm_tasks_id_delete(id)
484
-
485
- Delete a task
486
-
487
- ### Example
488
- ```ruby
489
- # load the gem
490
- require 'sib-api-v3-sdk'
491
- # setup authorization
492
- SibApiV3Sdk.configure do |config|
493
- # Configure API key authorization: api-key
494
- config.api_key['api-key'] = 'YOUR API KEY'
495
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
496
- #config.api_key_prefix['api-key'] = 'Bearer'
497
-
498
- # Configure API key authorization: partner-key
499
- config.api_key['partner-key'] = 'YOUR API KEY'
500
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
501
- #config.api_key_prefix['partner-key'] = 'Bearer'
502
- end
503
-
504
- api_instance = SibApiV3Sdk::CRMApi.new
505
-
506
- id = 'id_example' # String |
507
-
508
-
509
- begin
510
- #Delete a task
511
- api_instance.crm_tasks_id_delete(id)
512
- rescue SibApiV3Sdk::ApiError => e
513
- puts "Exception when calling CRMApi->crm_tasks_id_delete: #{e}"
514
- end
515
- ```
516
-
517
- ### Parameters
518
-
519
- Name | Type | Description | Notes
520
- ------------- | ------------- | ------------- | -------------
521
- **id** | **String**| |
522
-
523
- ### Return type
524
-
525
- nil (empty response body)
526
-
527
- ### Authorization
528
-
529
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
530
-
531
- ### HTTP request headers
532
-
533
- - **Content-Type**: application/json
534
- - **Accept**: application/json
535
-
536
-
537
-
538
- # **crm_tasks_id_get**
539
- > Task crm_tasks_id_get(id)
540
-
541
- Get a task
542
-
543
- ### Example
544
- ```ruby
545
- # load the gem
546
- require 'sib-api-v3-sdk'
547
- # setup authorization
548
- SibApiV3Sdk.configure do |config|
549
- # Configure API key authorization: api-key
550
- config.api_key['api-key'] = 'YOUR API KEY'
551
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
552
- #config.api_key_prefix['api-key'] = 'Bearer'
553
-
554
- # Configure API key authorization: partner-key
555
- config.api_key['partner-key'] = 'YOUR API KEY'
556
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
557
- #config.api_key_prefix['partner-key'] = 'Bearer'
558
- end
559
-
560
- api_instance = SibApiV3Sdk::CRMApi.new
561
-
562
- id = 'id_example' # String |
563
-
564
-
565
- begin
566
- #Get a task
567
- result = api_instance.crm_tasks_id_get(id)
568
- p result
569
- rescue SibApiV3Sdk::ApiError => e
570
- puts "Exception when calling CRMApi->crm_tasks_id_get: #{e}"
571
- end
572
- ```
573
-
574
- ### Parameters
575
-
576
- Name | Type | Description | Notes
577
- ------------- | ------------- | ------------- | -------------
578
- **id** | **String**| |
579
-
580
- ### Return type
581
-
582
- [**Task**](Task.md)
583
-
584
- ### Authorization
585
-
586
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
587
-
588
- ### HTTP request headers
589
-
590
- - **Content-Type**: application/json
591
- - **Accept**: application/json
592
-
593
-
594
-
595
- # **crm_tasks_id_patch**
596
- > Task crm_tasks_id_patch(id, body)
597
-
598
- Update a task
599
-
600
- ### Example
601
- ```ruby
602
- # load the gem
603
- require 'sib-api-v3-sdk'
604
- # setup authorization
605
- SibApiV3Sdk.configure do |config|
606
- # Configure API key authorization: api-key
607
- config.api_key['api-key'] = 'YOUR API KEY'
608
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
609
- #config.api_key_prefix['api-key'] = 'Bearer'
610
-
611
- # Configure API key authorization: partner-key
612
- config.api_key['partner-key'] = 'YOUR API KEY'
613
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
614
- #config.api_key_prefix['partner-key'] = 'Bearer'
615
- end
616
-
617
- api_instance = SibApiV3Sdk::CRMApi.new
618
-
619
- id = 'id_example' # String |
620
-
621
- body = SibApiV3Sdk::Body1.new # Body1 | Updated task details.
622
-
623
-
624
- begin
625
- #Update a task
626
- result = api_instance.crm_tasks_id_patch(id, body)
627
- p result
628
- rescue SibApiV3Sdk::ApiError => e
629
- puts "Exception when calling CRMApi->crm_tasks_id_patch: #{e}"
630
- end
631
- ```
632
-
633
- ### Parameters
634
-
635
- Name | Type | Description | Notes
636
- ------------- | ------------- | ------------- | -------------
637
- **id** | **String**| |
638
- **body** | [**Body1**](Body1.md)| Updated task details. |
639
-
640
- ### Return type
641
-
642
- [**Task**](Task.md)
643
-
644
- ### Authorization
645
-
646
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
647
-
648
- ### HTTP request headers
649
-
650
- - **Content-Type**: application/json
651
- - **Accept**: application/json
652
-
653
-
654
-
655
- # **crm_tasks_post**
656
- > Task crm_tasks_post(body)
657
-
658
- Create a task
659
-
660
- ### Example
661
- ```ruby
662
- # load the gem
663
- require 'sib-api-v3-sdk'
664
- # setup authorization
665
- SibApiV3Sdk.configure do |config|
666
- # Configure API key authorization: api-key
667
- config.api_key['api-key'] = 'YOUR API KEY'
668
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
669
- #config.api_key_prefix['api-key'] = 'Bearer'
670
-
671
- # Configure API key authorization: partner-key
672
- config.api_key['partner-key'] = 'YOUR API KEY'
673
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
674
- #config.api_key_prefix['partner-key'] = 'Bearer'
675
- end
676
-
677
- api_instance = SibApiV3Sdk::CRMApi.new
678
-
679
- body = SibApiV3Sdk::Body.new # Body | Task name.
680
-
681
-
682
- begin
683
- #Create a task
684
- result = api_instance.crm_tasks_post(body)
685
- p result
686
- rescue SibApiV3Sdk::ApiError => e
687
- puts "Exception when calling CRMApi->crm_tasks_post: #{e}"
688
- end
689
- ```
690
-
691
- ### Parameters
692
-
693
- Name | Type | Description | Notes
694
- ------------- | ------------- | ------------- | -------------
695
- **body** | [**Body**](Body.md)| Task name. |
696
-
697
- ### Return type
698
-
699
- [**Task**](Task.md)
700
-
701
- ### Authorization
702
-
703
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
704
-
705
- ### HTTP request headers
706
-
707
- - **Content-Type**: application/json
708
- - **Accept**: application/json
709
-
710
-
711
-
712
- # **crm_tasktypes_get**
713
- > TaskTypes crm_tasktypes_get
714
-
715
- Get all task types
716
-
717
- ### Example
718
- ```ruby
719
- # load the gem
720
- require 'sib-api-v3-sdk'
721
- # setup authorization
722
- SibApiV3Sdk.configure do |config|
723
- # Configure API key authorization: api-key
724
- config.api_key['api-key'] = 'YOUR API KEY'
725
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
726
- #config.api_key_prefix['api-key'] = 'Bearer'
727
-
728
- # Configure API key authorization: partner-key
729
- config.api_key['partner-key'] = 'YOUR API KEY'
730
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
731
- #config.api_key_prefix['partner-key'] = 'Bearer'
732
- end
733
-
734
- api_instance = SibApiV3Sdk::CRMApi.new
735
-
736
- begin
737
- #Get all task types
738
- result = api_instance.crm_tasktypes_get
739
- p result
740
- rescue SibApiV3Sdk::ApiError => e
741
- puts "Exception when calling CRMApi->crm_tasktypes_get: #{e}"
742
- end
743
- ```
744
-
745
- ### Parameters
746
- This endpoint does not need any parameter.
747
-
748
- ### Return type
749
-
750
- [**TaskTypes**](TaskTypes.md)
751
-
752
- ### Authorization
753
-
754
- [api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
755
-
756
- ### HTTP request headers
757
-
758
- - **Content-Type**: application/json
759
- - **Accept**: application/json
760
-
761
-
762
-