sib-api-v3-sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/LICENSE.md +21 -0
- data/README.md +349 -0
- data/Rakefile +8 -0
- data/docs/AccountApi.md +55 -0
- data/docs/AddCredits.md +9 -0
- data/docs/AddRemoveContactToList.md +8 -0
- data/docs/AttributesApi.md +160 -0
- data/docs/ContactsApi.md +1310 -0
- data/docs/CreaUpdateFolder.md +8 -0
- data/docs/CreateAttribute.md +12 -0
- data/docs/CreateAttributeEnumemaration.md +9 -0
- data/docs/CreateChild.md +12 -0
- data/docs/CreateContact.md +12 -0
- data/docs/CreateEmailCampaign.md +25 -0
- data/docs/CreateEmailCampaignRecipients.md +9 -0
- data/docs/CreateEmailCampaignSender.md +9 -0
- data/docs/CreateList.md +9 -0
- data/docs/CreateModel.md +8 -0
- data/docs/CreateSender.md +10 -0
- data/docs/CreateSenderIps.md +10 -0
- data/docs/CreateSenderModel.md +10 -0
- data/docs/CreateSmsCampaign.md +12 -0
- data/docs/CreateSmsCampaignRecipients.md +9 -0
- data/docs/CreateSmtpEmail.md +8 -0
- data/docs/CreateSmtpTemplate.md +17 -0
- data/docs/CreateSmtpTemplateSender.md +9 -0
- data/docs/CreateWebhook.md +11 -0
- data/docs/CreatedProcessId.md +8 -0
- data/docs/DeleteHardbounces.md +10 -0
- data/docs/EmailCampaignsApi.md +557 -0
- data/docs/EmailExportRecipients.md +9 -0
- data/docs/ErrorModel.md +9 -0
- data/docs/FoldersApi.md +336 -0
- data/docs/GetAccount.md +15 -0
- data/docs/GetAccountMarketingAutomation.md +9 -0
- data/docs/GetAccountPlan.md +10 -0
- data/docs/GetAccountRelay.md +9 -0
- data/docs/GetAccountRelayData.md +10 -0
- data/docs/GetAggregatedReport.md +19 -0
- data/docs/GetAttributes.md +8 -0
- data/docs/GetAttributesAttributes.md +13 -0
- data/docs/GetAttributesEnumeration.md +9 -0
- data/docs/GetCampaignOverview.md +13 -0
- data/docs/GetCampaignRecipients.md +9 -0
- data/docs/GetCampaignRecipientsExclusionLists.md +9 -0
- data/docs/GetCampaignRecipientsLists.md +9 -0
- data/docs/GetCampaignStats.md +19 -0
- data/docs/GetChildInfo.md +16 -0
- data/docs/GetChildInfoApiKeys.md +10 -0
- data/docs/GetChildInfoCredits.md +9 -0
- data/docs/GetChildInfoIps.md +9 -0
- data/docs/GetChildInfoStatistics.md +10 -0
- data/docs/GetChildrenList.md +8 -0
- data/docs/GetClient.md +11 -0
- data/docs/GetContactCampaignStats.md +15 -0
- data/docs/GetContactCampaignStatsClicked.md +9 -0
- data/docs/GetContactCampaignStatsLinks.md +11 -0
- data/docs/GetContactCampaignStatsMessagesSent.md +9 -0
- data/docs/GetContactCampaignStatsOpened.md +11 -0
- data/docs/GetContactCampaignStatsTransacAttributes.md +10 -0
- data/docs/GetContactCampaignStatsUnsubscriptions.md +9 -0
- data/docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md +9 -0
- data/docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md +10 -0
- data/docs/GetContactDetails.md +15 -0
- data/docs/GetContacts.md +9 -0
- data/docs/GetEmailCampaign.md +27 -0
- data/docs/GetEmailCampaigns.md +9 -0
- data/docs/GetEmailEventReport.md +8 -0
- data/docs/GetEmailEventReportEvents.md +14 -0
- data/docs/GetExtendedCampaignOverview.md +27 -0
- data/docs/GetExtendedCampaignOverviewSender.md +9 -0
- data/docs/GetExtendedCampaignStats.md +12 -0
- data/docs/GetExtendedCampaignStatsLinksStats.md +8 -0
- data/docs/GetExtendedClient.md +12 -0
- data/docs/GetExtendedClientAddress.md +11 -0
- data/docs/GetExtendedContactDetails.md +15 -0
- data/docs/GetExtendedList.md +15 -0
- data/docs/GetExtendedListCampaignStats.md +9 -0
- data/docs/GetFolder.md +12 -0
- data/docs/GetFolderLists.md +9 -0
- data/docs/GetFolders.md +9 -0
- data/docs/GetIp.md +11 -0
- data/docs/GetIpFromSender.md +11 -0
- data/docs/GetIps.md +8 -0
- data/docs/GetIpsFromSender.md +8 -0
- data/docs/GetList.md +11 -0
- data/docs/GetLists.md +9 -0
- data/docs/GetListsFolder.md +9 -0
- data/docs/GetListsLists.md +8 -0
- data/docs/GetProcess.md +11 -0
- data/docs/GetProcesses.md +9 -0
- data/docs/GetReports.md +8 -0
- data/docs/GetReportsReports.md +20 -0
- data/docs/GetSendersList.md +8 -0
- data/docs/GetSendersListIps.md +10 -0
- data/docs/GetSendersListSenders.md +12 -0
- data/docs/GetSmsCampaign.md +16 -0
- data/docs/GetSmsCampaignOverview.md +16 -0
- data/docs/GetSmsCampaignStats.md +14 -0
- data/docs/GetSmsCampaigns.md +9 -0
- data/docs/GetSmsEventReport.md +8 -0
- data/docs/GetSmsEventReportEvents.md +14 -0
- data/docs/GetSmtpTemplateOverview.md +19 -0
- data/docs/GetSmtpTemplateOverviewSender.md +9 -0
- data/docs/GetSmtpTemplates.md +9 -0
- data/docs/GetStatsByDomain.md +7 -0
- data/docs/GetTransacAggregatedSmsReport.md +17 -0
- data/docs/GetTransacSmsReport.md +8 -0
- data/docs/GetTransacSmsReportReports.md +18 -0
- data/docs/GetWebhook.md +14 -0
- data/docs/GetWebhooks.md +8 -0
- data/docs/ListsApi.md +509 -0
- data/docs/ManageIp.md +8 -0
- data/docs/PostContactInfo.md +8 -0
- data/docs/PostContactInfoContacts.md +9 -0
- data/docs/PostSendFailed.md +12 -0
- data/docs/PostSendSmsTestFailed.md +11 -0
- data/docs/ProcessApi.md +117 -0
- data/docs/RemainingCreditModel.md +9 -0
- data/docs/RemainingCreditModelChild.md +9 -0
- data/docs/RemainingCreditModelReseller.md +9 -0
- data/docs/RemoveCredits.md +9 -0
- data/docs/RequestContactExport.md +10 -0
- data/docs/RequestContactImport.md +12 -0
- data/docs/RequestContactImportNewList.md +9 -0
- data/docs/RequestSMSRecipientExport.md +9 -0
- data/docs/ResellerApi.md +491 -0
- data/docs/SMSCampaignsApi.md +560 -0
- data/docs/SMTPApi.md +642 -0
- data/docs/SendEmail.md +15 -0
- data/docs/SendEmailAttachment.md +9 -0
- data/docs/SendReport.md +9 -0
- data/docs/SendReportEmail.md +13 -0
- data/docs/SendSms.md +8 -0
- data/docs/SendSmtpEmail.md +17 -0
- data/docs/SendSmtpEmailAttachment.md +10 -0
- data/docs/SendSmtpEmailBcc.md +9 -0
- data/docs/SendSmtpEmailCc.md +9 -0
- data/docs/SendSmtpEmailReplyTo.md +9 -0
- data/docs/SendSmtpEmailSender.md +9 -0
- data/docs/SendSmtpEmailTo.md +9 -0
- data/docs/SendTemplateEmail.md +8 -0
- data/docs/SendTestEmail.md +8 -0
- data/docs/SendTestSms.md +8 -0
- data/docs/SendTransacSms.md +12 -0
- data/docs/SendersApi.md +326 -0
- data/docs/TransactionalSMSApi.md +249 -0
- data/docs/UpdateCampaignStatus.md +8 -0
- data/docs/UpdateChild.md +13 -0
- data/docs/UpdateContact.md +12 -0
- data/docs/UpdateEmailCampaign.md +24 -0
- data/docs/UpdateEmailCampaignRecipients.md +9 -0
- data/docs/UpdateEmailCampaignSender.md +9 -0
- data/docs/UpdateList.md +9 -0
- data/docs/UpdateSender.md +10 -0
- data/docs/UpdateSmsCampaign.md +12 -0
- data/docs/UpdateSmtpTemplate.md +17 -0
- data/docs/UpdateSmtpTemplateSender.md +9 -0
- data/docs/UpdateWebhook.md +10 -0
- data/docs/WebhooksApi.md +275 -0
- data/git_push.sh +55 -0
- data/lib/sib-api-v3-sdk.rb +196 -0
- data/lib/sib-api-v3-sdk/api/account_api.rb +72 -0
- data/lib/sib-api-v3-sdk/api/attributes_api.rb +181 -0
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +1408 -0
- data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +609 -0
- data/lib/sib-api-v3-sdk/api/folders_api.rb +379 -0
- data/lib/sib-api-v3-sdk/api/lists_api.rb +565 -0
- data/lib/sib-api-v3-sdk/api/process_api.rb +137 -0
- data/lib/sib-api-v3-sdk/api/reseller_api.rb +534 -0
- data/lib/sib-api-v3-sdk/api/senders_api.rb +343 -0
- data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +609 -0
- data/lib/sib-api-v3-sdk/api/smtp_api.rb +699 -0
- data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +280 -0
- data/lib/sib-api-v3-sdk/api/webhooks_api.rb +302 -0
- data/lib/sib-api-v3-sdk/api_client.rb +389 -0
- data/lib/sib-api-v3-sdk/api_error.rb +38 -0
- data/lib/sib-api-v3-sdk/configuration.rb +209 -0
- data/lib/sib-api-v3-sdk/models/add_credits.rb +199 -0
- data/lib/sib-api-v3-sdk/models/add_remove_contact_to_list.rb +191 -0
- data/lib/sib-api-v3-sdk/models/crea_update_folder.rb +189 -0
- data/lib/sib-api-v3-sdk/models/create_attribute.rb +291 -0
- data/lib/sib-api-v3-sdk/models/create_attribute_enumemaration.rb +199 -0
- data/lib/sib-api-v3-sdk/models/create_child.rb +254 -0
- data/lib/sib-api-v3-sdk/models/create_contact.rb +231 -0
- data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +425 -0
- data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +203 -0
- data/lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb +204 -0
- data/lib/sib-api-v3-sdk/models/create_list.rb +209 -0
- data/lib/sib-api-v3-sdk/models/create_model.rb +194 -0
- data/lib/sib-api-v3-sdk/models/create_sender.rb +221 -0
- data/lib/sib-api-v3-sdk/models/create_sender_ips.rb +244 -0
- data/lib/sib-api-v3-sdk/models/create_sender_model.rb +214 -0
- data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +273 -0
- data/lib/sib-api-v3-sdk/models/create_sms_campaign_recipients.rb +213 -0
- data/lib/sib-api-v3-sdk/models/create_smtp_email.rb +194 -0
- data/lib/sib-api-v3-sdk/models/create_smtp_template.rb +288 -0
- data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +204 -0
- data/lib/sib-api-v3-sdk/models/create_webhook.rb +261 -0
- data/lib/sib-api-v3-sdk/models/created_process_id.rb +194 -0
- data/lib/sib-api-v3-sdk/models/delete_hardbounces.rb +209 -0
- data/lib/sib-api-v3-sdk/models/email_export_recipients.rb +237 -0
- data/lib/sib-api-v3-sdk/models/error_model.rb +242 -0
- data/lib/sib-api-v3-sdk/models/get_account.rb +283 -0
- data/lib/sib-api-v3-sdk/models/get_account_marketing_automation.rb +204 -0
- data/lib/sib-api-v3-sdk/models/get_account_plan.rb +269 -0
- data/lib/sib-api-v3-sdk/models/get_account_relay.rb +203 -0
- data/lib/sib-api-v3-sdk/models/get_account_relay_data.rb +224 -0
- data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +359 -0
- data/lib/sib-api-v3-sdk/models/get_attributes.rb +196 -0
- data/lib/sib-api-v3-sdk/models/get_attributes_attributes.rb +301 -0
- data/lib/sib-api-v3-sdk/models/get_attributes_enumeration.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +325 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_recipients.rb +213 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_recipients_exclusion_lists.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_recipients_lists.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +359 -0
- data/lib/sib-api-v3-sdk/models/get_child_info.rb +296 -0
- data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +219 -0
- data/lib/sib-api-v3-sdk/models/get_child_info_credits.rb +199 -0
- data/lib/sib-api-v3-sdk/models/get_child_info_ips.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_child_info_statistics.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_children_list.rb +191 -0
- data/lib/sib-api-v3-sdk/models/get_client.rb +239 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +265 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_clicked.rb +210 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_links.rb +239 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_messages_sent.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +239 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_transac_attributes.rb +224 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions.rb +213 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.rb +224 -0
- data/lib/sib-api-v3-sdk/models/get_contact_details.rb +316 -0
- data/lib/sib-api-v3-sdk/models/get_contacts.rb +210 -0
- data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +552 -0
- data/lib/sib-api-v3-sdk/models/get_email_campaigns.rb +205 -0
- data/lib/sib-api-v3-sdk/models/get_email_event_report.rb +190 -0
- data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +312 -0
- data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +552 -0
- data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview_sender.rb +199 -0
- data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats.rb +255 -0
- data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats_links_stats.rb +194 -0
- data/lib/sib-api-v3-sdk/models/get_extended_client.rb +248 -0
- data/lib/sib-api-v3-sdk/models/get_extended_client_address.rb +239 -0
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +316 -0
- data/lib/sib-api-v3-sdk/models/get_extended_list.rb +309 -0
- data/lib/sib-api-v3-sdk/models/get_extended_list_campaign_stats.rb +208 -0
- data/lib/sib-api-v3-sdk/models/get_folder.rb +254 -0
- data/lib/sib-api-v3-sdk/models/get_folder_lists.rb +210 -0
- data/lib/sib-api-v3-sdk/models/get_folders.rb +200 -0
- data/lib/sib-api-v3-sdk/models/get_ip.rb +239 -0
- data/lib/sib-api-v3-sdk/models/get_ip_from_sender.rb +239 -0
- data/lib/sib-api-v3-sdk/models/get_ips.rb +196 -0
- data/lib/sib-api-v3-sdk/models/get_ips_from_sender.rb +196 -0
- data/lib/sib-api-v3-sdk/models/get_list.rb +239 -0
- data/lib/sib-api-v3-sdk/models/get_lists.rb +211 -0
- data/lib/sib-api-v3-sdk/models/get_lists_folder.rb +209 -0
- data/lib/sib-api-v3-sdk/models/get_lists_lists.rb +188 -0
- data/lib/sib-api-v3-sdk/models/get_process.rb +267 -0
- data/lib/sib-api-v3-sdk/models/get_processes.rb +206 -0
- data/lib/sib-api-v3-sdk/models/get_reports.rb +190 -0
- data/lib/sib-api-v3-sdk/models/get_reports_reports.rb +374 -0
- data/lib/sib-api-v3-sdk/models/get_senders_list.rb +191 -0
- data/lib/sib-api-v3-sdk/models/get_senders_list_ips.rb +224 -0
- data/lib/sib-api-v3-sdk/models/get_senders_list_senders.rb +251 -0
- data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +404 -0
- data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +404 -0
- data/lib/sib-api-v3-sdk/models/get_sms_campaign_stats.rb +284 -0
- data/lib/sib-api-v3-sdk/models/get_sms_campaigns.rb +205 -0
- data/lib/sib-api-v3-sdk/models/get_sms_event_report.rb +190 -0
- data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +311 -0
- data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +391 -0
- data/lib/sib-api-v3-sdk/models/get_smtp_template_overview_sender.rb +199 -0
- data/lib/sib-api-v3-sdk/models/get_smtp_templates.rb +200 -0
- data/lib/sib-api-v3-sdk/models/get_stats_by_domain.rb +179 -0
- data/lib/sib-api-v3-sdk/models/get_transac_aggregated_sms_report.rb +329 -0
- data/lib/sib-api-v3-sdk/models/get_transac_sms_report.rb +190 -0
- data/lib/sib-api-v3-sdk/models/get_transac_sms_report_reports.rb +344 -0
- data/lib/sib-api-v3-sdk/models/get_webhook.rb +356 -0
- data/lib/sib-api-v3-sdk/models/get_webhooks.rb +195 -0
- data/lib/sib-api-v3-sdk/models/manage_ip.rb +189 -0
- data/lib/sib-api-v3-sdk/models/post_contact_info.rb +188 -0
- data/lib/sib-api-v3-sdk/models/post_contact_info_contacts.rb +206 -0
- data/lib/sib-api-v3-sdk/models/post_send_failed.rb +242 -0
- data/lib/sib-api-v3-sdk/models/post_send_sms_test_failed.rb +231 -0
- data/lib/sib-api-v3-sdk/models/remaining_credit_model.rb +197 -0
- data/lib/sib-api-v3-sdk/models/remaining_credit_model_child.rb +209 -0
- data/lib/sib-api-v3-sdk/models/remaining_credit_model_reseller.rb +209 -0
- data/lib/sib-api-v3-sdk/models/remove_credits.rb +199 -0
- data/lib/sib-api-v3-sdk/models/request_contact_export.rb +216 -0
- data/lib/sib-api-v3-sdk/models/request_contact_import.rb +230 -0
- data/lib/sib-api-v3-sdk/models/request_contact_import_new_list.rb +199 -0
- data/lib/sib-api-v3-sdk/models/request_sms_recipient_export.rb +239 -0
- data/lib/sib-api-v3-sdk/models/send_email.rb +274 -0
- data/lib/sib-api-v3-sdk/models/send_email_attachment.rb +215 -0
- data/lib/sib-api-v3-sdk/models/send_report.rb +233 -0
- data/lib/sib-api-v3-sdk/models/send_report_email.rb +278 -0
- data/lib/sib-api-v3-sdk/models/send_sms.rb +193 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +301 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email_attachment.rb +225 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email_bcc.rb +204 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email_cc.rb +204 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to.rb +204 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +204 -0
- data/lib/sib-api-v3-sdk/models/send_smtp_email_to.rb +204 -0
- data/lib/sib-api-v3-sdk/models/send_template_email.rb +194 -0
- data/lib/sib-api-v3-sdk/models/send_test_email.rb +191 -0
- data/lib/sib-api-v3-sdk/models/send_test_sms.rb +191 -0
- data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +282 -0
- data/lib/sib-api-v3-sdk/models/update_campaign_status.rb +221 -0
- data/lib/sib-api-v3-sdk/models/update_child.rb +240 -0
- data/lib/sib-api-v3-sdk/models/update_contact.rb +234 -0
- data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +367 -0
- data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +203 -0
- data/lib/sib-api-v3-sdk/models/update_email_campaign_sender.rb +199 -0
- data/lib/sib-api-v3-sdk/models/update_list.rb +199 -0
- data/lib/sib-api-v3-sdk/models/update_sender.rb +211 -0
- data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +260 -0
- data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +278 -0
- data/lib/sib-api-v3-sdk/models/update_smtp_template_sender.rb +199 -0
- data/lib/sib-api-v3-sdk/models/update_webhook.rb +211 -0
- data/lib/sib-api-v3-sdk/version.rb +15 -0
- data/sib-api-v3-sdk.gemspec +45 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/attributes_api_spec.rb +70 -0
- data/spec/api/contacts_api_spec.rb +335 -0
- data/spec/api/email_campaigns_api_spec.rb +163 -0
- data/spec/api/folders_api_spec.rb +111 -0
- data/spec/api/lists_api_spec.rb +152 -0
- data/spec/api/process_api_spec.rb +60 -0
- data/spec/api/reseller_api_spec.rb +147 -0
- data/spec/api/senders_api_spec.rb +108 -0
- data/spec/api/sms_campaigns_api_spec.rb +163 -0
- data/spec/api/smtp_api_spec.rb +189 -0
- data/spec/api/transactional_sms_api_spec.rb +96 -0
- data/spec/api/webhooks_api_spec.rb +96 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/add_credits_spec.rb +48 -0
- data/spec/models/add_remove_contact_to_list_spec.rb +42 -0
- data/spec/models/crea_update_folder_spec.rb +42 -0
- data/spec/models/create_attribute_enumemaration_spec.rb +48 -0
- data/spec/models/create_attribute_spec.rb +74 -0
- data/spec/models/create_child_spec.rb +66 -0
- data/spec/models/create_contact_spec.rb +66 -0
- data/spec/models/create_email_campaign_recipients_spec.rb +48 -0
- data/spec/models/create_email_campaign_sender_spec.rb +48 -0
- data/spec/models/create_email_campaign_spec.rb +148 -0
- data/spec/models/create_list_spec.rb +48 -0
- data/spec/models/create_model_spec.rb +42 -0
- data/spec/models/create_sender_ips_spec.rb +54 -0
- data/spec/models/create_sender_model_spec.rb +54 -0
- data/spec/models/create_sender_spec.rb +54 -0
- data/spec/models/create_sms_campaign_recipients_spec.rb +48 -0
- data/spec/models/create_sms_campaign_spec.rb +66 -0
- data/spec/models/create_smtp_email_spec.rb +42 -0
- data/spec/models/create_smtp_template_sender_spec.rb +48 -0
- data/spec/models/create_smtp_template_spec.rb +96 -0
- data/spec/models/create_webhook_spec.rb +64 -0
- data/spec/models/created_process_id_spec.rb +42 -0
- data/spec/models/delete_hardbounces_spec.rb +54 -0
- data/spec/models/email_export_recipients_spec.rb +52 -0
- data/spec/models/error_model_spec.rb +52 -0
- data/spec/models/get_account_marketing_automation_spec.rb +48 -0
- data/spec/models/get_account_plan_spec.rb +62 -0
- data/spec/models/get_account_relay_data_spec.rb +54 -0
- data/spec/models/get_account_relay_spec.rb +48 -0
- data/spec/models/get_account_spec.rb +84 -0
- data/spec/models/get_aggregated_report_spec.rb +108 -0
- data/spec/models/get_attributes_attributes_spec.rb +80 -0
- data/spec/models/get_attributes_enumeration_spec.rb +48 -0
- data/spec/models/get_attributes_spec.rb +42 -0
- data/spec/models/get_campaign_overview_spec.rb +80 -0
- data/spec/models/get_campaign_recipients_exclusion_lists_spec.rb +48 -0
- data/spec/models/get_campaign_recipients_lists_spec.rb +48 -0
- data/spec/models/get_campaign_recipients_spec.rb +48 -0
- data/spec/models/get_campaign_stats_spec.rb +108 -0
- data/spec/models/get_child_info_api_keys_spec.rb +54 -0
- data/spec/models/get_child_info_credits_spec.rb +48 -0
- data/spec/models/get_child_info_ips_spec.rb +48 -0
- data/spec/models/get_child_info_spec.rb +90 -0
- data/spec/models/get_child_info_statistics_spec.rb +54 -0
- data/spec/models/get_children_list_spec.rb +42 -0
- data/spec/models/get_client_spec.rb +60 -0
- data/spec/models/get_contact_campaign_stats_clicked_spec.rb +48 -0
- data/spec/models/get_contact_campaign_stats_links_spec.rb +60 -0
- data/spec/models/get_contact_campaign_stats_messages_sent_spec.rb +48 -0
- data/spec/models/get_contact_campaign_stats_opened_spec.rb +60 -0
- data/spec/models/get_contact_campaign_stats_spec.rb +84 -0
- data/spec/models/get_contact_campaign_stats_transac_attributes_spec.rb +54 -0
- data/spec/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription_spec.rb +48 -0
- data/spec/models/get_contact_campaign_stats_unsubscriptions_spec.rb +48 -0
- data/spec/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription_spec.rb +54 -0
- data/spec/models/get_contact_details_spec.rb +84 -0
- data/spec/models/get_contacts_spec.rb +48 -0
- data/spec/models/get_email_campaign_spec.rb +164 -0
- data/spec/models/get_email_campaigns_spec.rb +48 -0
- data/spec/models/get_email_event_report_events_spec.rb +82 -0
- data/spec/models/get_email_event_report_spec.rb +42 -0
- data/spec/models/get_extended_campaign_overview_sender_spec.rb +48 -0
- data/spec/models/get_extended_campaign_overview_spec.rb +164 -0
- data/spec/models/get_extended_campaign_stats_links_stats_spec.rb +42 -0
- data/spec/models/get_extended_campaign_stats_spec.rb +66 -0
- data/spec/models/get_extended_client_address_spec.rb +60 -0
- data/spec/models/get_extended_client_spec.rb +66 -0
- data/spec/models/get_extended_contact_details_spec.rb +84 -0
- data/spec/models/get_extended_list_campaign_stats_spec.rb +48 -0
- data/spec/models/get_extended_list_spec.rb +84 -0
- data/spec/models/get_folder_lists_spec.rb +48 -0
- data/spec/models/get_folder_spec.rb +66 -0
- data/spec/models/get_folders_spec.rb +48 -0
- data/spec/models/get_ip_from_sender_spec.rb +60 -0
- data/spec/models/get_ip_spec.rb +60 -0
- data/spec/models/get_ips_from_sender_spec.rb +42 -0
- data/spec/models/get_ips_spec.rb +42 -0
- data/spec/models/get_list_spec.rb +60 -0
- data/spec/models/get_lists_folder_spec.rb +48 -0
- data/spec/models/get_lists_lists_spec.rb +42 -0
- data/spec/models/get_lists_spec.rb +48 -0
- data/spec/models/get_process_spec.rb +64 -0
- data/spec/models/get_processes_spec.rb +48 -0
- data/spec/models/get_reports_reports_spec.rb +114 -0
- data/spec/models/get_reports_spec.rb +42 -0
- data/spec/models/get_senders_list_ips_spec.rb +54 -0
- data/spec/models/get_senders_list_senders_spec.rb +66 -0
- data/spec/models/get_senders_list_spec.rb +42 -0
- data/spec/models/get_sms_campaign_overview_spec.rb +94 -0
- data/spec/models/get_sms_campaign_spec.rb +94 -0
- data/spec/models/get_sms_campaign_stats_spec.rb +78 -0
- data/spec/models/get_sms_campaigns_spec.rb +48 -0
- data/spec/models/get_sms_event_report_events_spec.rb +82 -0
- data/spec/models/get_sms_event_report_spec.rb +42 -0
- data/spec/models/get_smtp_template_overview_sender_spec.rb +48 -0
- data/spec/models/get_smtp_template_overview_spec.rb +108 -0
- data/spec/models/get_smtp_templates_spec.rb +48 -0
- data/spec/models/get_stats_by_domain_spec.rb +36 -0
- data/spec/models/get_transac_aggregated_sms_report_spec.rb +96 -0
- data/spec/models/get_transac_sms_report_reports_spec.rb +102 -0
- data/spec/models/get_transac_sms_report_spec.rb +42 -0
- data/spec/models/get_webhook_spec.rb +82 -0
- data/spec/models/get_webhooks_spec.rb +42 -0
- data/spec/models/manage_ip_spec.rb +42 -0
- data/spec/models/post_contact_info_contacts_spec.rb +48 -0
- data/spec/models/post_contact_info_spec.rb +42 -0
- data/spec/models/post_send_failed_spec.rb +66 -0
- data/spec/models/post_send_sms_test_failed_spec.rb +60 -0
- data/spec/models/remaining_credit_model_child_spec.rb +48 -0
- data/spec/models/remaining_credit_model_reseller_spec.rb +48 -0
- data/spec/models/remaining_credit_model_spec.rb +48 -0
- data/spec/models/remove_credits_spec.rb +48 -0
- data/spec/models/request_contact_export_spec.rb +54 -0
- data/spec/models/request_contact_import_new_list_spec.rb +48 -0
- data/spec/models/request_contact_import_spec.rb +66 -0
- data/spec/models/request_sms_recipient_export_spec.rb +52 -0
- data/spec/models/send_email_attachment_spec.rb +48 -0
- data/spec/models/send_email_spec.rb +84 -0
- data/spec/models/send_report_email_spec.rb +76 -0
- data/spec/models/send_report_spec.rb +52 -0
- data/spec/models/send_sms_spec.rb +42 -0
- data/spec/models/send_smtp_email_attachment_spec.rb +54 -0
- data/spec/models/send_smtp_email_bcc_spec.rb +48 -0
- data/spec/models/send_smtp_email_cc_spec.rb +48 -0
- data/spec/models/send_smtp_email_reply_to_spec.rb +48 -0
- data/spec/models/send_smtp_email_sender_spec.rb +48 -0
- data/spec/models/send_smtp_email_spec.rb +96 -0
- data/spec/models/send_smtp_email_to_spec.rb +48 -0
- data/spec/models/send_template_email_spec.rb +42 -0
- data/spec/models/send_test_email_spec.rb +42 -0
- data/spec/models/send_test_sms_spec.rb +42 -0
- data/spec/models/send_transac_sms_spec.rb +66 -0
- data/spec/models/update_campaign_status_spec.rb +46 -0
- data/spec/models/update_child_spec.rb +72 -0
- data/spec/models/update_contact_spec.rb +66 -0
- data/spec/models/update_email_campaign_recipients_spec.rb +48 -0
- data/spec/models/update_email_campaign_sender_spec.rb +48 -0
- data/spec/models/update_email_campaign_spec.rb +138 -0
- data/spec/models/update_list_spec.rb +48 -0
- data/spec/models/update_sender_spec.rb +54 -0
- data/spec/models/update_sms_campaign_spec.rb +66 -0
- data/spec/models/update_smtp_template_sender_spec.rb +48 -0
- data/spec/models/update_smtp_template_spec.rb +96 -0
- data/spec/models/update_webhook_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +869 -0
data/docs/SMTPApi.md
ADDED
@@ -0,0 +1,642 @@
|
|
1
|
+
# SibApiV3Sdk::SMTPApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.sendinblue.com/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_smtp_template**](SMTPApi.md#create_smtp_template) | **POST** /smtp/templates | Create an smtp template
|
8
|
+
[**delete_hardbounces**](SMTPApi.md#delete_hardbounces) | **POST** /smtp/deleteHardbounces | Delete hardbounces
|
9
|
+
[**get_aggregated_smtp_report**](SMTPApi.md#get_aggregated_smtp_report) | **GET** /smtp/statistics/aggregatedReport | Get your SMTP activity aggregated over a period of time
|
10
|
+
[**get_email_event_report**](SMTPApi.md#get_email_event_report) | **GET** /smtp/statistics/events | Get all your SMTP activity (unaggregated events)
|
11
|
+
[**get_smtp_report**](SMTPApi.md#get_smtp_report) | **GET** /smtp/statistics/reports | Get your SMTP activity aggregated per day
|
12
|
+
[**get_smtp_template**](SMTPApi.md#get_smtp_template) | **GET** /smtp/templates/{templateId} | Returns the template informations
|
13
|
+
[**get_smtp_templates**](SMTPApi.md#get_smtp_templates) | **GET** /smtp/templates | Get the list of SMTP templates
|
14
|
+
[**send_template**](SMTPApi.md#send_template) | **POST** /smtp/templates/{templateId}/send | Send a template
|
15
|
+
[**send_test_template**](SMTPApi.md#send_test_template) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
|
16
|
+
[**send_transac_email**](SMTPApi.md#send_transac_email) | **POST** /smtp/email | Send a transactional email
|
17
|
+
[**update_smtp_template**](SMTPApi.md#update_smtp_template) | **PUT** /smtp/templates/{templateId} | Updates an smtp templates
|
18
|
+
|
19
|
+
|
20
|
+
# **create_smtp_template**
|
21
|
+
> CreateModel create_smtp_template(smtp_template)
|
22
|
+
|
23
|
+
Create an smtp template
|
24
|
+
|
25
|
+
### Example
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'sib-api-v3-sdk'
|
29
|
+
# setup authorization
|
30
|
+
SibApiV3Sdk.configure do |config|
|
31
|
+
# Configure API key authorization: api-key
|
32
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
33
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
34
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
38
|
+
|
39
|
+
smtp_template = SibApiV3Sdk::CreateSmtpTemplate.new # CreateSmtpTemplate | values to update in smtp template
|
40
|
+
|
41
|
+
|
42
|
+
begin
|
43
|
+
#Create an smtp template
|
44
|
+
result = api_instance.create_smtp_template(smtp_template)
|
45
|
+
p result
|
46
|
+
rescue SibApiV3Sdk::ApiError => e
|
47
|
+
puts "Exception when calling SMTPApi->create_smtp_template: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**smtp_template** | [**CreateSmtpTemplate**](CreateSmtpTemplate.md)| values to update in smtp template |
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
[**CreateModel**](CreateModel.md)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[api-key](../README.md#api-key)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: application/json
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# **delete_hardbounces**
|
73
|
+
> delete_hardbounces(opts)
|
74
|
+
|
75
|
+
Delete hardbounces
|
76
|
+
|
77
|
+
Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures)
|
78
|
+
|
79
|
+
### Example
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'sib-api-v3-sdk'
|
83
|
+
# setup authorization
|
84
|
+
SibApiV3Sdk.configure do |config|
|
85
|
+
# Configure API key authorization: api-key
|
86
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
87
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
88
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
89
|
+
end
|
90
|
+
|
91
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
92
|
+
|
93
|
+
opts = {
|
94
|
+
delete_hardbounces: SibApiV3Sdk::DeleteHardbounces.new # DeleteHardbounces | values to delete hardbounces
|
95
|
+
}
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Delete hardbounces
|
99
|
+
api_instance.delete_hardbounces(opts)
|
100
|
+
rescue SibApiV3Sdk::ApiError => e
|
101
|
+
puts "Exception when calling SMTPApi->delete_hardbounces: #{e}"
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
### Parameters
|
106
|
+
|
107
|
+
Name | Type | Description | Notes
|
108
|
+
------------- | ------------- | ------------- | -------------
|
109
|
+
**delete_hardbounces** | [**DeleteHardbounces**](DeleteHardbounces.md)| values to delete hardbounces | [optional]
|
110
|
+
|
111
|
+
### Return type
|
112
|
+
|
113
|
+
nil (empty response body)
|
114
|
+
|
115
|
+
### Authorization
|
116
|
+
|
117
|
+
[api-key](../README.md#api-key)
|
118
|
+
|
119
|
+
### HTTP request headers
|
120
|
+
|
121
|
+
- **Content-Type**: application/json
|
122
|
+
- **Accept**: application/json
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
# **get_aggregated_smtp_report**
|
127
|
+
> GetAggregatedReport get_aggregated_smtp_report(opts)
|
128
|
+
|
129
|
+
Get your SMTP activity aggregated over a period of time
|
130
|
+
|
131
|
+
### Example
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'sib-api-v3-sdk'
|
135
|
+
# setup authorization
|
136
|
+
SibApiV3Sdk.configure do |config|
|
137
|
+
# Configure API key authorization: api-key
|
138
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
139
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
140
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
141
|
+
end
|
142
|
+
|
143
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
144
|
+
|
145
|
+
opts = {
|
146
|
+
start_date: Date.parse("2013-10-20"), # Date | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
|
147
|
+
end_date: Date.parse("2013-10-20"), # Date | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
|
148
|
+
days: 56, # Integer | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'
|
149
|
+
tag: "tag_example" # String | Tag of the emails
|
150
|
+
}
|
151
|
+
|
152
|
+
begin
|
153
|
+
#Get your SMTP activity aggregated over a period of time
|
154
|
+
result = api_instance.get_aggregated_smtp_report(opts)
|
155
|
+
p result
|
156
|
+
rescue SibApiV3Sdk::ApiError => e
|
157
|
+
puts "Exception when calling SMTPApi->get_aggregated_smtp_report: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
Name | Type | Description | Notes
|
164
|
+
------------- | ------------- | ------------- | -------------
|
165
|
+
**start_date** | **Date**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional]
|
166
|
+
**end_date** | **Date**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional]
|
167
|
+
**days** | **Integer**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional]
|
168
|
+
**tag** | **String**| Tag of the emails | [optional]
|
169
|
+
|
170
|
+
### Return type
|
171
|
+
|
172
|
+
[**GetAggregatedReport**](GetAggregatedReport.md)
|
173
|
+
|
174
|
+
### Authorization
|
175
|
+
|
176
|
+
[api-key](../README.md#api-key)
|
177
|
+
|
178
|
+
### HTTP request headers
|
179
|
+
|
180
|
+
- **Content-Type**: application/json
|
181
|
+
- **Accept**: application/json
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
# **get_email_event_report**
|
186
|
+
> GetEmailEventReport get_email_event_report(opts)
|
187
|
+
|
188
|
+
Get all your SMTP activity (unaggregated events)
|
189
|
+
|
190
|
+
### Example
|
191
|
+
```ruby
|
192
|
+
# load the gem
|
193
|
+
require 'sib-api-v3-sdk'
|
194
|
+
# setup authorization
|
195
|
+
SibApiV3Sdk.configure do |config|
|
196
|
+
# Configure API key authorization: api-key
|
197
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
198
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
199
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
200
|
+
end
|
201
|
+
|
202
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
203
|
+
|
204
|
+
opts = {
|
205
|
+
limit: 50, # Integer | Number limitation for the result returned
|
206
|
+
offset: 0, # Integer | Beginning point in the list to retrieve from.
|
207
|
+
start_date: Date.parse("2013-10-20"), # Date | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
|
208
|
+
end_date: Date.parse("2013-10-20"), # Date | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
|
209
|
+
days: 56, # Integer | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'
|
210
|
+
email: "email_example", # String | Filter the report for a specific email addresses
|
211
|
+
event: "event_example", # String | Filter the report for a specific event type
|
212
|
+
tags: "tags_example", # String | Filter the report for tags (serialized and urlencoded array)
|
213
|
+
message_id: "message_id_example", # String | Filter on a specific message id
|
214
|
+
template_id: "template_id_example" # String | Filter on a specific template id
|
215
|
+
}
|
216
|
+
|
217
|
+
begin
|
218
|
+
#Get all your SMTP activity (unaggregated events)
|
219
|
+
result = api_instance.get_email_event_report(opts)
|
220
|
+
p result
|
221
|
+
rescue SibApiV3Sdk::ApiError => e
|
222
|
+
puts "Exception when calling SMTPApi->get_email_event_report: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
### Parameters
|
227
|
+
|
228
|
+
Name | Type | Description | Notes
|
229
|
+
------------- | ------------- | ------------- | -------------
|
230
|
+
**limit** | **Integer**| Number limitation for the result returned | [optional] [default to 50]
|
231
|
+
**offset** | **Integer**| Beginning point in the list to retrieve from. | [optional] [default to 0]
|
232
|
+
**start_date** | **Date**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional]
|
233
|
+
**end_date** | **Date**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional]
|
234
|
+
**days** | **Integer**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional]
|
235
|
+
**email** | **String**| Filter the report for a specific email addresses | [optional]
|
236
|
+
**event** | **String**| Filter the report for a specific event type | [optional]
|
237
|
+
**tags** | **String**| Filter the report for tags (serialized and urlencoded array) | [optional]
|
238
|
+
**message_id** | **String**| Filter on a specific message id | [optional]
|
239
|
+
**template_id** | **String**| Filter on a specific template id | [optional]
|
240
|
+
|
241
|
+
### Return type
|
242
|
+
|
243
|
+
[**GetEmailEventReport**](GetEmailEventReport.md)
|
244
|
+
|
245
|
+
### Authorization
|
246
|
+
|
247
|
+
[api-key](../README.md#api-key)
|
248
|
+
|
249
|
+
### HTTP request headers
|
250
|
+
|
251
|
+
- **Content-Type**: application/json
|
252
|
+
- **Accept**: application/json
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
# **get_smtp_report**
|
257
|
+
> GetReports get_smtp_report(opts)
|
258
|
+
|
259
|
+
Get your SMTP activity aggregated per day
|
260
|
+
|
261
|
+
### Example
|
262
|
+
```ruby
|
263
|
+
# load the gem
|
264
|
+
require 'sib-api-v3-sdk'
|
265
|
+
# setup authorization
|
266
|
+
SibApiV3Sdk.configure do |config|
|
267
|
+
# Configure API key authorization: api-key
|
268
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
269
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
270
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
271
|
+
end
|
272
|
+
|
273
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
274
|
+
|
275
|
+
opts = {
|
276
|
+
limit: 50, # Integer | Number of documents returned per page
|
277
|
+
offset: 0, # Integer | Index of the first document on the page
|
278
|
+
start_date: Date.parse("2013-10-20"), # Date | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD)
|
279
|
+
end_date: Date.parse("2013-10-20"), # Date | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
|
280
|
+
days: 56, # Integer | Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'
|
281
|
+
tag: "tag_example" # String | Tag of the emails
|
282
|
+
}
|
283
|
+
|
284
|
+
begin
|
285
|
+
#Get your SMTP activity aggregated per day
|
286
|
+
result = api_instance.get_smtp_report(opts)
|
287
|
+
p result
|
288
|
+
rescue SibApiV3Sdk::ApiError => e
|
289
|
+
puts "Exception when calling SMTPApi->get_smtp_report: #{e}"
|
290
|
+
end
|
291
|
+
```
|
292
|
+
|
293
|
+
### Parameters
|
294
|
+
|
295
|
+
Name | Type | Description | Notes
|
296
|
+
------------- | ------------- | ------------- | -------------
|
297
|
+
**limit** | **Integer**| Number of documents returned per page | [optional] [default to 50]
|
298
|
+
**offset** | **Integer**| Index of the first document on the page | [optional] [default to 0]
|
299
|
+
**start_date** | **Date**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) | [optional]
|
300
|
+
**end_date** | **Date**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) | [optional]
|
301
|
+
**days** | **Integer**| Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' | [optional]
|
302
|
+
**tag** | **String**| Tag of the emails | [optional]
|
303
|
+
|
304
|
+
### Return type
|
305
|
+
|
306
|
+
[**GetReports**](GetReports.md)
|
307
|
+
|
308
|
+
### Authorization
|
309
|
+
|
310
|
+
[api-key](../README.md#api-key)
|
311
|
+
|
312
|
+
### HTTP request headers
|
313
|
+
|
314
|
+
- **Content-Type**: application/json
|
315
|
+
- **Accept**: application/json
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
# **get_smtp_template**
|
320
|
+
> GetSmtpTemplateOverview get_smtp_template(template_id)
|
321
|
+
|
322
|
+
Returns the template informations
|
323
|
+
|
324
|
+
### Example
|
325
|
+
```ruby
|
326
|
+
# load the gem
|
327
|
+
require 'sib-api-v3-sdk'
|
328
|
+
# setup authorization
|
329
|
+
SibApiV3Sdk.configure do |config|
|
330
|
+
# Configure API key authorization: api-key
|
331
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
332
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
333
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
334
|
+
end
|
335
|
+
|
336
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
337
|
+
|
338
|
+
template_id = "template_id_example" # String | id of the template
|
339
|
+
|
340
|
+
|
341
|
+
begin
|
342
|
+
#Returns the template informations
|
343
|
+
result = api_instance.get_smtp_template(template_id)
|
344
|
+
p result
|
345
|
+
rescue SibApiV3Sdk::ApiError => e
|
346
|
+
puts "Exception when calling SMTPApi->get_smtp_template: #{e}"
|
347
|
+
end
|
348
|
+
```
|
349
|
+
|
350
|
+
### Parameters
|
351
|
+
|
352
|
+
Name | Type | Description | Notes
|
353
|
+
------------- | ------------- | ------------- | -------------
|
354
|
+
**template_id** | **String**| id of the template |
|
355
|
+
|
356
|
+
### Return type
|
357
|
+
|
358
|
+
[**GetSmtpTemplateOverview**](GetSmtpTemplateOverview.md)
|
359
|
+
|
360
|
+
### Authorization
|
361
|
+
|
362
|
+
[api-key](../README.md#api-key)
|
363
|
+
|
364
|
+
### HTTP request headers
|
365
|
+
|
366
|
+
- **Content-Type**: application/json
|
367
|
+
- **Accept**: application/json
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
# **get_smtp_templates**
|
372
|
+
> GetSmtpTemplates get_smtp_templates(opts)
|
373
|
+
|
374
|
+
Get the list of SMTP templates
|
375
|
+
|
376
|
+
### Example
|
377
|
+
```ruby
|
378
|
+
# load the gem
|
379
|
+
require 'sib-api-v3-sdk'
|
380
|
+
# setup authorization
|
381
|
+
SibApiV3Sdk.configure do |config|
|
382
|
+
# Configure API key authorization: api-key
|
383
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
384
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
385
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
386
|
+
end
|
387
|
+
|
388
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
389
|
+
|
390
|
+
opts = {
|
391
|
+
template_status: true, # BOOLEAN | Filter on the status of the template. Active = true, inactive = false
|
392
|
+
limit: 50, # Integer | Number of documents returned per page
|
393
|
+
offset: 0 # Integer | Index of the first document in the page
|
394
|
+
}
|
395
|
+
|
396
|
+
begin
|
397
|
+
#Get the list of SMTP templates
|
398
|
+
result = api_instance.get_smtp_templates(opts)
|
399
|
+
p result
|
400
|
+
rescue SibApiV3Sdk::ApiError => e
|
401
|
+
puts "Exception when calling SMTPApi->get_smtp_templates: #{e}"
|
402
|
+
end
|
403
|
+
```
|
404
|
+
|
405
|
+
### Parameters
|
406
|
+
|
407
|
+
Name | Type | Description | Notes
|
408
|
+
------------- | ------------- | ------------- | -------------
|
409
|
+
**template_status** | **BOOLEAN**| Filter on the status of the template. Active = true, inactive = false | [optional]
|
410
|
+
**limit** | **Integer**| Number of documents returned per page | [optional] [default to 50]
|
411
|
+
**offset** | **Integer**| Index of the first document in the page | [optional] [default to 0]
|
412
|
+
|
413
|
+
### Return type
|
414
|
+
|
415
|
+
[**GetSmtpTemplates**](GetSmtpTemplates.md)
|
416
|
+
|
417
|
+
### Authorization
|
418
|
+
|
419
|
+
[api-key](../README.md#api-key)
|
420
|
+
|
421
|
+
### HTTP request headers
|
422
|
+
|
423
|
+
- **Content-Type**: application/json
|
424
|
+
- **Accept**: application/json
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
# **send_template**
|
429
|
+
> SendTemplateEmail send_template(template_id, send_email)
|
430
|
+
|
431
|
+
Send a template
|
432
|
+
|
433
|
+
### Example
|
434
|
+
```ruby
|
435
|
+
# load the gem
|
436
|
+
require 'sib-api-v3-sdk'
|
437
|
+
# setup authorization
|
438
|
+
SibApiV3Sdk.configure do |config|
|
439
|
+
# Configure API key authorization: api-key
|
440
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
441
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
442
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
443
|
+
end
|
444
|
+
|
445
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
446
|
+
|
447
|
+
template_id = "template_id_example" # String | Id of the template
|
448
|
+
|
449
|
+
send_email = SibApiV3Sdk::SendEmail.new # SendEmail |
|
450
|
+
|
451
|
+
|
452
|
+
begin
|
453
|
+
#Send a template
|
454
|
+
result = api_instance.send_template(template_id, send_email)
|
455
|
+
p result
|
456
|
+
rescue SibApiV3Sdk::ApiError => e
|
457
|
+
puts "Exception when calling SMTPApi->send_template: #{e}"
|
458
|
+
end
|
459
|
+
```
|
460
|
+
|
461
|
+
### Parameters
|
462
|
+
|
463
|
+
Name | Type | Description | Notes
|
464
|
+
------------- | ------------- | ------------- | -------------
|
465
|
+
**template_id** | **String**| Id of the template |
|
466
|
+
**send_email** | [**SendEmail**](SendEmail.md)| |
|
467
|
+
|
468
|
+
### Return type
|
469
|
+
|
470
|
+
[**SendTemplateEmail**](SendTemplateEmail.md)
|
471
|
+
|
472
|
+
### Authorization
|
473
|
+
|
474
|
+
[api-key](../README.md#api-key)
|
475
|
+
|
476
|
+
### HTTP request headers
|
477
|
+
|
478
|
+
- **Content-Type**: application/json
|
479
|
+
- **Accept**: application/json
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
# **send_test_template**
|
484
|
+
> send_test_template(template_id, send_test_email)
|
485
|
+
|
486
|
+
Send a template to your test list
|
487
|
+
|
488
|
+
### Example
|
489
|
+
```ruby
|
490
|
+
# load the gem
|
491
|
+
require 'sib-api-v3-sdk'
|
492
|
+
# setup authorization
|
493
|
+
SibApiV3Sdk.configure do |config|
|
494
|
+
# Configure API key authorization: api-key
|
495
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
496
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
497
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
498
|
+
end
|
499
|
+
|
500
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
501
|
+
|
502
|
+
template_id = "template_id_example" # String | Id of the template
|
503
|
+
|
504
|
+
send_test_email = SibApiV3Sdk::SendTestEmail.new # SendTestEmail |
|
505
|
+
|
506
|
+
|
507
|
+
begin
|
508
|
+
#Send a template to your test list
|
509
|
+
api_instance.send_test_template(template_id, send_test_email)
|
510
|
+
rescue SibApiV3Sdk::ApiError => e
|
511
|
+
puts "Exception when calling SMTPApi->send_test_template: #{e}"
|
512
|
+
end
|
513
|
+
```
|
514
|
+
|
515
|
+
### Parameters
|
516
|
+
|
517
|
+
Name | Type | Description | Notes
|
518
|
+
------------- | ------------- | ------------- | -------------
|
519
|
+
**template_id** | **String**| Id of the template |
|
520
|
+
**send_test_email** | [**SendTestEmail**](SendTestEmail.md)| |
|
521
|
+
|
522
|
+
### Return type
|
523
|
+
|
524
|
+
nil (empty response body)
|
525
|
+
|
526
|
+
### Authorization
|
527
|
+
|
528
|
+
[api-key](../README.md#api-key)
|
529
|
+
|
530
|
+
### HTTP request headers
|
531
|
+
|
532
|
+
- **Content-Type**: application/json
|
533
|
+
- **Accept**: application/json
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
# **send_transac_email**
|
538
|
+
> CreateSmtpEmail send_transac_email(send_smtp_email)
|
539
|
+
|
540
|
+
Send a transactional email
|
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
|
+
end
|
553
|
+
|
554
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
555
|
+
|
556
|
+
send_smtp_email = SibApiV3Sdk::SendSmtpEmail.new # SendSmtpEmail | Values to send a transactional email
|
557
|
+
|
558
|
+
|
559
|
+
begin
|
560
|
+
#Send a transactional email
|
561
|
+
result = api_instance.send_transac_email(send_smtp_email)
|
562
|
+
p result
|
563
|
+
rescue SibApiV3Sdk::ApiError => e
|
564
|
+
puts "Exception when calling SMTPApi->send_transac_email: #{e}"
|
565
|
+
end
|
566
|
+
```
|
567
|
+
|
568
|
+
### Parameters
|
569
|
+
|
570
|
+
Name | Type | Description | Notes
|
571
|
+
------------- | ------------- | ------------- | -------------
|
572
|
+
**send_smtp_email** | [**SendSmtpEmail**](SendSmtpEmail.md)| Values to send a transactional email |
|
573
|
+
|
574
|
+
### Return type
|
575
|
+
|
576
|
+
[**CreateSmtpEmail**](CreateSmtpEmail.md)
|
577
|
+
|
578
|
+
### Authorization
|
579
|
+
|
580
|
+
[api-key](../README.md#api-key)
|
581
|
+
|
582
|
+
### HTTP request headers
|
583
|
+
|
584
|
+
- **Content-Type**: application/json
|
585
|
+
- **Accept**: application/json
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
# **update_smtp_template**
|
590
|
+
> update_smtp_template(template_id, smtp_template)
|
591
|
+
|
592
|
+
Updates an smtp templates
|
593
|
+
|
594
|
+
### Example
|
595
|
+
```ruby
|
596
|
+
# load the gem
|
597
|
+
require 'sib-api-v3-sdk'
|
598
|
+
# setup authorization
|
599
|
+
SibApiV3Sdk.configure do |config|
|
600
|
+
# Configure API key authorization: api-key
|
601
|
+
config.api_key['api-key'] = 'YOUR API KEY'
|
602
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
603
|
+
#config.api_key_prefix['api-key'] = 'Bearer'
|
604
|
+
end
|
605
|
+
|
606
|
+
api_instance = SibApiV3Sdk::SMTPApi.new
|
607
|
+
|
608
|
+
template_id = "template_id_example" # String | id of the template
|
609
|
+
|
610
|
+
smtp_template = SibApiV3Sdk::UpdateSmtpTemplate.new # UpdateSmtpTemplate | values to update in smtp template
|
611
|
+
|
612
|
+
|
613
|
+
begin
|
614
|
+
#Updates an smtp templates
|
615
|
+
api_instance.update_smtp_template(template_id, smtp_template)
|
616
|
+
rescue SibApiV3Sdk::ApiError => e
|
617
|
+
puts "Exception when calling SMTPApi->update_smtp_template: #{e}"
|
618
|
+
end
|
619
|
+
```
|
620
|
+
|
621
|
+
### Parameters
|
622
|
+
|
623
|
+
Name | Type | Description | Notes
|
624
|
+
------------- | ------------- | ------------- | -------------
|
625
|
+
**template_id** | **String**| id of the template |
|
626
|
+
**smtp_template** | [**UpdateSmtpTemplate**](UpdateSmtpTemplate.md)| values to update in smtp template |
|
627
|
+
|
628
|
+
### Return type
|
629
|
+
|
630
|
+
nil (empty response body)
|
631
|
+
|
632
|
+
### Authorization
|
633
|
+
|
634
|
+
[api-key](../README.md#api-key)
|
635
|
+
|
636
|
+
### HTTP request headers
|
637
|
+
|
638
|
+
- **Content-Type**: application/json
|
639
|
+
- **Accept**: application/json
|
640
|
+
|
641
|
+
|
642
|
+
|