sib-api-v3-sdk 8.1.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +82 -14
- data/docs/Body.md +2 -11
- data/docs/Body1.md +2 -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/ConversationsApi.md +542 -0
- 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/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/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/TasksApi.md +376 -0
- data/docs/TransactionalEmailsApi.md +199 -0
- data/docs/UpdateContact.md +1 -1
- data/docs/UpdateEmailCampaign.md +1 -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 +6 -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 +9 -8
- data/lib/sib-api-v3-sdk/api/files_api.rb +313 -0
- data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +53 -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/tasks_api.rb +375 -0
- data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +195 -0
- data/lib/sib-api-v3-sdk/models/body.rb +9 -114
- data/lib/sib-api-v3-sdk/models/body_1.rb +9 -119
- 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_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_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 +1 -1
- 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 -2
- data/spec/api/companies_api_spec.rb +119 -0
- data/spec/api/contacts_api_spec.rb +2 -0
- data/spec/api/conversations_api_spec.rb +140 -0
- data/spec/api/deals_api_spec.rb +129 -0
- 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/{crm_api_spec.rb → tasks_api_spec.rb} +25 -92
- 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 +1 -55
- 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/models/body_8_spec.rb +71 -0
- data/spec/models/body_9_spec.rb +41 -0
- data/spec/models/body_spec.rb +1 -55
- 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_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_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/upload_image_model_spec.rb +41 -0
- metadata +179 -11
- data/docs/CRMApi.md +0 -762
- data/docs/Contact.md +0 -15
- data/lib/sib-api-v3-sdk/api/crm_api.rb +0 -716
@@ -0,0 +1,313 @@
|
|
1
|
+
=begin
|
2
|
+
#SendinBlue API
|
3
|
+
|
4
|
+
#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
5
|
+
|
6
|
+
OpenAPI spec version: 3.0.0
|
7
|
+
Contact: contact@sendinblue.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.19
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module SibApiV3Sdk
|
16
|
+
class FilesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get all files
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :entity Filter by file entity type
|
25
|
+
# @option opts [String] :entity_ids Filter by file entity IDs
|
26
|
+
# @option opts [Integer] :date_from dateFrom to date range filter type (timestamp in milliseconds)
|
27
|
+
# @option opts [Integer] :date_to dateTo to date range filter type (timestamp in milliseconds)
|
28
|
+
# @option opts [Integer] :offset Index of the first document of the page
|
29
|
+
# @option opts [Integer] :limit Number of documents per page (default to 50)
|
30
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
|
31
|
+
# @return [FileList]
|
32
|
+
def crm_files_get(opts = {})
|
33
|
+
data, _status_code, _headers = crm_files_get_with_http_info(opts)
|
34
|
+
data
|
35
|
+
end
|
36
|
+
|
37
|
+
# Get all files
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :entity Filter by file entity type
|
40
|
+
# @option opts [String] :entity_ids Filter by file entity IDs
|
41
|
+
# @option opts [Integer] :date_from dateFrom to date range filter type (timestamp in milliseconds)
|
42
|
+
# @option opts [Integer] :date_to dateTo to date range filter type (timestamp in milliseconds)
|
43
|
+
# @option opts [Integer] :offset Index of the first document of the page
|
44
|
+
# @option opts [Integer] :limit Number of documents per page
|
45
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
|
46
|
+
# @return [Array<(FileList, Fixnum, Hash)>] FileList data, response status code and response headers
|
47
|
+
def crm_files_get_with_http_info(opts = {})
|
48
|
+
if @api_client.config.debugging
|
49
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.crm_files_get ...'
|
50
|
+
end
|
51
|
+
if @api_client.config.client_side_validation && opts[:'entity'] && !['companies', 'deals', 'contacts'].include?(opts[:'entity'])
|
52
|
+
fail ArgumentError, 'invalid value for "entity", must be one of companies, deals, contacts'
|
53
|
+
end
|
54
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
|
55
|
+
fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
|
56
|
+
end
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/crm/files'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = {}
|
62
|
+
query_params[:'entity'] = opts[:'entity'] if !opts[:'entity'].nil?
|
63
|
+
query_params[:'entityIds'] = opts[:'entity_ids'] if !opts[:'entity_ids'].nil?
|
64
|
+
query_params[:'dateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
|
65
|
+
query_params[:'dateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
|
66
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
67
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
68
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
69
|
+
|
70
|
+
# header parameters
|
71
|
+
header_params = {}
|
72
|
+
# HTTP header 'Accept' (if needed)
|
73
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
74
|
+
# HTTP header 'Content-Type'
|
75
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = {}
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = nil
|
82
|
+
auth_names = ['api-key', 'partner-key']
|
83
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
84
|
+
:header_params => header_params,
|
85
|
+
:query_params => query_params,
|
86
|
+
:form_params => form_params,
|
87
|
+
:body => post_body,
|
88
|
+
:auth_names => auth_names,
|
89
|
+
:return_type => 'FileList')
|
90
|
+
if @api_client.config.debugging
|
91
|
+
@api_client.config.logger.debug "API called: FilesApi#crm_files_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
+
end
|
93
|
+
return data, status_code, headers
|
94
|
+
end
|
95
|
+
# Get file details
|
96
|
+
# @param id File id to get file data.
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [FileData]
|
99
|
+
def crm_files_id_data_get(id, opts = {})
|
100
|
+
data, _status_code, _headers = crm_files_id_data_get_with_http_info(id, opts)
|
101
|
+
data
|
102
|
+
end
|
103
|
+
|
104
|
+
# Get file details
|
105
|
+
# @param id File id to get file data.
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @return [Array<(FileData, Fixnum, Hash)>] FileData data, response status code and response headers
|
108
|
+
def crm_files_id_data_get_with_http_info(id, opts = {})
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.crm_files_id_data_get ...'
|
111
|
+
end
|
112
|
+
# verify the required parameter 'id' is set
|
113
|
+
if @api_client.config.client_side_validation && id.nil?
|
114
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.crm_files_id_data_get"
|
115
|
+
end
|
116
|
+
# resource path
|
117
|
+
local_var_path = '/crm/files/{id}/data'.sub('{' + 'id' + '}', id.to_s)
|
118
|
+
|
119
|
+
# query parameters
|
120
|
+
query_params = {}
|
121
|
+
|
122
|
+
# header parameters
|
123
|
+
header_params = {}
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
126
|
+
# HTTP header 'Content-Type'
|
127
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = nil
|
134
|
+
auth_names = ['api-key', 'partner-key']
|
135
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names,
|
141
|
+
:return_type => 'FileData')
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: FilesApi#crm_files_id_data_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
# Delete a file
|
148
|
+
# @param id File id to delete.
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [nil]
|
151
|
+
def crm_files_id_delete(id, opts = {})
|
152
|
+
crm_files_id_delete_with_http_info(id, opts)
|
153
|
+
nil
|
154
|
+
end
|
155
|
+
|
156
|
+
# Delete a file
|
157
|
+
# @param id File id to delete.
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
160
|
+
def crm_files_id_delete_with_http_info(id, opts = {})
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.crm_files_id_delete ...'
|
163
|
+
end
|
164
|
+
# verify the required parameter 'id' is set
|
165
|
+
if @api_client.config.client_side_validation && id.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.crm_files_id_delete"
|
167
|
+
end
|
168
|
+
# resource path
|
169
|
+
local_var_path = '/crm/files/{id}'.sub('{' + 'id' + '}', id.to_s)
|
170
|
+
|
171
|
+
# query parameters
|
172
|
+
query_params = {}
|
173
|
+
|
174
|
+
# header parameters
|
175
|
+
header_params = {}
|
176
|
+
# HTTP header 'Accept' (if needed)
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
178
|
+
# HTTP header 'Content-Type'
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
180
|
+
|
181
|
+
# form parameters
|
182
|
+
form_params = {}
|
183
|
+
|
184
|
+
# http body (model)
|
185
|
+
post_body = nil
|
186
|
+
auth_names = ['api-key', 'partner-key']
|
187
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
188
|
+
:header_params => header_params,
|
189
|
+
:query_params => query_params,
|
190
|
+
:form_params => form_params,
|
191
|
+
:body => post_body,
|
192
|
+
:auth_names => auth_names)
|
193
|
+
if @api_client.config.debugging
|
194
|
+
@api_client.config.logger.debug "API called: FilesApi#crm_files_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
|
+
end
|
196
|
+
return data, status_code, headers
|
197
|
+
end
|
198
|
+
# Download a file
|
199
|
+
# @param id File id to download.
|
200
|
+
# @param [Hash] opts the optional parameters
|
201
|
+
# @return [FileDownloadableLink]
|
202
|
+
def crm_files_id_get(id, opts = {})
|
203
|
+
data, _status_code, _headers = crm_files_id_get_with_http_info(id, opts)
|
204
|
+
data
|
205
|
+
end
|
206
|
+
|
207
|
+
# Download a file
|
208
|
+
# @param id File id to download.
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @return [Array<(FileDownloadableLink, Fixnum, Hash)>] FileDownloadableLink data, response status code and response headers
|
211
|
+
def crm_files_id_get_with_http_info(id, opts = {})
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.crm_files_id_get ...'
|
214
|
+
end
|
215
|
+
# verify the required parameter 'id' is set
|
216
|
+
if @api_client.config.client_side_validation && id.nil?
|
217
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling FilesApi.crm_files_id_get"
|
218
|
+
end
|
219
|
+
# resource path
|
220
|
+
local_var_path = '/crm/files/{id}'.sub('{' + 'id' + '}', id.to_s)
|
221
|
+
|
222
|
+
# query parameters
|
223
|
+
query_params = {}
|
224
|
+
|
225
|
+
# header parameters
|
226
|
+
header_params = {}
|
227
|
+
# HTTP header 'Accept' (if needed)
|
228
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
229
|
+
# HTTP header 'Content-Type'
|
230
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
231
|
+
|
232
|
+
# form parameters
|
233
|
+
form_params = {}
|
234
|
+
|
235
|
+
# http body (model)
|
236
|
+
post_body = nil
|
237
|
+
auth_names = ['api-key', 'partner-key']
|
238
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
239
|
+
:header_params => header_params,
|
240
|
+
:query_params => query_params,
|
241
|
+
:form_params => form_params,
|
242
|
+
:body => post_body,
|
243
|
+
:auth_names => auth_names,
|
244
|
+
:return_type => 'FileDownloadableLink')
|
245
|
+
if @api_client.config.debugging
|
246
|
+
@api_client.config.logger.debug "API called: FilesApi#crm_files_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
247
|
+
end
|
248
|
+
return data, status_code, headers
|
249
|
+
end
|
250
|
+
# Upload a file
|
251
|
+
# @param file File data to create a file.
|
252
|
+
# @param [Hash] opts the optional parameters
|
253
|
+
# @option opts [String] :deal_id Deal id linked to a file
|
254
|
+
# @option opts [Integer] :contact_id Contact id linked to a file
|
255
|
+
# @option opts [String] :company_id Company id linked to a file
|
256
|
+
# @return [FileData]
|
257
|
+
def crm_files_post(file, opts = {})
|
258
|
+
data, _status_code, _headers = crm_files_post_with_http_info(file, opts)
|
259
|
+
data
|
260
|
+
end
|
261
|
+
|
262
|
+
# Upload a file
|
263
|
+
# @param file File data to create a file.
|
264
|
+
# @param [Hash] opts the optional parameters
|
265
|
+
# @option opts [String] :deal_id Deal id linked to a file
|
266
|
+
# @option opts [Integer] :contact_id Contact id linked to a file
|
267
|
+
# @option opts [String] :company_id Company id linked to a file
|
268
|
+
# @return [Array<(FileData, Fixnum, Hash)>] FileData data, response status code and response headers
|
269
|
+
def crm_files_post_with_http_info(file, opts = {})
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug 'Calling API: FilesApi.crm_files_post ...'
|
272
|
+
end
|
273
|
+
# verify the required parameter 'file' is set
|
274
|
+
if @api_client.config.client_side_validation && file.nil?
|
275
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.crm_files_post"
|
276
|
+
end
|
277
|
+
# resource path
|
278
|
+
local_var_path = '/crm/files'
|
279
|
+
|
280
|
+
# query parameters
|
281
|
+
query_params = {}
|
282
|
+
|
283
|
+
# header parameters
|
284
|
+
header_params = {}
|
285
|
+
# HTTP header 'Accept' (if needed)
|
286
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
287
|
+
# HTTP header 'Content-Type'
|
288
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
289
|
+
|
290
|
+
# form parameters
|
291
|
+
form_params = {}
|
292
|
+
form_params['file'] = file
|
293
|
+
form_params['dealId'] = opts[:'deal_id'] if !opts[:'deal_id'].nil?
|
294
|
+
form_params['contactId'] = opts[:'contact_id'] if !opts[:'contact_id'].nil?
|
295
|
+
form_params['companyId'] = opts[:'company_id'] if !opts[:'company_id'].nil?
|
296
|
+
|
297
|
+
# http body (model)
|
298
|
+
post_body = nil
|
299
|
+
auth_names = ['api-key', 'partner-key']
|
300
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
301
|
+
:header_params => header_params,
|
302
|
+
:query_params => query_params,
|
303
|
+
:form_params => form_params,
|
304
|
+
:body => post_body,
|
305
|
+
:auth_names => auth_names,
|
306
|
+
:return_type => 'FileData')
|
307
|
+
if @api_client.config.debugging
|
308
|
+
@api_client.config.logger.debug "API called: FilesApi#crm_files_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
309
|
+
end
|
310
|
+
return data, status_code, headers
|
311
|
+
end
|
312
|
+
end
|
313
|
+
end
|
@@ -28,8 +28,60 @@ module SibApiV3Sdk
|
|
28
28
|
@api_client.default_headers['User-Agent'] = @user_agent
|
29
29
|
end
|
30
30
|
end
|
31
|
+
# Retrieve inbound attachment with download token.
|
32
|
+
# This endpoint will retrieve inbound attachment with download token.
|
33
|
+
# @param download_token Token to fetch a particular attachment
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [File]
|
36
|
+
def get_inbound_email_attachment(download_token, opts = {})
|
37
|
+
data, _status_code, _headers = get_inbound_email_attachment_with_http_info(download_token, opts)
|
38
|
+
data
|
39
|
+
end
|
40
|
+
|
41
|
+
# Retrieve inbound attachment with download token.
|
42
|
+
# This endpoint will retrieve inbound attachment with download token.
|
43
|
+
# @param download_token Token to fetch a particular attachment
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
46
|
+
def get_inbound_email_attachment_with_http_info(download_token, opts = {})
|
47
|
+
if @api_client.config.debugging
|
48
|
+
@api_client.config.logger.debug 'Calling API: InboundParsingApi.get_inbound_email_attachment ...'
|
49
|
+
end
|
50
|
+
# verify the required parameter 'download_token' is set
|
51
|
+
if @api_client.config.client_side_validation && download_token.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'download_token' when calling InboundParsingApi.get_inbound_email_attachment"
|
53
|
+
end
|
54
|
+
# resource path
|
55
|
+
local_var_path = '/inbound/attachments/{downloadToken}'.sub('{' + 'downloadToken' + '}', download_token.to_s)
|
31
56
|
|
32
|
-
|
57
|
+
# query parameters
|
58
|
+
query_params = {}
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = nil
|
72
|
+
auth_names = ['api-key', 'partner-key']
|
73
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
74
|
+
:header_params => header_params,
|
75
|
+
:query_params => query_params,
|
76
|
+
:form_params => form_params,
|
77
|
+
:body => post_body,
|
78
|
+
:auth_names => auth_names,
|
79
|
+
:return_type => 'File')
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: InboundParsingApi#get_inbound_email_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
33
85
|
# Get the list of all the events for the received emails.
|
34
86
|
# This endpoint will show the list of all the events for the received emails.
|
35
87
|
# @param [Hash] opts the optional parameters
|
@@ -80,7 +80,7 @@ module SibApiV3Sdk
|
|
80
80
|
end
|
81
81
|
# Get the list of all the sub-accounts of the master account.
|
82
82
|
# This endpoint will provide the list all the sub-accounts of the master account.
|
83
|
-
# @param offset
|
83
|
+
# @param offset Index of the first sub-account in the page
|
84
84
|
# @param limit Number of sub-accounts to be displayed on each page
|
85
85
|
# @param [Hash] opts the optional parameters
|
86
86
|
# @return [SubAccountsResponse]
|
@@ -91,7 +91,7 @@ module SibApiV3Sdk
|
|
91
91
|
|
92
92
|
# Get the list of all the sub-accounts of the master account.
|
93
93
|
# This endpoint will provide the list all the sub-accounts of the master account.
|
94
|
-
# @param offset
|
94
|
+
# @param offset Index of the first sub-account in the page
|
95
95
|
# @param limit Number of sub-accounts to be displayed on each page
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
97
|
# @return [Array<(SubAccountsResponse, Fixnum, Hash)>] SubAccountsResponse data, response status code and response headers
|
@@ -192,7 +192,7 @@ module SibApiV3Sdk
|
|
192
192
|
return data, status_code, headers
|
193
193
|
end
|
194
194
|
# Get sub-account details
|
195
|
-
# This endpoint will provide the details
|
195
|
+
# This endpoint will provide the details for the specified sub-account company
|
196
196
|
# @param id Id of the sub-account organization
|
197
197
|
# @param [Hash] opts the optional parameters
|
198
198
|
# @return [SubAccountDetailsResponse]
|
@@ -202,7 +202,7 @@ module SibApiV3Sdk
|
|
202
202
|
end
|
203
203
|
|
204
204
|
# Get sub-account details
|
205
|
-
# This endpoint will provide the details
|
205
|
+
# This endpoint will provide the details for the specified sub-account company
|
206
206
|
# @param id Id of the sub-account organization
|
207
207
|
# @param [Hash] opts the optional parameters
|
208
208
|
# @return [Array<(SubAccountDetailsResponse, Fixnum, Hash)>] SubAccountDetailsResponse data, response status code and response headers
|
@@ -308,7 +308,7 @@ module SibApiV3Sdk
|
|
308
308
|
# This endpoint will create a new sub-account under a master account
|
309
309
|
# @param sub_account_create values to create new sub-account
|
310
310
|
# @param [Hash] opts the optional parameters
|
311
|
-
# @return [
|
311
|
+
# @return [CreateSubAccountResponse]
|
312
312
|
def corporate_sub_account_post(sub_account_create, opts = {})
|
313
313
|
data, _status_code, _headers = corporate_sub_account_post_with_http_info(sub_account_create, opts)
|
314
314
|
data
|
@@ -318,7 +318,7 @@ module SibApiV3Sdk
|
|
318
318
|
# This endpoint will create a new sub-account under a master account
|
319
319
|
# @param sub_account_create values to create new sub-account
|
320
320
|
# @param [Hash] opts the optional parameters
|
321
|
-
# @return [Array<(
|
321
|
+
# @return [Array<(CreateSubAccountResponse, Fixnum, Hash)>] CreateSubAccountResponse data, response status code and response headers
|
322
322
|
def corporate_sub_account_post_with_http_info(sub_account_create, opts = {})
|
323
323
|
if @api_client.config.debugging
|
324
324
|
@api_client.config.logger.debug 'Calling API: MasterAccountApi.corporate_sub_account_post ...'
|
@@ -352,14 +352,14 @@ module SibApiV3Sdk
|
|
352
352
|
:form_params => form_params,
|
353
353
|
:body => post_body,
|
354
354
|
:auth_names => auth_names,
|
355
|
-
:return_type => '
|
355
|
+
:return_type => 'CreateSubAccountResponse')
|
356
356
|
if @api_client.config.debugging
|
357
357
|
@api_client.config.logger.debug "API called: MasterAccountApi#corporate_sub_account_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
358
358
|
end
|
359
359
|
return data, status_code, headers
|
360
360
|
end
|
361
361
|
# Generate SSO token to access Sendinblue
|
362
|
-
# This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced
|
362
|
+
# This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
|
363
363
|
# @param sso_token_request Values to generate SSO token for sub-account
|
364
364
|
# @param [Hash] opts the optional parameters
|
365
365
|
# @return [GetSsoToken]
|
@@ -369,7 +369,7 @@ module SibApiV3Sdk
|
|
369
369
|
end
|
370
370
|
|
371
371
|
# Generate SSO token to access Sendinblue
|
372
|
-
# This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced
|
372
|
+
# This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
|
373
373
|
# @param sso_token_request Values to generate SSO token for sub-account
|
374
374
|
# @param [Hash] opts the optional parameters
|
375
375
|
# @return [Array<(GetSsoToken, Fixnum, Hash)>] GetSsoToken data, response status code and response headers
|