From 28afd8ce0899d5611e6f998592385f232eddac9d Mon Sep 17 00:00:00 2001 From: aakanksha-sib Date: Fri, 20 Mar 2020 12:41:24 +0530 Subject: [PATCH 1/2] Swagger resynch: swagger codegen v2.4.12 --- .gitignore | 2 +- .swagger-codegen/VERSION | 2 +- LICENSE.md | 2 +- README.md | 22 +- docs/AbTestCampaignResult.md | 15 + docs/CreateContact.md | 2 +- docs/CreateEmailCampaign.md | 3 + docs/CreateEmailCampaignSender.md | 1 + docs/CreateSmtpTemplateSender.md | 1 + docs/EmailCampaignsApi.md | 126 +++- ...on.md => GetChildAccountCreationStatus.md} | 5 +- docs/GetChildrenList.md | 1 + docs/GetContactCampaignStatsClicked.md | 2 +- docs/GetContactCampaignStatsLinks.md | 13 - .../GetContactCampaignStatsUnsubscriptions.md | 4 +- docs/GetDeviceBrowserStats.md | 13 + docs/GetEmailEventReportEvents.md | 2 +- docs/GetExtendedCampaignOverviewSender.md | 1 + docs/GetExtendedCampaignStats.md | 2 + ...etExtendedContactDetailsStatisticsLinks.md | 2 +- ...tExtendedContactDetailsStatisticsOpened.md | 2 +- ...sticsUnsubscriptionsAdminUnsubscription.md | 2 +- ...isticsUnsubscriptionsUserUnsubscription.md | 2 +- docs/GetReportsReports.md | 2 +- ...ubscription.md => GetSharedTemplateUrl.md} | 6 +- docs/GetSmsEventReportEvents.md | 2 +- docs/GetSmtpTemplateOverviewSender.md | 1 + docs/GetStatsByBrowser.md | 9 + docs/GetStatsByDevice.md | 13 + docs/GetTransacBlockedContacts.md | 11 + docs/GetTransacBlockedContactsContacts.md | 13 + docs/GetTransacBlockedContactsReason.md | 11 + docs/GetTransacEmailContent.md | 2 +- ...GetTransacEmailsListTransactionalEmails.md | 2 +- docs/GetTransacSmsReportReports.md | 2 +- docs/RequestContactExport.md | 3 +- ...RequestContactExportCustomContactFilter.md | 15 + docs/ResellerApi.md | 74 ++- docs/SMTPApi.md | 184 +++++- docs/SendSmtpEmail.md | 2 +- docs/SendSmtpEmailBcc.md | 2 +- docs/SendSmtpEmailCc.md | 2 +- docs/SendSmtpEmailReplyTo.md | 2 +- docs/SendSmtpEmailSender.md | 2 +- docs/SendSmtpEmailTo.md | 2 +- docs/UpdateContact.md | 2 +- docs/UpdateEmailCampaign.md | 3 + docs/UpdateEmailCampaignSender.md | 1 + docs/UpdateSmtpTemplateSender.md | 1 + git_push.sh | 52 ++ setup.py | 12 +- sib_api_v3_sdk/__init__.py | 15 +- sib_api_v3_sdk/api/account_api.py | 20 +- sib_api_v3_sdk/api/attributes_api.py | 74 +-- sib_api_v3_sdk/api/contacts_api.py | 470 +++++++-------- sib_api_v3_sdk/api/email_campaigns_api.py | 384 +++++++++--- sib_api_v3_sdk/api/folders_api.py | 110 ++-- sib_api_v3_sdk/api/lists_api.py | 164 ++--- sib_api_v3_sdk/api/process_api.py | 38 +- sib_api_v3_sdk/api/reseller_api.py | 401 ++++++++----- sib_api_v3_sdk/api/senders_api.py | 110 ++-- sib_api_v3_sdk/api/sms_campaigns_api.py | 182 +++--- sib_api_v3_sdk/api/smtp_api.py | 564 ++++++++++++++---- sib_api_v3_sdk/api/transactional_sms_api.py | 74 +-- sib_api_v3_sdk/api/webhooks_api.py | 92 +-- sib_api_v3_sdk/api_client.py | 47 +- sib_api_v3_sdk/configuration.py | 47 +- sib_api_v3_sdk/models/__init__.py | 15 +- .../models/ab_test_campaign_result.py | 269 +++++++++ sib_api_v3_sdk/models/add_child_domain.py | 5 +- sib_api_v3_sdk/models/add_contact_to_list.py | 5 +- sib_api_v3_sdk/models/add_credits.py | 5 +- sib_api_v3_sdk/models/create_attribute.py | 7 +- .../models/create_attribute_enumeration.py | 5 +- sib_api_v3_sdk/models/create_child.py | 5 +- sib_api_v3_sdk/models/create_contact.py | 9 +- .../models/create_email_campaign.py | 102 +++- .../create_email_campaign_recipients.py | 5 +- .../models/create_email_campaign_sender.py | 39 +- sib_api_v3_sdk/models/create_list.py | 5 +- sib_api_v3_sdk/models/create_model.py | 5 +- sib_api_v3_sdk/models/create_reseller.py | 5 +- sib_api_v3_sdk/models/create_sender.py | 7 +- sib_api_v3_sdk/models/create_sender_ips.py | 5 +- sib_api_v3_sdk/models/create_sender_model.py | 5 +- sib_api_v3_sdk/models/create_sms_campaign.py | 7 +- .../models/create_sms_campaign_recipients.py | 5 +- sib_api_v3_sdk/models/create_smtp_email.py | 5 +- sib_api_v3_sdk/models/create_smtp_template.py | 7 +- .../models/create_smtp_template_sender.py | 39 +- .../models/create_update_contact_model.py | 5 +- sib_api_v3_sdk/models/create_update_folder.py | 5 +- sib_api_v3_sdk/models/create_webhook.py | 5 +- sib_api_v3_sdk/models/created_process_id.py | 5 +- sib_api_v3_sdk/models/delete_hardbounces.py | 5 +- .../models/email_export_recipients.py | 5 +- sib_api_v3_sdk/models/error_model.py | 5 +- sib_api_v3_sdk/models/get_account.py | 11 +- .../get_account_marketing_automation.py | 5 +- sib_api_v3_sdk/models/get_account_plan.py | 5 +- sib_api_v3_sdk/models/get_account_relay.py | 7 +- .../models/get_account_relay_data.py | 5 +- .../models/get_aggregated_report.py | 5 +- sib_api_v3_sdk/models/get_attributes.py | 7 +- .../models/get_attributes_attributes.py | 7 +- .../models/get_attributes_enumeration.py | 5 +- .../models/get_campaign_overview.py | 5 +- .../models/get_campaign_recipients.py | 5 +- sib_api_v3_sdk/models/get_campaign_stats.py | 5 +- .../get_child_account_creation_status.py | 118 ++++ sib_api_v3_sdk/models/get_child_domain.py | 5 +- sib_api_v3_sdk/models/get_child_domains.py | 5 +- sib_api_v3_sdk/models/get_child_info.py | 10 +- .../models/get_child_info_api_keys.py | 8 +- .../models/get_child_info_api_keys_v2.py | 5 +- .../models/get_child_info_api_keys_v3.py | 5 +- .../models/get_child_info_credits.py | 5 +- .../models/get_child_info_statistics.py | 5 +- sib_api_v3_sdk/models/get_children_list.py | 40 +- sib_api_v3_sdk/models/get_client.py | 5 +- .../models/get_contact_campaign_stats.py | 11 +- .../get_contact_campaign_stats_clicked.py | 13 +- .../get_contact_campaign_stats_links.py | 202 ------- .../get_contact_campaign_stats_opened.py | 5 +- ...ntact_campaign_stats_transac_attributes.py | 5 +- ..._contact_campaign_stats_unsubscriptions.py | 20 +- ...ats_unsubscriptions_user_unsubscription.py | 173 ------ sib_api_v3_sdk/models/get_contact_details.py | 5 +- sib_api_v3_sdk/models/get_contacts.py | 5 +- .../models/get_device_browser_stats.py | 205 +++++++ sib_api_v3_sdk/models/get_email_campaign.py | 8 +- sib_api_v3_sdk/models/get_email_campaigns.py | 5 +- .../models/get_email_event_report.py | 7 +- .../models/get_email_event_report_events.py | 37 +- .../models/get_extended_campaign_overview.py | 8 +- .../get_extended_campaign_overview_sender.py | 39 +- .../models/get_extended_campaign_stats.py | 71 ++- sib_api_v3_sdk/models/get_extended_client.py | 8 +- .../models/get_extended_client_address.py | 5 +- .../models/get_extended_contact_details.py | 8 +- ...get_extended_contact_details_statistics.py | 10 +- ...nded_contact_details_statistics_clicked.py | 7 +- ...tended_contact_details_statistics_links.py | 10 +- ...ontact_details_statistics_messages_sent.py | 5 +- ...ended_contact_details_statistics_opened.py | 10 +- ...tact_details_statistics_unsubscriptions.py | 8 +- ...cs_unsubscriptions_admin_unsubscription.py | 10 +- ...ics_unsubscriptions_user_unsubscription.py | 10 +- sib_api_v3_sdk/models/get_extended_list.py | 8 +- .../get_extended_list_campaign_stats.py | 7 +- sib_api_v3_sdk/models/get_folder.py | 5 +- sib_api_v3_sdk/models/get_folder_lists.py | 5 +- sib_api_v3_sdk/models/get_folders.py | 5 +- sib_api_v3_sdk/models/get_ip.py | 5 +- sib_api_v3_sdk/models/get_ip_from_sender.py | 5 +- sib_api_v3_sdk/models/get_ips.py | 7 +- sib_api_v3_sdk/models/get_ips_from_sender.py | 7 +- sib_api_v3_sdk/models/get_list.py | 5 +- sib_api_v3_sdk/models/get_lists.py | 5 +- sib_api_v3_sdk/models/get_process.py | 5 +- sib_api_v3_sdk/models/get_processes.py | 7 +- sib_api_v3_sdk/models/get_reports.py | 7 +- sib_api_v3_sdk/models/get_reports_reports.py | 37 +- sib_api_v3_sdk/models/get_senders_list.py | 7 +- sib_api_v3_sdk/models/get_senders_list_ips.py | 5 +- .../models/get_senders_list_senders.py | 7 +- ...cription.py => get_shared_template_url.py} | 76 +-- sib_api_v3_sdk/models/get_sms_campaign.py | 7 +- .../models/get_sms_campaign_overview.py | 5 +- .../models/get_sms_campaign_stats.py | 5 +- sib_api_v3_sdk/models/get_sms_campaigns.py | 5 +- sib_api_v3_sdk/models/get_sms_event_report.py | 7 +- .../models/get_sms_event_report_events.py | 37 +- .../models/get_smtp_template_overview.py | 7 +- .../get_smtp_template_overview_sender.py | 39 +- sib_api_v3_sdk/models/get_smtp_templates.py | 7 +- sib_api_v3_sdk/models/get_sso_token.py | 5 +- sib_api_v3_sdk/models/get_stats_by_browser.py | 87 +++ sib_api_v3_sdk/models/get_stats_by_device.py | 201 +++++++ sib_api_v3_sdk/models/get_stats_by_domain.py | 7 +- .../get_transac_aggregated_sms_report.py | 5 +- .../models/get_transac_blocked_contacts.py | 143 +++++ .../get_transac_blocked_contacts_contacts.py | 203 +++++++ .../get_transac_blocked_contacts_reason.py | 151 +++++ .../models/get_transac_email_content.py | 39 +- .../get_transac_email_content_events.py | 5 +- .../models/get_transac_emails_list.py | 7 +- ...ransac_emails_list_transactional_emails.py | 37 +- .../models/get_transac_sms_report.py | 7 +- .../models/get_transac_sms_report_reports.py | 37 +- sib_api_v3_sdk/models/get_webhook.py | 5 +- sib_api_v3_sdk/models/get_webhooks.py | 5 +- sib_api_v3_sdk/models/manage_ip.py | 5 +- sib_api_v3_sdk/models/post_contact_info.py | 7 +- .../models/post_contact_info_contacts.py | 5 +- sib_api_v3_sdk/models/post_send_failed.py | 5 +- .../models/post_send_sms_test_failed.py | 5 +- .../models/remaining_credit_model.py | 8 +- .../models/remaining_credit_model_child.py | 5 +- .../models/remaining_credit_model_reseller.py | 5 +- .../models/remove_contact_from_list.py | 5 +- sib_api_v3_sdk/models/remove_credits.py | 5 +- .../models/request_contact_export.py | 42 +- ...st_contact_export_custom_contact_filter.py | 275 +++++++++ .../models/request_contact_import.py | 7 +- .../models/request_contact_import_new_list.py | 5 +- .../models/request_sms_recipient_export.py | 5 +- sib_api_v3_sdk/models/send_email.py | 7 +- .../models/send_email_attachment.py | 9 +- sib_api_v3_sdk/models/send_report.py | 7 +- sib_api_v3_sdk/models/send_report_email.py | 5 +- sib_api_v3_sdk/models/send_sms.py | 5 +- sib_api_v3_sdk/models/send_smtp_email.py | 16 +- .../models/send_smtp_email_attachment.py | 9 +- sib_api_v3_sdk/models/send_smtp_email_bcc.py | 9 +- sib_api_v3_sdk/models/send_smtp_email_cc.py | 9 +- .../models/send_smtp_email_reply_to.py | 9 +- .../models/send_smtp_email_sender.py | 9 +- sib_api_v3_sdk/models/send_smtp_email_to.py | 9 +- sib_api_v3_sdk/models/send_template_email.py | 5 +- sib_api_v3_sdk/models/send_test_email.py | 5 +- sib_api_v3_sdk/models/send_test_sms.py | 5 +- sib_api_v3_sdk/models/send_transac_sms.py | 5 +- sib_api_v3_sdk/models/update_attribute.py | 7 +- .../models/update_attribute_enumeration.py | 5 +- .../models/update_campaign_status.py | 5 +- sib_api_v3_sdk/models/update_child.py | 5 +- .../models/update_child_account_status.py | 5 +- sib_api_v3_sdk/models/update_child_domain.py | 5 +- sib_api_v3_sdk/models/update_contact.py | 9 +- .../models/update_email_campaign.py | 102 +++- .../update_email_campaign_recipients.py | 5 +- .../models/update_email_campaign_sender.py | 39 +- sib_api_v3_sdk/models/update_list.py | 5 +- sib_api_v3_sdk/models/update_sender.py | 7 +- sib_api_v3_sdk/models/update_sms_campaign.py | 7 +- sib_api_v3_sdk/models/update_smtp_template.py | 7 +- .../models/update_smtp_template_sender.py | 39 +- sib_api_v3_sdk/models/update_webhook.py | 5 +- sib_api_v3_sdk/rest.py | 2 +- ...nks.py => test_ab_test_campaign_result.py} | 14 +- test/test_account_api.py | 2 +- test/test_add_child_domain.py | 2 +- test/test_add_contact_to_list.py | 2 +- test/test_add_credits.py | 2 +- test/test_attributes_api.py | 2 +- test/test_contacts_api.py | 2 +- test/test_create_attribute.py | 2 +- test/test_create_attribute_enumeration.py | 2 +- test/test_create_child.py | 2 +- test/test_create_contact.py | 2 +- test/test_create_email_campaign.py | 2 +- test/test_create_email_campaign_recipients.py | 2 +- test/test_create_email_campaign_sender.py | 2 +- test/test_create_list.py | 2 +- test/test_create_model.py | 2 +- test/test_create_reseller.py | 2 +- test/test_create_sender.py | 2 +- test/test_create_sender_ips.py | 2 +- test/test_create_sender_model.py | 2 +- test/test_create_sms_campaign.py | 2 +- test/test_create_sms_campaign_recipients.py | 2 +- test/test_create_smtp_email.py | 2 +- test/test_create_smtp_template.py | 2 +- test/test_create_smtp_template_sender.py | 2 +- test/test_create_update_contact_model.py | 2 +- test/test_create_update_folder.py | 2 +- test/test_create_webhook.py | 2 +- test/test_created_process_id.py | 2 +- test/test_delete_hardbounces.py | 2 +- test/test_email_campaigns_api.py | 18 +- test/test_email_export_recipients.py | 2 +- test/test_error_model.py | 2 +- test/test_folders_api.py | 2 +- test/test_get_account.py | 2 +- test/test_get_account_marketing_automation.py | 2 +- test/test_get_account_plan.py | 2 +- test/test_get_account_relay.py | 2 +- test/test_get_account_relay_data.py | 2 +- test/test_get_aggregated_report.py | 2 +- test/test_get_attributes.py | 2 +- test/test_get_attributes_attributes.py | 2 +- test/test_get_attributes_enumeration.py | 2 +- test/test_get_campaign_overview.py | 2 +- test/test_get_campaign_recipients.py | 2 +- test/test_get_campaign_stats.py | 2 +- ...test_get_child_account_creation_status.py} | 14 +- test/test_get_child_domain.py | 2 +- test/test_get_child_domains.py | 2 +- test/test_get_child_info.py | 2 +- test/test_get_child_info_api_keys.py | 2 +- test/test_get_child_info_api_keys_v2.py | 2 +- test/test_get_child_info_api_keys_v3.py | 2 +- test/test_get_child_info_credits.py | 2 +- test/test_get_child_info_statistics.py | 2 +- test/test_get_children_list.py | 2 +- test/test_get_client.py | 2 +- test/test_get_contact_campaign_stats.py | 2 +- ...test_get_contact_campaign_stats_clicked.py | 2 +- .../test_get_contact_campaign_stats_opened.py | 2 +- ...ntact_campaign_stats_transac_attributes.py | 2 +- ..._contact_campaign_stats_unsubscriptions.py | 2 +- test/test_get_contact_details.py | 2 +- test/test_get_contacts.py | 2 +- ...on.py => test_get_device_browser_stats.py} | 14 +- test/test_get_email_campaign.py | 2 +- test/test_get_email_campaigns.py | 2 +- test/test_get_email_event_report.py | 2 +- test/test_get_email_event_report_events.py | 2 +- test/test_get_extended_campaign_overview.py | 2 +- ...t_get_extended_campaign_overview_sender.py | 2 +- test/test_get_extended_campaign_stats.py | 2 +- test/test_get_extended_client.py | 2 +- test/test_get_extended_client_address.py | 2 +- test/test_get_extended_contact_details.py | 2 +- ...get_extended_contact_details_statistics.py | 2 +- ...nded_contact_details_statistics_clicked.py | 2 +- ...tended_contact_details_statistics_links.py | 2 +- ...ontact_details_statistics_messages_sent.py | 2 +- ...ended_contact_details_statistics_opened.py | 2 +- ...tact_details_statistics_unsubscriptions.py | 2 +- ...cs_unsubscriptions_admin_unsubscription.py | 2 +- ...ics_unsubscriptions_user_unsubscription.py | 2 +- test/test_get_extended_list.py | 2 +- test/test_get_extended_list_campaign_stats.py | 2 +- test/test_get_folder.py | 2 +- test/test_get_folder_lists.py | 2 +- test/test_get_folders.py | 2 +- test/test_get_ip.py | 2 +- test/test_get_ip_from_sender.py | 2 +- test/test_get_ips.py | 2 +- test/test_get_ips_from_sender.py | 2 +- test/test_get_list.py | 2 +- test/test_get_lists.py | 2 +- test/test_get_process.py | 2 +- test/test_get_processes.py | 2 +- test/test_get_reports.py | 2 +- test/test_get_reports_reports.py | 2 +- test/test_get_senders_list.py | 2 +- test/test_get_senders_list_ips.py | 2 +- test/test_get_senders_list_senders.py | 2 +- test/test_get_shared_template_url.py | 40 ++ test/test_get_sms_campaign.py | 2 +- test/test_get_sms_campaign_overview.py | 2 +- test/test_get_sms_campaign_stats.py | 2 +- test/test_get_sms_campaigns.py | 2 +- test/test_get_sms_event_report.py | 2 +- test/test_get_sms_event_report_events.py | 2 +- test/test_get_smtp_template_overview.py | 2 +- .../test_get_smtp_template_overview_sender.py | 2 +- test/test_get_smtp_templates.py | 2 +- test/test_get_sso_token.py | 2 +- test/test_get_stats_by_browser.py | 40 ++ test/test_get_stats_by_device.py | 40 ++ test/test_get_stats_by_domain.py | 2 +- .../test_get_transac_aggregated_sms_report.py | 2 +- test/test_get_transac_blocked_contacts.py | 40 ++ ...t_get_transac_blocked_contacts_contacts.py | 40 ++ ...est_get_transac_blocked_contacts_reason.py | 40 ++ test/test_get_transac_email_content.py | 2 +- test/test_get_transac_email_content_events.py | 2 +- test/test_get_transac_emails_list.py | 2 +- ...ransac_emails_list_transactional_emails.py | 2 +- test/test_get_transac_sms_report.py | 2 +- test/test_get_transac_sms_report_reports.py | 2 +- test/test_get_webhook.py | 2 +- test/test_get_webhooks.py | 2 +- test/test_lists_api.py | 2 +- test/test_manage_ip.py | 2 +- test/test_post_contact_info.py | 2 +- test/test_post_contact_info_contacts.py | 2 +- test/test_post_send_failed.py | 2 +- test/test_post_send_sms_test_failed.py | 2 +- test/test_process_api.py | 2 +- test/test_remaining_credit_model.py | 2 +- test/test_remaining_credit_model_child.py | 2 +- test/test_remaining_credit_model_reseller.py | 2 +- test/test_remove_contact_from_list.py | 2 +- test/test_remove_credits.py | 2 +- test/test_request_contact_export.py | 2 +- ...st_contact_export_custom_contact_filter.py | 40 ++ test/test_request_contact_import.py | 2 +- test/test_request_contact_import_new_list.py | 2 +- test/test_request_sms_recipient_export.py | 2 +- test/test_reseller_api.py | 9 +- test/test_send_email.py | 2 +- test/test_send_email_attachment.py | 2 +- test/test_send_report.py | 2 +- test/test_send_report_email.py | 2 +- test/test_send_sms.py | 2 +- test/test_send_smtp_email.py | 2 +- test/test_send_smtp_email_attachment.py | 2 +- test/test_send_smtp_email_bcc.py | 2 +- test/test_send_smtp_email_cc.py | 2 +- test/test_send_smtp_email_reply_to.py | 2 +- test/test_send_smtp_email_sender.py | 2 +- test/test_send_smtp_email_to.py | 2 +- test/test_send_template_email.py | 2 +- test/test_send_test_email.py | 2 +- test/test_send_test_sms.py | 2 +- test/test_send_transac_sms.py | 2 +- test/test_senders_api.py | 2 +- test/test_sms_campaigns_api.py | 2 +- test/test_smtp_api.py | 23 +- test/test_transactional_sms_api.py | 2 +- test/test_update_attribute.py | 2 +- test/test_update_attribute_enumeration.py | 2 +- test/test_update_campaign_status.py | 2 +- test/test_update_child.py | 2 +- test/test_update_child_account_status.py | 2 +- test/test_update_child_domain.py | 2 +- test/test_update_contact.py | 2 +- test/test_update_email_campaign.py | 2 +- test/test_update_email_campaign_recipients.py | 2 +- test/test_update_email_campaign_sender.py | 2 +- test/test_update_list.py | 2 +- test/test_update_sender.py | 2 +- test/test_update_sms_campaign.py | 2 +- test/test_update_smtp_template.py | 2 +- test/test_update_smtp_template_sender.py | 2 +- test/test_update_webhook.py | 2 +- test/test_webhooks_api.py | 2 +- tox.ini | 4 +- 423 files changed, 5786 insertions(+), 2223 deletions(-) create mode 100644 docs/AbTestCampaignResult.md rename docs/{GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md => GetChildAccountCreationStatus.md} (59%) delete mode 100644 docs/GetContactCampaignStatsLinks.md create mode 100644 docs/GetDeviceBrowserStats.md rename docs/{GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md => GetSharedTemplateUrl.md} (51%) create mode 100644 docs/GetStatsByBrowser.md create mode 100644 docs/GetStatsByDevice.md create mode 100644 docs/GetTransacBlockedContacts.md create mode 100644 docs/GetTransacBlockedContactsContacts.md create mode 100644 docs/GetTransacBlockedContactsReason.md create mode 100644 docs/RequestContactExportCustomContactFilter.md create mode 100644 git_push.sh create mode 100644 sib_api_v3_sdk/models/ab_test_campaign_result.py create mode 100644 sib_api_v3_sdk/models/get_child_account_creation_status.py delete mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_links.py delete mode 100644 sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py create mode 100644 sib_api_v3_sdk/models/get_device_browser_stats.py rename sib_api_v3_sdk/models/{get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py => get_shared_template_url.py} (56%) create mode 100644 sib_api_v3_sdk/models/get_stats_by_browser.py create mode 100644 sib_api_v3_sdk/models/get_stats_by_device.py create mode 100644 sib_api_v3_sdk/models/get_transac_blocked_contacts.py create mode 100644 sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py create mode 100644 sib_api_v3_sdk/models/get_transac_blocked_contacts_reason.py create mode 100644 sib_api_v3_sdk/models/request_contact_export_custom_contact_filter.py rename test/{test_get_contact_campaign_stats_links.py => test_ab_test_campaign_result.py} (72%) rename test/{test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py => test_get_child_account_creation_status.py} (64%) rename test/{test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py => test_get_device_browser_stats.py} (64%) create mode 100644 test/test_get_shared_template_url.py create mode 100644 test/test_get_stats_by_browser.py create mode 100644 test/test_get_stats_by_device.py create mode 100644 test/test_get_transac_blocked_contacts.py create mode 100644 test/test_get_transac_blocked_contacts_contacts.py create mode 100644 test/test_get_transac_blocked_contacts_reason.py create mode 100644 test/test_request_contact_export_custom_contact_filter.py diff --git a/.gitignore b/.gitignore index 69a4dd5..a655050 100644 --- a/.gitignore +++ b/.gitignore @@ -61,4 +61,4 @@ docs/_build/ target/ #Ipython Notebook -.ipynb_checkpoints +.ipynb_checkpoints diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index 276cbf9..cf95c01 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -2.3.0 +2.4.12 diff --git a/LICENSE.md b/LICENSE.md index bdb86b3..ea594db 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 SendinBlue +Copyright (c) 2020 SendinBlue Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 1249a3d..e1db636 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ try: pprint(api_response) except ApiException as e: print("Exception when calling AccountApi->get_account: %s\n" % e) + ``` ## Documentation for API Endpoints @@ -120,9 +121,11 @@ Class | Method | HTTP request | Description *EmailCampaignsApi* | [**create_email_campaign**](docs/EmailCampaignsApi.md#create_email_campaign) | **POST** /emailCampaigns | Create an email campaign *EmailCampaignsApi* | [**delete_email_campaign**](docs/EmailCampaignsApi.md#delete_email_campaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign *EmailCampaignsApi* | [**email_export_recipients**](docs/EmailCampaignsApi.md#email_export_recipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of a campaign +*EmailCampaignsApi* | [**get_ab_test_campaign_result**](docs/EmailCampaignsApi.md#get_ab_test_campaign_result) | **GET** /emailCampaigns/{campaignId}/abTestCampaignResult | Get A/B test email campaign result *EmailCampaignsApi* | [**get_email_campaign**](docs/EmailCampaignsApi.md#get_email_campaign) | **GET** /emailCampaigns/{campaignId} | Get campaign informations *EmailCampaignsApi* | [**get_email_campaigns**](docs/EmailCampaignsApi.md#get_email_campaigns) | **GET** /emailCampaigns | Return all your created campaigns -*EmailCampaignsApi* | [**send_email_campaign_now**](docs/EmailCampaignsApi.md#send_email_campaign_now) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign id of the campaign immediately +*EmailCampaignsApi* | [**get_shared_template_url**](docs/EmailCampaignsApi.md#get_shared_template_url) | **GET** /emailCampaigns/{campaignId}/sharedUrl | Get a shared template url +*EmailCampaignsApi* | [**send_email_campaign_now**](docs/EmailCampaignsApi.md#send_email_campaign_now) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign immediately, based on campaignId *EmailCampaignsApi* | [**send_report**](docs/EmailCampaignsApi.md#send_report) | **POST** /emailCampaigns/{campaignId}/sendReport | Send the report of a campaigns *EmailCampaignsApi* | [**send_test_email**](docs/EmailCampaignsApi.md#send_test_email) | **POST** /emailCampaigns/{campaignId}/sendTest | Send an email campaign to your test list *EmailCampaignsApi* | [**update_campaign_status**](docs/EmailCampaignsApi.md#update_campaign_status) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status @@ -151,6 +154,7 @@ Class | Method | HTTP request | Description *ResellerApi* | [**delete_child_domain**](docs/ResellerApi.md#delete_child_domain) | **DELETE** /reseller/children/{childAuthKey}/domains/{domainName} | Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed *ResellerApi* | [**delete_reseller_child**](docs/ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied *ResellerApi* | [**dissociate_ip_from_child**](docs/ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child +*ResellerApi* | [**get_child_account_creation_status**](docs/ResellerApi.md#get_child_account_creation_status) | **GET** /reseller/children/{childAuthKey}/accountCreationStatus | Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied *ResellerApi* | [**get_child_domains**](docs/ResellerApi.md#get_child_domains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account *ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account *ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts @@ -177,11 +181,14 @@ Class | Method | HTTP request | Description *SMTPApi* | [**get_smtp_report**](docs/SMTPApi.md#get_smtp_report) | **GET** /smtp/statistics/reports | Get your transactional email activity aggregated per day *SMTPApi* | [**get_smtp_template**](docs/SMTPApi.md#get_smtp_template) | **GET** /smtp/templates/{templateId} | Returns the template informations *SMTPApi* | [**get_smtp_templates**](docs/SMTPApi.md#get_smtp_templates) | **GET** /smtp/templates | Get the list of transactional email templates +*SMTPApi* | [**get_transac_blocked_contacts**](docs/SMTPApi.md#get_transac_blocked_contacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts *SMTPApi* | [**get_transac_email_content**](docs/SMTPApi.md#get_transac_email_content) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email *SMTPApi* | [**get_transac_emails_list**](docs/SMTPApi.md#get_transac_emails_list) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters *SMTPApi* | [**send_template**](docs/SMTPApi.md#send_template) | **POST** /smtp/templates/{templateId}/send | Send a template *SMTPApi* | [**send_test_template**](docs/SMTPApi.md#send_test_template) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list *SMTPApi* | [**send_transac_email**](docs/SMTPApi.md#send_transac_email) | **POST** /smtp/email | Send a transactional email +*SMTPApi* | [**smtp_blocked_contacts_email_delete**](docs/SMTPApi.md#smtp_blocked_contacts_email_delete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact +*SMTPApi* | [**smtp_log_message_id_delete**](docs/SMTPApi.md#smtp_log_message_id_delete) | **DELETE** /smtp/log/{messageId} | Delete an SMTP transactional log *SMTPApi* | [**update_smtp_template**](docs/SMTPApi.md#update_smtp_template) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates *SendersApi* | [**create_sender**](docs/SendersApi.md#create_sender) | **POST** /senders | Create a new sender *SendersApi* | [**delete_sender**](docs/SendersApi.md#delete_sender) | **DELETE** /senders/{senderId} | Delete a sender @@ -202,6 +209,7 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AbTestCampaignResult](docs/AbTestCampaignResult.md) - [AddChildDomain](docs/AddChildDomain.md) - [AddContactToList](docs/AddContactToList.md) - [AddCredits](docs/AddCredits.md) @@ -241,6 +249,7 @@ Class | Method | HTTP request | Description - [GetCampaignOverview](docs/GetCampaignOverview.md) - [GetCampaignRecipients](docs/GetCampaignRecipients.md) - [GetCampaignStats](docs/GetCampaignStats.md) + - [GetChildAccountCreationStatus](docs/GetChildAccountCreationStatus.md) - [GetChildDomain](docs/GetChildDomain.md) - [GetChildDomains](docs/GetChildDomains.md) - [GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md) @@ -252,14 +261,12 @@ Class | Method | HTTP request | Description - [GetClient](docs/GetClient.md) - [GetContactCampaignStats](docs/GetContactCampaignStats.md) - [GetContactCampaignStatsClicked](docs/GetContactCampaignStatsClicked.md) - - [GetContactCampaignStatsLinks](docs/GetContactCampaignStatsLinks.md) - [GetContactCampaignStatsOpened](docs/GetContactCampaignStatsOpened.md) - [GetContactCampaignStatsTransacAttributes](docs/GetContactCampaignStatsTransacAttributes.md) - [GetContactCampaignStatsUnsubscriptions](docs/GetContactCampaignStatsUnsubscriptions.md) - - [GetContactCampaignStatsUnsubscriptionsAdminUnsubscription](docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md) - - [GetContactCampaignStatsUnsubscriptionsUserUnsubscription](docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md) - [GetContactDetails](docs/GetContactDetails.md) - [GetContacts](docs/GetContacts.md) + - [GetDeviceBrowserStats](docs/GetDeviceBrowserStats.md) - [GetEmailCampaigns](docs/GetEmailCampaigns.md) - [GetEmailEventReport](docs/GetEmailEventReport.md) - [GetEmailEventReportEvents](docs/GetEmailEventReportEvents.md) @@ -291,6 +298,7 @@ Class | Method | HTTP request | Description - [GetSendersList](docs/GetSendersList.md) - [GetSendersListIps](docs/GetSendersListIps.md) - [GetSendersListSenders](docs/GetSendersListSenders.md) + - [GetSharedTemplateUrl](docs/GetSharedTemplateUrl.md) - [GetSmsCampaignOverview](docs/GetSmsCampaignOverview.md) - [GetSmsCampaignStats](docs/GetSmsCampaignStats.md) - [GetSmsCampaigns](docs/GetSmsCampaigns.md) @@ -300,8 +308,13 @@ Class | Method | HTTP request | Description - [GetSmtpTemplateOverviewSender](docs/GetSmtpTemplateOverviewSender.md) - [GetSmtpTemplates](docs/GetSmtpTemplates.md) - [GetSsoToken](docs/GetSsoToken.md) + - [GetStatsByBrowser](docs/GetStatsByBrowser.md) + - [GetStatsByDevice](docs/GetStatsByDevice.md) - [GetStatsByDomain](docs/GetStatsByDomain.md) - [GetTransacAggregatedSmsReport](docs/GetTransacAggregatedSmsReport.md) + - [GetTransacBlockedContacts](docs/GetTransacBlockedContacts.md) + - [GetTransacBlockedContactsContacts](docs/GetTransacBlockedContactsContacts.md) + - [GetTransacBlockedContactsReason](docs/GetTransacBlockedContactsReason.md) - [GetTransacEmailContent](docs/GetTransacEmailContent.md) - [GetTransacEmailContentEvents](docs/GetTransacEmailContentEvents.md) - [GetTransacEmailsList](docs/GetTransacEmailsList.md) @@ -321,6 +334,7 @@ Class | Method | HTTP request | Description - [RemoveContactFromList](docs/RemoveContactFromList.md) - [RemoveCredits](docs/RemoveCredits.md) - [RequestContactExport](docs/RequestContactExport.md) + - [RequestContactExportCustomContactFilter](docs/RequestContactExportCustomContactFilter.md) - [RequestContactImport](docs/RequestContactImport.md) - [RequestContactImportNewList](docs/RequestContactImportNewList.md) - [RequestSmsRecipientExport](docs/RequestSmsRecipientExport.md) diff --git a/docs/AbTestCampaignResult.md b/docs/AbTestCampaignResult.md new file mode 100644 index 0000000..49769a5 --- /dev/null +++ b/docs/AbTestCampaignResult.md @@ -0,0 +1,15 @@ +# AbTestCampaignResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**winning_version** | **str** | Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending. | [optional] +**winning_criteria** | **str** | Criteria choosen for winning version (Open/Click) | [optional] +**winning_subject_line** | **str** | Subject Line of current winning version | [optional] +**open_rate** | **str** | Open rate for current winning version | [optional] +**click_rate** | **str** | Click rate for current winning version | [optional] +**winning_version_rate** | **str** | Open/Click rate for the winner version | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateContact.md b/docs/CreateContact.md index ad57bfb..db76a69 100644 --- a/docs/CreateContact.md +++ b/docs/CreateContact.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter' | [optional] +**email** | **str** | Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} | [optional] **attributes** | **object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. {'FNAME':'Elly', 'LNAME':'Roger'} | [optional] **email_blacklisted** | **bool** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional] **sms_blacklisted** | **bool** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional] diff --git a/docs/CreateEmailCampaign.md b/docs/CreateEmailCampaign.md index 108cac4..c00f6c2 100644 --- a/docs/CreateEmailCampaign.md +++ b/docs/CreateEmailCampaign.md @@ -28,6 +28,9 @@ Name | Type | Description | Notes **split_rule** | **int** | Add the size of your test groups. Mandatory if abTesting = true & 'recipients' is passed. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else | [optional] **winner_criteria** | **str** | Choose the metrics that will determinate the winning version. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerCriteria' is ignored if passed | [optional] **winner_delay** | **int** | Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. Mandatory if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerDelay' is ignored if passed | [optional] +**ip_warmup_enable** | **bool** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to False] +**initial_quota** | **int** | Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional] +**increase_rate** | **int** | Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateEmailCampaignSender.md b/docs/CreateEmailCampaignSender.md index 6a8aa8d..a20774e 100644 --- a/docs/CreateEmailCampaignSender.md +++ b/docs/CreateEmailCampaignSender.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Sender Name | [optional] **email** | **str** | Sender email | +**id** | **int** | Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateSmtpTemplateSender.md b/docs/CreateSmtpTemplateSender.md index 7beeccc..44ced19 100644 --- a/docs/CreateSmtpTemplateSender.md +++ b/docs/CreateSmtpTemplateSender.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the sender. If not passed, will be set to default | [optional] **email** | **str** | Email of the sender | +**id** | **int** | Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EmailCampaignsApi.md b/docs/EmailCampaignsApi.md index 9f919f4..5db2256 100644 --- a/docs/EmailCampaignsApi.md +++ b/docs/EmailCampaignsApi.md @@ -7,9 +7,11 @@ Method | HTTP request | Description [**create_email_campaign**](EmailCampaignsApi.md#create_email_campaign) | **POST** /emailCampaigns | Create an email campaign [**delete_email_campaign**](EmailCampaignsApi.md#delete_email_campaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign [**email_export_recipients**](EmailCampaignsApi.md#email_export_recipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of a campaign +[**get_ab_test_campaign_result**](EmailCampaignsApi.md#get_ab_test_campaign_result) | **GET** /emailCampaigns/{campaignId}/abTestCampaignResult | Get A/B test email campaign result [**get_email_campaign**](EmailCampaignsApi.md#get_email_campaign) | **GET** /emailCampaigns/{campaignId} | Get campaign informations [**get_email_campaigns**](EmailCampaignsApi.md#get_email_campaigns) | **GET** /emailCampaigns | Return all your created campaigns -[**send_email_campaign_now**](EmailCampaignsApi.md#send_email_campaign_now) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign id of the campaign immediately +[**get_shared_template_url**](EmailCampaignsApi.md#get_shared_template_url) | **GET** /emailCampaigns/{campaignId}/sharedUrl | Get a shared template url +[**send_email_campaign_now**](EmailCampaignsApi.md#send_email_campaign_now) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign immediately, based on campaignId [**send_report**](EmailCampaignsApi.md#send_report) | **POST** /emailCampaigns/{campaignId}/sendReport | Send the report of a campaigns [**send_test_email**](EmailCampaignsApi.md#send_test_email) | **POST** /emailCampaigns/{campaignId}/sendTest | Send an email campaign to your test list [**update_campaign_status**](EmailCampaignsApi.md#update_campaign_status) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status @@ -188,6 +190,65 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_ab_test_campaign_result** +> AbTestCampaignResult get_ab_test_campaign_result(campaign_id) + +Get A/B test email campaign result + +Obtain winning version of an A/B test email campaign + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) +campaign_id = 789 # int | Id of the A/B test campaign + +try: + # Get A/B test email campaign result + api_response = api_instance.get_ab_test_campaign_result(campaign_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling EmailCampaignsApi->get_ab_test_campaign_result: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **int**| Id of the A/B test campaign | + +### Return type + +[**AbTestCampaignResult**](AbTestCampaignResult.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_email_campaign** > GetEmailCampaign get_email_campaign(campaign_id) @@ -312,10 +373,69 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_shared_template_url** +> GetSharedTemplateUrl get_shared_template_url(campaign_id) + +Get a shared template url + +Get a unique URL to share & import an email template from one Sendinblue account to another. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) +campaign_id = 789 # int | Id of the campaign or template + +try: + # Get a shared template url + api_response = api_instance.get_shared_template_url(campaign_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling EmailCampaignsApi->get_shared_template_url: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **int**| Id of the campaign or template | + +### Return type + +[**GetSharedTemplateUrl**](GetSharedTemplateUrl.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **send_email_campaign_now** > send_email_campaign_now(campaign_id) -Send an email campaign id of the campaign immediately +Send an email campaign immediately, based on campaignId ### Example ```python @@ -341,7 +461,7 @@ api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configu campaign_id = 789 # int | Id of the campaign try: - # Send an email campaign id of the campaign immediately + # Send an email campaign immediately, based on campaignId api_instance.send_email_campaign_now(campaign_id) except ApiException as e: print("Exception when calling EmailCampaignsApi->send_email_campaign_now: %s\n" % e) diff --git a/docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md b/docs/GetChildAccountCreationStatus.md similarity index 59% rename from docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md rename to docs/GetChildAccountCreationStatus.md index bdc5c78..07d0a96 100644 --- a/docs/GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md +++ b/docs/GetChildAccountCreationStatus.md @@ -1,10 +1,9 @@ -# GetContactCampaignStatsUnsubscriptionsAdminUnsubscription +# GetChildAccountCreationStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has been unsubscribed | +**child_account_created** | **bool** | Status of child account creation whether it is successfully created (exists) or not. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetChildrenList.md b/docs/GetChildrenList.md index 0f583f8..d5c1756 100644 --- a/docs/GetChildrenList.md +++ b/docs/GetChildrenList.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **children** | **list[object]** | Your children's account information | [optional] +**count** | **int** | Number of child accounts | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetContactCampaignStatsClicked.md b/docs/GetContactCampaignStatsClicked.md index 5d1979e..f16598e 100644 --- a/docs/GetContactCampaignStatsClicked.md +++ b/docs/GetContactCampaignStatsClicked.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | -**links** | [**list[GetContactCampaignStatsLinks]**](GetContactCampaignStatsLinks.md) | | +**links** | [**list[GetExtendedContactDetailsStatisticsLinks]**](GetExtendedContactDetailsStatisticsLinks.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetContactCampaignStatsLinks.md b/docs/GetContactCampaignStatsLinks.md deleted file mode 100644 index 74744e2..0000000 --- a/docs/GetContactCampaignStatsLinks.md +++ /dev/null @@ -1,13 +0,0 @@ -# GetContactCampaignStatsLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **int** | Number of clicks on this link for the campaign | -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has clicked on the link | -**url** | **str** | URL of the clicked link | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GetContactCampaignStatsUnsubscriptions.md b/docs/GetContactCampaignStatsUnsubscriptions.md index 05cc424..2ac3d93 100644 --- a/docs/GetContactCampaignStatsUnsubscriptions.md +++ b/docs/GetContactCampaignStatsUnsubscriptions.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_unsubscription** | [**list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription]**](GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md) | Contact has unsubscribed via the unsubscription link in the email | -**admin_unsubscription** | [**list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription]**](GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | +**user_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md) | Contact has unsubscribed via the unsubscription link in the email | +**admin_unsubscription** | [**list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]**](GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md) | Contact has been unsubscribed from the administrator | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetDeviceBrowserStats.md b/docs/GetDeviceBrowserStats.md new file mode 100644 index 0000000..c2bff23 --- /dev/null +++ b/docs/GetDeviceBrowserStats.md @@ -0,0 +1,13 @@ +# GetDeviceBrowserStats + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clickers** | **int** | Number of total clicks for the campaign using the particular browser | +**unique_clicks** | **int** | Number of unique clicks for the campaign using the particular browser | +**viewed** | **int** | Number of openings for the campaign using the particular browser | +**unique_views** | **int** | Number of unique openings for the campaign using the particular browser | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetEmailEventReportEvents.md b/docs/GetEmailEventReportEvents.md index 4da401c..c07441a 100644 --- a/docs/GetEmailEventReportEvents.md +++ b/docs/GetEmailEventReportEvents.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **str** | Email address which generates the event | -**date** | **datetime** | UTC date-time on which the event has been generated | +**_date** | **datetime** | UTC date-time on which the event has been generated | **subject** | **str** | Subject of the event | [optional] **message_id** | **str** | Message ID which generated the event | **event** | **str** | Event which occurred | diff --git a/docs/GetExtendedCampaignOverviewSender.md b/docs/GetExtendedCampaignOverviewSender.md index b5981ef..c8c679e 100644 --- a/docs/GetExtendedCampaignOverviewSender.md +++ b/docs/GetExtendedCampaignOverviewSender.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Sender name of the campaign | [optional] **email** | **str** | Sender email of the campaign | [optional] +**id** | **str** | Sender id of the campaign | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedCampaignStats.md b/docs/GetExtendedCampaignStats.md index c9024d0..d85e45c 100644 --- a/docs/GetExtendedCampaignStats.md +++ b/docs/GetExtendedCampaignStats.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **remaining** | **int** | Number of remaning emails to send | **links_stats** | **object** | Statistics about the number of clicks for the links | **stats_by_domain** | [**GetStatsByDomain**](GetStatsByDomain.md) | | +**stats_by_device** | [**GetStatsByDevice**](GetStatsByDevice.md) | Statistics about the campaign on the basis of various devices | +**stats_by_browser** | [**GetStatsByBrowser**](GetStatsByBrowser.md) | Statistics about the campaign on the basis of various browsers | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedContactDetailsStatisticsLinks.md b/docs/GetExtendedContactDetailsStatisticsLinks.md index 2fe1838..51829e1 100644 --- a/docs/GetExtendedContactDetailsStatisticsLinks.md +++ b/docs/GetExtendedContactDetailsStatisticsLinks.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of clicks on this link for the campaign | **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has clicked on the link | [optional] +**ip** | **str** | IP from which the user has clicked on the link | **url** | **str** | URL of the clicked link | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedContactDetailsStatisticsOpened.md b/docs/GetExtendedContactDetailsStatisticsOpened.md index 55a2977..5ba5558 100644 --- a/docs/GetExtendedContactDetailsStatisticsOpened.md +++ b/docs/GetExtendedContactDetailsStatisticsOpened.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **campaign_id** | **int** | ID of the campaign which generated the event | **count** | **int** | Number of openings for the campaign | **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has opened the email | [optional] +**ip** | **str** | IP from which the user has opened the email | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md index 9d99f41..9ecfaef 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has been unsubscribed | [optional] +**ip** | **str** | IP from which the user has been unsubscribed | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md index b722d0c..b3d4ea6 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | **event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has unsubscribed | [optional] +**ip** | **str** | IP from which the user has unsubscribed | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetReportsReports.md b/docs/GetReportsReports.md index 640cb8e..e837992 100644 --- a/docs/GetReportsReports.md +++ b/docs/GetReportsReports.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **date** | Date of the statistics | +**_date** | **date** | Date of the statistics | **requests** | **int** | Number of requests for the date | **delivered** | **int** | Number of delivered emails for the date | **hard_bounces** | **int** | Number of hardbounces for the date | diff --git a/docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md b/docs/GetSharedTemplateUrl.md similarity index 51% rename from docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md rename to docs/GetSharedTemplateUrl.md index a846041..4691120 100644 --- a/docs/GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md +++ b/docs/GetSharedTemplateUrl.md @@ -1,11 +1,9 @@ -# GetContactCampaignStatsUnsubscriptionsUserUnsubscription +# GetSharedTemplateUrl ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**campaign_id** | **int** | ID of the campaign which generated the event | -**event_time** | **datetime** | UTC date-time of the event | -**ip** | **str** | IP from which the user has unsubscribed | +**shared_url** | **str** | A unique URL for the email campaign or transactional template. This URL can be shared with other Sendinblue users. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetSmsEventReportEvents.md b/docs/GetSmsEventReportEvents.md index f25fda2..db211a1 100644 --- a/docs/GetSmsEventReportEvents.md +++ b/docs/GetSmsEventReportEvents.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phone_number** | **str** | Phone number which has generated the event | -**date** | **datetime** | UTC date-time on which the event has been generated | +**_date** | **datetime** | UTC date-time on which the event has been generated | **message_id** | **str** | Message ID which generated the event | **event** | **str** | Event which occurred | **reason** | **str** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional] diff --git a/docs/GetSmtpTemplateOverviewSender.md b/docs/GetSmtpTemplateOverviewSender.md index 9c488d1..1c638c7 100644 --- a/docs/GetSmtpTemplateOverviewSender.md +++ b/docs/GetSmtpTemplateOverviewSender.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | From email for the template | [optional] **email** | **str** | From email for the template | [optional] +**id** | **str** | Sender id of the template | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetStatsByBrowser.md b/docs/GetStatsByBrowser.md new file mode 100644 index 0000000..dfdba22 --- /dev/null +++ b/docs/GetStatsByBrowser.md @@ -0,0 +1,9 @@ +# GetStatsByBrowser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetStatsByDevice.md b/docs/GetStatsByDevice.md new file mode 100644 index 0000000..d9f3461 --- /dev/null +++ b/docs/GetStatsByDevice.md @@ -0,0 +1,13 @@ +# GetStatsByDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**desktop** | [**dict(str, GetDeviceBrowserStats)**](GetDeviceBrowserStats.md) | Statistics of the campaign on the basis of desktop devices | [optional] +**mobile** | [**dict(str, GetDeviceBrowserStats)**](GetDeviceBrowserStats.md) | Statistics of the campaign on the basis of mobile devices | [optional] +**tablet** | [**dict(str, GetDeviceBrowserStats)**](GetDeviceBrowserStats.md) | Statistics of the campaign on the basis of tablet devices | [optional] +**unknown** | [**dict(str, GetDeviceBrowserStats)**](GetDeviceBrowserStats.md) | Statistics of the campaign on the basis of unknown devices | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetTransacBlockedContacts.md b/docs/GetTransacBlockedContacts.md new file mode 100644 index 0000000..8cae8c1 --- /dev/null +++ b/docs/GetTransacBlockedContacts.md @@ -0,0 +1,11 @@ +# GetTransacBlockedContacts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Count of blocked or unsubscribed contact | [optional] +**contacts** | [**list[GetTransacBlockedContactsContacts]**](GetTransacBlockedContactsContacts.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetTransacBlockedContactsContacts.md b/docs/GetTransacBlockedContactsContacts.md new file mode 100644 index 0000000..9870fbc --- /dev/null +++ b/docs/GetTransacBlockedContactsContacts.md @@ -0,0 +1,13 @@ +# GetTransacBlockedContactsContacts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | Email address of the blocked or unsubscribed contact | +**sender_email** | **str** | Sender email address of the blocked or unsubscribed contact | +**reason** | [**GetTransacBlockedContactsReason**](GetTransacBlockedContactsReason.md) | | +**blocked_at** | **date** | Date when the contact was blocked or unsubscribed on | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetTransacBlockedContactsReason.md b/docs/GetTransacBlockedContactsReason.md new file mode 100644 index 0000000..483ea79 --- /dev/null +++ b/docs/GetTransacBlockedContactsReason.md @@ -0,0 +1,11 @@ +# GetTransacBlockedContactsReason + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | Reason code for blocking / unsubscribing (This code is safe for comparison) | [optional] +**message** | **str** | Reason for blocking / unsubscribing (This string is not safe for comparison) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetTransacEmailContent.md b/docs/GetTransacEmailContent.md index ec3133e..01dda5e 100644 --- a/docs/GetTransacEmailContent.md +++ b/docs/GetTransacEmailContent.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **email** | **str** | Email address to which transactional email has been sent | **subject** | **str** | Subject of the sent email | **template_id** | **int** | Id of the template | [optional] -**date** | **datetime** | Date on which transactional email was sent | +**_date** | **datetime** | Date on which transactional email was sent | **events** | [**list[GetTransacEmailContentEvents]**](GetTransacEmailContentEvents.md) | Series of events which occurred on the transactional email | **body** | **str** | Actual content of the transactional email that has been sent | **attachment_count** | **int** | Count of the attachments that were sent in the email | diff --git a/docs/GetTransacEmailsListTransactionalEmails.md b/docs/GetTransacEmailsListTransactionalEmails.md index 1273ef3..3d4cc26 100644 --- a/docs/GetTransacEmailsListTransactionalEmails.md +++ b/docs/GetTransacEmailsListTransactionalEmails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **template_id** | **int** | Id of the template | [optional] **message_id** | **str** | Message Id of the sent email | **uuid** | **str** | Unique id of the email sent to a particular contact | -**date** | **datetime** | Date on which transactional email was sent | +**_date** | **datetime** | Date on which transactional email was sent | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetTransacSmsReportReports.md b/docs/GetTransacSmsReportReports.md index df3493d..11f512b 100644 --- a/docs/GetTransacSmsReportReports.md +++ b/docs/GetTransacSmsReportReports.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**date** | **date** | Date for which statistics are retrieved | +**_date** | **date** | Date for which statistics are retrieved | **requests** | **int** | Number of requests for the date | **delivered** | **int** | Number of delivered SMS for the date | **hard_bounces** | **int** | Number of hardbounces for the date | diff --git a/docs/RequestContactExport.md b/docs/RequestContactExport.md index a13b7c7..e841601 100644 --- a/docs/RequestContactExport.md +++ b/docs/RequestContactExport.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **export_attributes** | **list[str]** | List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email']. | [optional] -**contact_filter** | **object** | Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. | +**contact_filter** | **object** | This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. | [optional] +**custom_contact_filter** | [**RequestContactExportCustomContactFilter**](RequestContactExportCustomContactFilter.md) | | [optional] **notify_url** | **str** | Webhook that will be called once the export process is finished | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RequestContactExportCustomContactFilter.md b/docs/RequestContactExportCustomContactFilter.md new file mode 100644 index 0000000..2eba3a3 --- /dev/null +++ b/docs/RequestContactExportCustomContactFilter.md @@ -0,0 +1,15 @@ +# RequestContactExportCustomContactFilter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action_for_contacts** | **str** | Mandatory if neither actionForEmailCampaigns nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on contacts as per the list id. * allContacts - Fetch the list of all contacts for a particular list. * subscribed & unsubscribed - Fetch the list of subscribed / unsubscribed (blacklisted via any means) contacts for a particular list. * unsubscribedPerList - Fetch the list of contacts that are unsubscribed from a particular list only. | [optional] +**action_for_email_campaigns** | **str** | Mandatory if neither actionForContacts nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on email campaigns. * openers & nonOpeners - emailCampaignId is mandatory. Fetch the list of readers / non-readers for a particular email campaign. * clickers & nonClickers - emailCampaignId is mandatory. Fetch the list of clickers / non-clickers for a particular email campaign. * unsubscribed - emailCampaignId is mandatory. Fetch the list of all unsubscribed (blacklisted via any means) contacts for a particular email campaign. * hardBounces & softBounces - emailCampaignId is optional. Fetch the list of hard bounces / soft bounces for a particular / all email campaign(s). | [optional] +**action_for_sms_campaigns** | **str** | Mandatory if neither actionForContacts nor actionForEmailCampaigns is passed. This will export the contacts on the basis of provided action applied on sms campaigns. * unsubscribed - Fetch the list of all unsubscribed (blacklisted via any means) contacts for all / particular sms campaigns. * hardBounces & softBounces - Fetch the list of hard bounces / soft bounces for all / particular sms campaigns. | [optional] +**list_id** | **int** | Mandatory if actionForContacts is passed, ignored otherwise. Id of the list for which the corresponding action shall be applied in the filter. | [optional] +**email_campaign_id** | **int** | Considered only if actionForEmailCampaigns is passed, ignored otherwise. Mandatory if action is one of the following - openers, nonOpeners, clickers, nonClickers, unsubscribed. The id of the email campaign for which the corresponding action shall be applied in the filter. | [optional] +**sms_campaign_id** | **int** | Considered only if actionForSmsCampaigns is passed, ignored otherwise. The id of sms campaign for which the corresponding action shall be applied in the filter. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResellerApi.md b/docs/ResellerApi.md index ab5b0c4..51b538d 100644 --- a/docs/ResellerApi.md +++ b/docs/ResellerApi.md @@ -11,6 +11,7 @@ Method | HTTP request | Description [**delete_child_domain**](ResellerApi.md#delete_child_domain) | **DELETE** /reseller/children/{childAuthKey}/domains/{domainName} | Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed [**delete_reseller_child**](ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied [**dissociate_ip_from_child**](ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child +[**get_child_account_creation_status**](ResellerApi.md#get_child_account_creation_status) | **GET** /reseller/children/{childAuthKey}/accountCreationStatus | Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied [**get_child_domains**](ResellerApi.md#get_child_domains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account [**get_child_info**](ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account [**get_reseller_childs**](ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts @@ -165,7 +166,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child -add_child_domain = sib_api_v3_sdk.AddChildDomain() # AddChildDomain | Sender domain to add for a specific child account +add_child_domain = sib_api_v3_sdk.AddChildDomain() # AddChildDomain | Sender domain to add for a specific child account. This will not be displayed to the parent account. try: # Creates a domain for a child account @@ -179,7 +180,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **child_auth_key** | **str**| auth key of reseller's child | - **add_child_domain** | [**AddChildDomain**](AddChildDomain.md)| Sender domain to add for a specific child account | + **add_child_domain** | [**AddChildDomain**](AddChildDomain.md)| Sender domain to add for a specific child account. This will not be displayed to the parent account. | ### Return type @@ -425,6 +426,63 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_child_account_creation_status** +> GetChildAccountCreationStatus get_child_account_creation_status(child_auth_key) + +Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) +child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child + +try: + # Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied + api_response = api_instance.get_child_account_creation_status(child_auth_key) + pprint(api_response) +except ApiException as e: + print("Exception when calling ResellerApi->get_child_account_creation_status: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **child_auth_key** | **str**| auth key of reseller's child | + +### Return type + +[**GetChildAccountCreationStatus**](GetChildAccountCreationStatus.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_child_domains** > GetChildDomains get_child_domains(child_auth_key) @@ -540,7 +598,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_reseller_childs** -> GetChildrenList get_reseller_childs() +> GetChildrenList get_reseller_childs(limit=limit, offset=offset) Gets the list of all reseller's children accounts @@ -565,17 +623,23 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) +limit = 10 # int | Number of documents for child accounts information per page (optional) (default to 10) +offset = 0 # int | Index of the first document in the page (optional) (default to 0) try: # Gets the list of all reseller's children accounts - api_response = api_instance.get_reseller_childs() + api_response = api_instance.get_reseller_childs(limit=limit, offset=offset) pprint(api_response) except ApiException as e: print("Exception when calling ResellerApi->get_reseller_childs: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| Number of documents for child accounts information per page | [optional] [default to 10] + **offset** | **int**| Index of the first document in the page | [optional] [default to 0] ### Return type diff --git a/docs/SMTPApi.md b/docs/SMTPApi.md index 11cb37d..7b06205 100644 --- a/docs/SMTPApi.md +++ b/docs/SMTPApi.md @@ -12,11 +12,14 @@ Method | HTTP request | Description [**get_smtp_report**](SMTPApi.md#get_smtp_report) | **GET** /smtp/statistics/reports | Get your transactional email activity aggregated per day [**get_smtp_template**](SMTPApi.md#get_smtp_template) | **GET** /smtp/templates/{templateId} | Returns the template informations [**get_smtp_templates**](SMTPApi.md#get_smtp_templates) | **GET** /smtp/templates | Get the list of transactional email templates +[**get_transac_blocked_contacts**](SMTPApi.md#get_transac_blocked_contacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts [**get_transac_email_content**](SMTPApi.md#get_transac_email_content) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email [**get_transac_emails_list**](SMTPApi.md#get_transac_emails_list) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters [**send_template**](SMTPApi.md#send_template) | **POST** /smtp/templates/{templateId}/send | Send a template [**send_test_template**](SMTPApi.md#send_test_template) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list [**send_transac_email**](SMTPApi.md#send_transac_email) | **POST** /smtp/email | Send a transactional email +[**smtp_blocked_contacts_email_delete**](SMTPApi.md#smtp_blocked_contacts_email_delete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact +[**smtp_log_message_id_delete**](SMTPApi.md#smtp_log_message_id_delete) | **DELETE** /smtp/log/{messageId} | Delete an SMTP transactional log [**update_smtp_template**](SMTPApi.md#update_smtp_template) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates @@ -355,7 +358,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 50 # int | Number of documents returned per page (optional) (default to 50) +limit = 10 # int | Number of documents returned per page (optional) (default to 10) offset = 0 # int | Index of the first document on the page (optional) (default to 0) start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) (optional) end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) (optional) @@ -374,7 +377,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number of documents returned per page | [optional] [default to 50] + **limit** | **int**| Number of documents returned per page | [optional] [default to 10] **offset** | **int**| Index of the first document on the page | [optional] [default to 0] **start_date** | **str**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) | [optional] **end_date** | **str**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD) | [optional] @@ -514,6 +517,71 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_transac_blocked_contacts** +> GetTransacBlockedContacts get_transac_blocked_contacts(start_date=start_date, end_date=end_date, limit=limit, offset=offset, senders=senders) + +Get the list of blocked or unsubscribed transactional contacts + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) +start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts (optional) +end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional) +limit = 50 # int | Number of documents returned per page (optional) (default to 50) +offset = 0 # int | Index of the first document on the page (optional) (default to 0) +senders = ['senders_example'] # list[str] | Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional) + +try: + # Get the list of blocked or unsubscribed transactional contacts + api_response = api_instance.get_transac_blocked_contacts(start_date=start_date, end_date=end_date, limit=limit, offset=offset, senders=senders) + pprint(api_response) +except ApiException as e: + print("Exception when calling SMTPApi->get_transac_blocked_contacts: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_date** | **str**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts | [optional] + **end_date** | **str**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts | [optional] + **limit** | **int**| Number of documents returned per page | [optional] [default to 50] + **offset** | **int**| Index of the first document on the page | [optional] [default to 0] + **senders** | [**list[str]**](str.md)| Comma separated list of emails of the senders from which contacts are blocked or unsubscribed | [optional] + +### Return type + +[**GetTransacBlockedContacts**](GetTransacBlockedContacts.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_transac_email_content** > GetTransacEmailContent get_transac_email_content(uuid) @@ -814,6 +882,118 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **smtp_blocked_contacts_email_delete** +> smtp_blocked_contacts_email_delete(email) + +Unblock or resubscribe a transactional contact + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) +email = 'email_example' # str | contact email (urlencoded) to unblock. + +try: + # Unblock or resubscribe a transactional contact + api_instance.smtp_blocked_contacts_email_delete(email) +except ApiException as e: + print("Exception when calling SMTPApi->smtp_blocked_contacts_email_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **str**| contact email (urlencoded) to unblock. | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **smtp_log_message_id_delete** +> smtp_log_message_id_delete(message_id) + +Delete an SMTP transactional log + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.SMTPApi(sib_api_v3_sdk.ApiClient(configuration)) +message_id = 'message_id_example' # str | MessageId of the transactional log to delete + +try: + # Delete an SMTP transactional log + api_instance.smtp_log_message_id_delete(message_id) +except ApiException as e: + print("Exception when calling SMTPApi->smtp_log_message_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **message_id** | **str**| MessageId of the transactional log to delete | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **update_smtp_template** > update_smtp_template(template_id, smtp_template) diff --git a/docs/SendSmtpEmail.md b/docs/SendSmtpEmail.md index 04bb8cd..e126163 100644 --- a/docs/SendSmtpEmail.md +++ b/docs/SendSmtpEmail.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **text_content** | **str** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional] **subject** | **str** | Subject of the message. Mandatory if 'templateId' is not passed | [optional] **reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional] -**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] +**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] **headers** | **object** | Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`. | [optional] **template_id** | **int** | Id of the template | [optional] **params** | **object** | Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. It's considered only if template is in New Template Language format. | [optional] diff --git a/docs/SendSmtpEmailBcc.md b/docs/SendSmtpEmailBcc.md index 9b32db7..5993ef5 100644 --- a/docs/SendSmtpEmailBcc.md +++ b/docs/SendSmtpEmailBcc.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **str** | Email address of the recipient in bcc | -**name** | **str** | Name of the recipient in bcc | [optional] +**name** | **str** | Name of the recipient in bcc. Maximum allowed characters are 70. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SendSmtpEmailCc.md b/docs/SendSmtpEmailCc.md index 69e11ab..1d9a798 100644 --- a/docs/SendSmtpEmailCc.md +++ b/docs/SendSmtpEmailCc.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **str** | Email address of the recipient in cc | -**name** | **str** | Name of the recipient in cc | [optional] +**name** | **str** | Name of the recipient in cc. Maximum allowed characters are 70. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SendSmtpEmailReplyTo.md b/docs/SendSmtpEmailReplyTo.md index a2edc67..657d772 100644 --- a/docs/SendSmtpEmailReplyTo.md +++ b/docs/SendSmtpEmailReplyTo.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **str** | Email address in reply to | -**name** | **str** | Name in reply to | [optional] +**name** | **str** | Name in reply to. Maximum allowed characters are 70. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SendSmtpEmailSender.md b/docs/SendSmtpEmailSender.md index f636198..d2da677 100644 --- a/docs/SendSmtpEmailSender.md +++ b/docs/SendSmtpEmailSender.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the sender from which the emails will be sent | [optional] +**name** | **str** | Name of the sender from which the emails will be sent. Maximum allowed characters are 70. | [optional] **email** | **str** | Email of the sender from which the emails will be sent | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SendSmtpEmailTo.md b/docs/SendSmtpEmailTo.md index 387763c..522efe2 100644 --- a/docs/SendSmtpEmailTo.md +++ b/docs/SendSmtpEmailTo.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **str** | Email address of the recipient | -**name** | **str** | Name of the recipient | [optional] +**name** | **str** | Name of the recipient. Maximum allowed characters are 70. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateContact.md b/docs/UpdateContact.md index 3ef2951..9ccf9ad 100644 --- a/docs/UpdateContact.md +++ b/docs/UpdateContact.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attributes** | **object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For eg. { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} | [optional] +**attributes** | **object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} | [optional] **email_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) | [optional] **sms_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) | [optional] **list_ids** | **list[int]** | Ids of the lists to add the contact to | [optional] diff --git a/docs/UpdateEmailCampaign.md b/docs/UpdateEmailCampaign.md index 210e943..ce5015d 100644 --- a/docs/UpdateEmailCampaign.md +++ b/docs/UpdateEmailCampaign.md @@ -28,6 +28,9 @@ Name | Type | Description | Notes **split_rule** | **int** | Add the size of your test groups. Considered if abTesting = true. We'll send version A and B to a random sample of recipients, and then the winning version to everyone else | [optional] **winner_criteria** | **str** | Choose the metrics that will determinate the winning version. Considered if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerCriteria' is ignored if passed or alreday exist in record | [optional] **winner_delay** | **int** | Choose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168 hours. The winning version will be sent at the end of the test. Considered if 'splitRule' >= 1 and < 50. If splitRule = 50, 'winnerDelay' is ignored if passed or alreday exist in record | [optional] +**ip_warmup_enable** | **bool** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to False] +**initial_quota** | **int** | Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional] +**increase_rate** | **int** | Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateEmailCampaignSender.md b/docs/UpdateEmailCampaignSender.md index 37e9a90..e0e7fe3 100644 --- a/docs/UpdateEmailCampaignSender.md +++ b/docs/UpdateEmailCampaignSender.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Sender Name from which the campaign emails are sent | [optional] **email** | **str** | Sender email from which the campaign emails are sent | [optional] +**id** | **int** | Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateSmtpTemplateSender.md b/docs/UpdateSmtpTemplateSender.md index 3fed5ed..e59d81a 100644 --- a/docs/UpdateSmtpTemplateSender.md +++ b/docs/UpdateSmtpTemplateSender.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the sender | [optional] **email** | **str** | Email of the sender | [optional] +**id** | **int** | Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..ae01b18 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/setup.py b/setup.py index 71bcc00..9131ba8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "sib-api-v3-sdk" -VERSION = "6.0.3" +VERSION = "7.0.0" # To install the library, run the following # # python setup.py install @@ -22,7 +22,13 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = [ + "certifi>=2017.4.17", + "python-dateutil>=2.1", + "six>=1.10", + "urllib3>=1.23" +] + setup( name=NAME, diff --git a/sib_api_v3_sdk/__init__.py b/sib_api_v3_sdk/__init__.py index 90458af..f0a11f9 100644 --- a/sib_api_v3_sdk/__init__.py +++ b/sib_api_v3_sdk/__init__.py @@ -5,7 +5,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -34,6 +34,7 @@ from sib_api_v3_sdk.api_client import ApiClient from sib_api_v3_sdk.configuration import Configuration # import models into sdk package +from sib_api_v3_sdk.models.ab_test_campaign_result import AbTestCampaignResult from sib_api_v3_sdk.models.add_child_domain import AddChildDomain from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits @@ -73,6 +74,7 @@ from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats +from sib_api_v3_sdk.models.get_child_account_creation_status import GetChildAccountCreationStatus from sib_api_v3_sdk.models.get_child_domain import GetChildDomain from sib_api_v3_sdk.models.get_child_domains import GetChildDomains from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys @@ -84,14 +86,12 @@ from sib_api_v3_sdk.models.get_client import GetClient from sib_api_v3_sdk.models.get_contact_campaign_stats import GetContactCampaignStats from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked -from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription from sib_api_v3_sdk.models.get_contact_details import GetContactDetails from sib_api_v3_sdk.models.get_contacts import GetContacts +from sib_api_v3_sdk.models.get_device_browser_stats import GetDeviceBrowserStats from sib_api_v3_sdk.models.get_email_campaigns import GetEmailCampaigns from sib_api_v3_sdk.models.get_email_event_report import GetEmailEventReport from sib_api_v3_sdk.models.get_email_event_report_events import GetEmailEventReportEvents @@ -123,6 +123,7 @@ from sib_api_v3_sdk.models.get_senders_list import GetSendersList from sib_api_v3_sdk.models.get_senders_list_ips import GetSendersListIps from sib_api_v3_sdk.models.get_senders_list_senders import GetSendersListSenders +from sib_api_v3_sdk.models.get_shared_template_url import GetSharedTemplateUrl from sib_api_v3_sdk.models.get_sms_campaign_overview import GetSmsCampaignOverview from sib_api_v3_sdk.models.get_sms_campaign_stats import GetSmsCampaignStats from sib_api_v3_sdk.models.get_sms_campaigns import GetSmsCampaigns @@ -132,8 +133,13 @@ from sib_api_v3_sdk.models.get_smtp_template_overview_sender import GetSmtpTemplateOverviewSender from sib_api_v3_sdk.models.get_smtp_templates import GetSmtpTemplates from sib_api_v3_sdk.models.get_sso_token import GetSsoToken +from sib_api_v3_sdk.models.get_stats_by_browser import GetStatsByBrowser +from sib_api_v3_sdk.models.get_stats_by_device import GetStatsByDevice from sib_api_v3_sdk.models.get_stats_by_domain import GetStatsByDomain from sib_api_v3_sdk.models.get_transac_aggregated_sms_report import GetTransacAggregatedSmsReport +from sib_api_v3_sdk.models.get_transac_blocked_contacts import GetTransacBlockedContacts +from sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts import GetTransacBlockedContactsContacts +from sib_api_v3_sdk.models.get_transac_blocked_contacts_reason import GetTransacBlockedContactsReason from sib_api_v3_sdk.models.get_transac_email_content import GetTransacEmailContent from sib_api_v3_sdk.models.get_transac_email_content_events import GetTransacEmailContentEvents from sib_api_v3_sdk.models.get_transac_emails_list import GetTransacEmailsList @@ -153,6 +159,7 @@ from sib_api_v3_sdk.models.remove_contact_from_list import RemoveContactFromList from sib_api_v3_sdk.models.remove_credits import RemoveCredits from sib_api_v3_sdk.models.request_contact_export import RequestContactExport +from sib_api_v3_sdk.models.request_contact_export_custom_contact_filter import RequestContactExportCustomContactFilter from sib_api_v3_sdk.models.request_contact_import import RequestContactImport from sib_api_v3_sdk.models.request_contact_import_new_list import RequestContactImportNewList from sib_api_v3_sdk.models.request_sms_recipient_export import RequestSmsRecipientExport diff --git a/sib_api_v3_sdk/api/account_api.py b/sib_api_v3_sdk/api/account_api.py index 98811bd..21206b0 100644 --- a/sib_api_v3_sdk/api/account_api.py +++ b/sib_api_v3_sdk/api/account_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,17 +37,17 @@ def get_account(self, **kwargs): # noqa: E501 """Get your account informations, plans and credits details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_account_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_account_with_http_info(**kwargs) # noqa: E501 @@ -57,18 +57,18 @@ def get_account_with_http_info(self, **kwargs): # noqa: E501 """Get your account informations, plans and credits details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAccount If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -116,7 +116,7 @@ def get_account_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAccount', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/attributes_api.py b/sib_api_v3_sdk/api/attributes_api.py index f8505a5..1e5bc67 100644 --- a/sib_api_v3_sdk/api/attributes_api.py +++ b/sib_api_v3_sdk/api/attributes_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,11 +37,11 @@ def create_attribute(self, attribute_category, attribute_name, create_attribute, """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) :param CreateAttribute create_attribute: Values to create an attribute (required) @@ -50,7 +50,7 @@ def create_attribute(self, attribute_category, attribute_name, create_attribute, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 else: (data) = self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 @@ -60,11 +60,11 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) :param CreateAttribute create_attribute: Values to create an attribute (required) @@ -74,7 +74,7 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr """ all_params = ['attribute_category', 'attribute_name', 'create_attribute'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -140,7 +140,7 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -150,11 +150,11 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -162,7 +162,7 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 else: (data) = self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 @@ -172,11 +172,11 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -185,7 +185,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """ all_params = ['attribute_category', 'attribute_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -245,7 +245,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -255,17 +255,17 @@ def get_attributes(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_attributes_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_attributes_with_http_info(**kwargs) # noqa: E501 @@ -275,18 +275,18 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -334,7 +334,7 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAttributes', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -344,11 +344,11 @@ def update_attribute(self, attribute_category, attribute_name, update_attribute, """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :param UpdateAttribute update_attribute: Values to update an attribute (required) @@ -357,7 +357,7 @@ def update_attribute(self, attribute_category, attribute_name, update_attribute, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 else: (data) = self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 @@ -367,11 +367,11 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :param UpdateAttribute update_attribute: Values to update an attribute (required) @@ -381,7 +381,7 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up """ all_params = ['attribute_category', 'attribute_name', 'update_attribute'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -447,7 +447,7 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/contacts_api.py b/sib_api_v3_sdk/api/contacts_api.py index 1ab6a70..9d5337e 100644 --- a/sib_api_v3_sdk/api/contacts_api.py +++ b/sib_api_v3_sdk/api/contacts_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,11 +37,11 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo @@ -49,7 +49,7 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 else: (data) = self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 @@ -59,11 +59,11 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list_with_http_info(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo @@ -72,7 +72,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): """ all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -132,7 +132,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -142,11 +142,11 @@ def create_attribute(self, attribute_category, attribute_name, create_attribute, """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute(attribute_category, attribute_name, create_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) :param CreateAttribute create_attribute: Values to create an attribute (required) @@ -155,7 +155,7 @@ def create_attribute(self, attribute_category, attribute_name, create_attribute, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 else: (data) = self.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, **kwargs) # noqa: E501 @@ -165,11 +165,11 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr """Creates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_attribute_with_http_info(attribute_category, attribute_name, create_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the attribute (required) :param CreateAttribute create_attribute: Values to create an attribute (required) @@ -179,7 +179,7 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr """ all_params = ['attribute_category', 'attribute_name', 'create_attribute'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -245,7 +245,7 @@ def create_attribute_with_http_info(self, attribute_category, attribute_name, cr files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -255,18 +255,18 @@ def create_contact(self, create_contact, **kwargs): # noqa: E501 """Create a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_contact(create_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_contact(create_contact, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateContact create_contact: Values to create a contact (required) :return: CreateUpdateContactModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_contact_with_http_info(create_contact, **kwargs) # noqa: E501 else: (data) = self.create_contact_with_http_info(create_contact, **kwargs) # noqa: E501 @@ -276,11 +276,11 @@ def create_contact_with_http_info(self, create_contact, **kwargs): # noqa: E501 """Create a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_contact_with_http_info(create_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_contact_with_http_info(create_contact, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateContact create_contact: Values to create a contact (required) :return: CreateUpdateContactModel If the method is called asynchronously, @@ -288,7 +288,7 @@ def create_contact_with_http_info(self, create_contact, **kwargs): # noqa: E501 """ all_params = ['create_contact'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -342,7 +342,7 @@ def create_contact_with_http_info(self, create_contact, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateUpdateContactModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -352,18 +352,18 @@ def create_folder(self, create_folder, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder(create_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 else: (data) = self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 @@ -373,11 +373,11 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder_with_http_info(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder_with_http_info(create_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, @@ -385,7 +385,7 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 """ all_params = ['create_folder'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -439,7 +439,7 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -449,18 +449,18 @@ def create_list(self, create_list, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list(create_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateList create_list: Values to create a list (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 else: (data) = self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 @@ -470,11 +470,11 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list_with_http_info(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list_with_http_info(create_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateList create_list: Values to create a list (required) :return: CreateModel If the method is called asynchronously, @@ -482,7 +482,7 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 """ all_params = ['create_list'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -536,7 +536,7 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -546,11 +546,11 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -558,7 +558,7 @@ def delete_attribute(self, attribute_category, attribute_name, **kwargs): # noq returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 else: (data) = self.delete_attribute_with_http_info(attribute_category, attribute_name, **kwargs) # noqa: E501 @@ -568,11 +568,11 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """Deletes an attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_attribute_with_http_info(attribute_category, attribute_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :return: None @@ -581,7 +581,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** """ all_params = ['attribute_category', 'attribute_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -641,7 +641,7 @@ def delete_attribute_with_http_info(self, attribute_category, attribute_name, ** files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -651,18 +651,18 @@ def delete_contact(self, email, **kwargs): # noqa: E501 """Deletes a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_contact(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_contact(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_contact_with_http_info(email, **kwargs) # noqa: E501 else: (data) = self.delete_contact_with_http_info(email, **kwargs) # noqa: E501 @@ -672,11 +672,11 @@ def delete_contact_with_http_info(self, email, **kwargs): # noqa: E501 """Deletes a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_contact_with_http_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_contact_with_http_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :return: None If the method is called asynchronously, @@ -684,7 +684,7 @@ def delete_contact_with_http_info(self, email, **kwargs): # noqa: E501 """ all_params = ['email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -738,7 +738,7 @@ def delete_contact_with_http_info(self, email, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -748,18 +748,18 @@ def delete_folder(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -769,11 +769,11 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, @@ -781,7 +781,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -835,7 +835,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -845,18 +845,18 @@ def delete_list(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -866,11 +866,11 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, @@ -878,7 +878,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -932,7 +932,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -942,17 +942,17 @@ def get_attributes(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_attributes_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_attributes_with_http_info(**kwargs) # noqa: E501 @@ -962,18 +962,18 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 """Lists all attributes # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_attributes_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_attributes_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetAttributes If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1021,7 +1021,7 @@ def get_attributes_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAttributes', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1031,18 +1031,18 @@ def get_contact_info(self, email, **kwargs): # noqa: E501 """Retrieves contact informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact OR its SMS attribute value (required) :return: GetExtendedContactDetails If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contact_info_with_http_info(email, **kwargs) # noqa: E501 else: (data) = self.get_contact_info_with_http_info(email, **kwargs) # noqa: E501 @@ -1052,11 +1052,11 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501 """Retrieves contact informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_info_with_http_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_info_with_http_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact OR its SMS attribute value (required) :return: GetExtendedContactDetails If the method is called asynchronously, @@ -1064,7 +1064,7 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501 """ all_params = ['email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1118,7 +1118,7 @@ def get_contact_info_with_http_info(self, email, **kwargs): # noqa: E501 files=local_var_files, response_type='GetExtendedContactDetails', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1128,18 +1128,18 @@ def get_contact_stats(self, email, **kwargs): # noqa: E501 """Get the campaigns statistics for a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_stats(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_stats(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email address (urlencoded) of the contact (required) :return: GetContactCampaignStats If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contact_stats_with_http_info(email, **kwargs) # noqa: E501 else: (data) = self.get_contact_stats_with_http_info(email, **kwargs) # noqa: E501 @@ -1149,11 +1149,11 @@ def get_contact_stats_with_http_info(self, email, **kwargs): # noqa: E501 """Get the campaigns statistics for a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contact_stats_with_http_info(email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contact_stats_with_http_info(email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email address (urlencoded) of the contact (required) :return: GetContactCampaignStats If the method is called asynchronously, @@ -1161,7 +1161,7 @@ def get_contact_stats_with_http_info(self, email, **kwargs): # noqa: E501 """ all_params = ['email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1215,7 +1215,7 @@ def get_contact_stats_with_http_info(self, email, **kwargs): # noqa: E501 files=local_var_files, response_type='GetContactCampaignStats', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1225,11 +1225,11 @@ def get_contacts(self, **kwargs): # noqa: E501 """Get all the contacts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. @@ -1238,7 +1238,7 @@ def get_contacts(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contacts_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_contacts_with_http_info(**kwargs) # noqa: E501 @@ -1248,11 +1248,11 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 """Get all the contacts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. @@ -1262,7 +1262,7 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset', 'modified_since'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1318,7 +1318,7 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetContacts', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1328,11 +1328,11 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page @@ -1342,7 +1342,7 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -1352,11 +1352,11 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page @@ -1367,7 +1367,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """ all_params = ['list_id', 'modified_since', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1429,7 +1429,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 files=local_var_files, response_type='GetContacts', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1439,18 +1439,18 @@ def get_folder(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -1460,11 +1460,11 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, @@ -1472,7 +1472,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1526,7 +1526,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolder', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1536,11 +1536,11 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -1549,7 +1549,7 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -1559,11 +1559,11 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -1573,7 +1573,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1633,7 +1633,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolderLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1643,11 +1643,11 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -1655,7 +1655,7 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 else: (data) = self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 @@ -1665,11 +1665,11 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders_with_http_info(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders_with_http_info(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -1678,7 +1678,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1740,7 +1740,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolders', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1750,18 +1750,18 @@ def get_list(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -1771,11 +1771,11 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, @@ -1783,7 +1783,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1837,7 +1837,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetExtendedList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1847,11 +1847,11 @@ def get_lists(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -1859,7 +1859,7 @@ def get_lists(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_lists_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_lists_with_http_info(**kwargs) # noqa: E501 @@ -1869,11 +1869,11 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -1882,7 +1882,7 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1936,7 +1936,7 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1947,18 +1947,18 @@ def import_contacts(self, request_contact_import, **kwargs): # noqa: E501 It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.import_contacts(request_contact_import, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.import_contacts(request_contact_import, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RequestContactImport request_contact_import: Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.import_contacts_with_http_info(request_contact_import, **kwargs) # noqa: E501 else: (data) = self.import_contacts_with_http_info(request_contact_import, **kwargs) # noqa: E501 @@ -1969,11 +1969,11 @@ def import_contacts_with_http_info(self, request_contact_import, **kwargs): # n It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.import_contacts_with_http_info(request_contact_import, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.import_contacts_with_http_info(request_contact_import, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RequestContactImport request_contact_import: Values to import contacts in Sendinblue. To know more about the expected format, please have a look at ``https://help.sendinblue.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns`` (required) :return: CreatedProcessId If the method is called asynchronously, @@ -1981,7 +1981,7 @@ def import_contacts_with_http_info(self, request_contact_import, **kwargs): # n """ all_params = ['request_contact_import'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2035,7 +2035,7 @@ def import_contacts_with_http_info(self, request_contact_import, **kwargs): # n files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2045,11 +2045,11 @@ def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo @@ -2057,7 +2057,7 @@ def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 else: (data) = self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 @@ -2067,11 +2067,11 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo @@ -2080,7 +2080,7 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa """ all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2140,7 +2140,7 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2151,18 +2151,18 @@ def request_contact_export(self, request_contact_export, **kwargs): # noqa: E50 It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_contact_export(request_contact_export, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_contact_export(request_contact_export, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RequestContactExport request_contact_export: Values to request a contact export (required) :return: CreatedProcessId If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.request_contact_export_with_http_info(request_contact_export, **kwargs) # noqa: E501 else: (data) = self.request_contact_export_with_http_info(request_contact_export, **kwargs) # noqa: E501 @@ -2173,11 +2173,11 @@ def request_contact_export_with_http_info(self, request_contact_export, **kwargs It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_contact_export_with_http_info(request_contact_export, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_contact_export_with_http_info(request_contact_export, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RequestContactExport request_contact_export: Values to request a contact export (required) :return: CreatedProcessId If the method is called asynchronously, @@ -2185,7 +2185,7 @@ def request_contact_export_with_http_info(self, request_contact_export, **kwargs """ all_params = ['request_contact_export'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2239,7 +2239,7 @@ def request_contact_export_with_http_info(self, request_contact_export, **kwargs files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2249,11 +2249,11 @@ def update_attribute(self, attribute_category, attribute_name, update_attribute, """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute(attribute_category, attribute_name, update_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :param UpdateAttribute update_attribute: Values to update an attribute (required) @@ -2262,7 +2262,7 @@ def update_attribute(self, attribute_category, attribute_name, update_attribute, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 else: (data) = self.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, **kwargs) # noqa: E501 @@ -2272,11 +2272,11 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up """Updates contact attribute # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_attribute_with_http_info(attribute_category, attribute_name, update_attribute, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str attribute_category: Category of the attribute (required) :param str attribute_name: Name of the existing attribute (required) :param UpdateAttribute update_attribute: Values to update an attribute (required) @@ -2286,7 +2286,7 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up """ all_params = ['attribute_category', 'attribute_name', 'update_attribute'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2352,7 +2352,7 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2362,11 +2362,11 @@ def update_contact(self, email, update_contact, **kwargs): # noqa: E501 """Updates a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_contact(email, update_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_contact(email, update_contact, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :param UpdateContact update_contact: Values to update a contact (required) :return: None @@ -2374,7 +2374,7 @@ def update_contact(self, email, update_contact, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_contact_with_http_info(email, update_contact, **kwargs) # noqa: E501 else: (data) = self.update_contact_with_http_info(email, update_contact, **kwargs) # noqa: E501 @@ -2384,11 +2384,11 @@ def update_contact_with_http_info(self, email, update_contact, **kwargs): # noq """Updates a contact # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_contact_with_http_info(email, update_contact, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_contact_with_http_info(email, update_contact, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Email (urlencoded) of the contact (required) :param UpdateContact update_contact: Values to update a contact (required) :return: None @@ -2397,7 +2397,7 @@ def update_contact_with_http_info(self, email, update_contact, **kwargs): # noq """ all_params = ['email', 'update_contact'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2457,7 +2457,7 @@ def update_contact_with_http_info(self, email, update_contact, **kwargs): # noq files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2467,11 +2467,11 @@ def update_folder(self, folder_id, update_folder, **kwargs): # noqa: E501 """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder(folder_id, update_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None @@ -2479,7 +2479,7 @@ def update_folder(self, folder_id, update_folder, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 else: (data) = self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 @@ -2489,11 +2489,11 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder_with_http_info(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder_with_http_info(folder_id, update_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None @@ -2502,7 +2502,7 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n """ all_params = ['folder_id', 'update_folder'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2562,7 +2562,7 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2572,11 +2572,11 @@ def update_list(self, list_id, update_list, **kwargs): # noqa: E501 """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list(list_id, update_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None @@ -2584,7 +2584,7 @@ def update_list(self, list_id, update_list, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 else: (data) = self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 @@ -2594,11 +2594,11 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list_with_http_info(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list_with_http_info(list_id, update_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None @@ -2607,7 +2607,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E """ all_params = ['list_id', 'update_list'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2667,7 +2667,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/email_campaigns_api.py b/sib_api_v3_sdk/api/email_campaigns_api.py index 344c023..d644c3c 100644 --- a/sib_api_v3_sdk/api/email_campaigns_api.py +++ b/sib_api_v3_sdk/api/email_campaigns_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,18 +37,18 @@ def create_email_campaign(self, email_campaigns, **kwargs): # noqa: E501 """Create an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_email_campaign(email_campaigns, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_email_campaign(email_campaigns, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateEmailCampaign email_campaigns: Values to create a campaign (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_email_campaign_with_http_info(email_campaigns, **kwargs) # noqa: E501 else: (data) = self.create_email_campaign_with_http_info(email_campaigns, **kwargs) # noqa: E501 @@ -58,11 +58,11 @@ def create_email_campaign_with_http_info(self, email_campaigns, **kwargs): # no """Create an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_email_campaign_with_http_info(email_campaigns, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_email_campaign_with_http_info(email_campaigns, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateEmailCampaign email_campaigns: Values to create a campaign (required) :return: CreateModel If the method is called asynchronously, @@ -70,7 +70,7 @@ def create_email_campaign_with_http_info(self, email_campaigns, **kwargs): # no """ all_params = ['email_campaigns'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -124,7 +124,7 @@ def create_email_campaign_with_http_info(self, email_campaigns, **kwargs): # no files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +134,18 @@ def delete_email_campaign(self, campaign_id, **kwargs): # noqa: E501 """Delete an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_email_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_email_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.delete_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -155,11 +155,11 @@ def delete_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: """Delete an email campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_email_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_email_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, @@ -167,7 +167,7 @@ def delete_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -221,7 +221,7 @@ def delete_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,11 +231,11 @@ def email_export_recipients(self, campaign_id, **kwargs): # noqa: E501 """Export the recipients of a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.email_export_recipients(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.email_export_recipients(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param EmailExportRecipients recipient_export: Values to send for a recipient export request :return: CreatedProcessId @@ -243,7 +243,7 @@ def email_export_recipients(self, campaign_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.email_export_recipients_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.email_export_recipients_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -253,11 +253,11 @@ def email_export_recipients_with_http_info(self, campaign_id, **kwargs): # noqa """Export the recipients of a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.email_export_recipients_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.email_export_recipients_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param EmailExportRecipients recipient_export: Values to send for a recipient export request :return: CreatedProcessId @@ -266,7 +266,7 @@ def email_export_recipients_with_http_info(self, campaign_id, **kwargs): # noqa """ all_params = ['campaign_id', 'recipient_export'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -322,7 +322,106 @@ def email_export_recipients_with_http_info(self, campaign_id, **kwargs): # noqa files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_ab_test_campaign_result(self, campaign_id, **kwargs): # noqa: E501 + """Get A/B test email campaign result # noqa: E501 + + Obtain winning version of an A/B test email campaign # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ab_test_campaign_result(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int campaign_id: Id of the A/B test campaign (required) + :return: AbTestCampaignResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_ab_test_campaign_result_with_http_info(campaign_id, **kwargs) # noqa: E501 + else: + (data) = self.get_ab_test_campaign_result_with_http_info(campaign_id, **kwargs) # noqa: E501 + return data + + def get_ab_test_campaign_result_with_http_info(self, campaign_id, **kwargs): # noqa: E501 + """Get A/B test email campaign result # noqa: E501 + + Obtain winning version of an A/B test email campaign # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ab_test_campaign_result_with_http_info(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int campaign_id: Id of the A/B test campaign (required) + :return: AbTestCampaignResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['campaign_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_ab_test_campaign_result" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'campaign_id' is set + if ('campaign_id' not in params or + params['campaign_id'] is None): + raise ValueError("Missing the required parameter `campaign_id` when calling `get_ab_test_campaign_result`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'campaign_id' in params: + path_params['campaignId'] = params['campaign_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/emailCampaigns/{campaignId}/abTestCampaignResult', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AbTestCampaignResult', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -332,18 +431,18 @@ def get_email_campaign(self, campaign_id, **kwargs): # noqa: E501 """Get campaign informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: GetEmailCampaign If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.get_email_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -353,11 +452,11 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 """Get campaign informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: GetEmailCampaign If the method is called asynchronously, @@ -365,7 +464,7 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -419,7 +518,7 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 files=local_var_files, response_type='GetEmailCampaign', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -429,11 +528,11 @@ def get_email_campaigns(self, **kwargs): # noqa: E501 """Return all your created campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaigns(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaigns(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on the type of the campaigns :param str status: Filter on the status of the campaign :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) @@ -445,7 +544,7 @@ def get_email_campaigns(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_email_campaigns_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_email_campaigns_with_http_info(**kwargs) # noqa: E501 @@ -455,11 +554,11 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 """Return all your created campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_campaigns_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_campaigns_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on the type of the campaigns :param str status: Filter on the status of the campaign :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) @@ -472,7 +571,7 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['type', 'status', 'start_date', 'end_date', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -534,42 +633,141 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetEmailCampaigns', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_shared_template_url(self, campaign_id, **kwargs): # noqa: E501 + """Get a shared template url # noqa: E501 + + Get a unique URL to share & import an email template from one Sendinblue account to another. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_shared_template_url(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int campaign_id: Id of the campaign or template (required) + :return: GetSharedTemplateUrl + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_shared_template_url_with_http_info(campaign_id, **kwargs) # noqa: E501 + else: + (data) = self.get_shared_template_url_with_http_info(campaign_id, **kwargs) # noqa: E501 + return data + + def get_shared_template_url_with_http_info(self, campaign_id, **kwargs): # noqa: E501 + """Get a shared template url # noqa: E501 + + Get a unique URL to share & import an email template from one Sendinblue account to another. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_shared_template_url_with_http_info(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int campaign_id: Id of the campaign or template (required) + :return: GetSharedTemplateUrl + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['campaign_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_shared_template_url" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'campaign_id' is set + if ('campaign_id' not in params or + params['campaign_id'] is None): + raise ValueError("Missing the required parameter `campaign_id` when calling `get_shared_template_url`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'campaign_id' in params: + path_params['campaignId'] = params['campaign_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/emailCampaigns/{campaignId}/sharedUrl', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetSharedTemplateUrl', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def send_email_campaign_now(self, campaign_id, **kwargs): # noqa: E501 - """Send an email campaign id of the campaign immediately # noqa: E501 + """Send an email campaign immediately, based on campaignId # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_email_campaign_now(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_email_campaign_now(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_email_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.send_email_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 return data def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: E501 - """Send an email campaign id of the campaign immediately # noqa: E501 + """Send an email campaign immediately, based on campaignId # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_email_campaign_now_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_email_campaign_now_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :return: None If the method is called asynchronously, @@ -577,7 +775,7 @@ def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -631,7 +829,7 @@ def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -642,11 +840,11 @@ def send_report(self, campaign_id, send_report, **kwargs): # noqa: E501 A PDF will be sent to the specified email addresses # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_report(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_report(campaign_id, send_report, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None @@ -654,7 +852,7 @@ def send_report(self, campaign_id, send_report, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 else: (data) = self.send_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 @@ -665,11 +863,11 @@ def send_report_with_http_info(self, campaign_id, send_report, **kwargs): # noq A PDF will be sent to the specified email addresses # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_report_with_http_info(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_report_with_http_info(campaign_id, send_report, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None @@ -678,7 +876,7 @@ def send_report_with_http_info(self, campaign_id, send_report, **kwargs): # noq """ all_params = ['campaign_id', 'send_report'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -738,7 +936,7 @@ def send_report_with_http_info(self, campaign_id, send_report, **kwargs): # noq files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -748,11 +946,11 @@ def send_test_email(self, campaign_id, email_to, **kwargs): # noqa: E501 """Send an email campaign to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_email(campaign_id, email_to, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_email(campaign_id, email_to, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param SendTestEmail email_to: (required) :return: None @@ -760,7 +958,7 @@ def send_test_email(self, campaign_id, email_to, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_test_email_with_http_info(campaign_id, email_to, **kwargs) # noqa: E501 else: (data) = self.send_test_email_with_http_info(campaign_id, email_to, **kwargs) # noqa: E501 @@ -770,11 +968,11 @@ def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): # no """Send an email campaign to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_email_with_http_info(campaign_id, email_to, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_email_with_http_info(campaign_id, email_to, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param SendTestEmail email_to: (required) :return: None @@ -783,7 +981,7 @@ def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): # no """ all_params = ['campaign_id', 'email_to'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -843,7 +1041,7 @@ def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): # no files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -853,11 +1051,11 @@ def update_campaign_status(self, campaign_id, status, **kwargs): # noqa: E501 """Update a campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_campaign_status(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_campaign_status(campaign_id, status, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign (required) :return: None @@ -865,7 +1063,7 @@ def update_campaign_status(self, campaign_id, status, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 else: (data) = self.update_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 @@ -875,11 +1073,11 @@ def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): """Update a campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_campaign_status_with_http_info(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_campaign_status_with_http_info(campaign_id, status, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign (required) :return: None @@ -888,7 +1086,7 @@ def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): """ all_params = ['campaign_id', 'status'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -948,7 +1146,7 @@ def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -958,11 +1156,11 @@ def update_email_campaign(self, campaign_id, email_campaign, **kwargs): # noqa: """Update a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_email_campaign(campaign_id, email_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_email_campaign(campaign_id, email_campaign, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param UpdateEmailCampaign email_campaign: Values to update a campaign (required) :return: None @@ -970,7 +1168,7 @@ def update_email_campaign(self, campaign_id, email_campaign, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_email_campaign_with_http_info(campaign_id, email_campaign, **kwargs) # noqa: E501 else: (data) = self.update_email_campaign_with_http_info(campaign_id, email_campaign, **kwargs) # noqa: E501 @@ -980,11 +1178,11 @@ def update_email_campaign_with_http_info(self, campaign_id, email_campaign, **kw """Update a campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_email_campaign_with_http_info(campaign_id, email_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_email_campaign_with_http_info(campaign_id, email_campaign, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the campaign (required) :param UpdateEmailCampaign email_campaign: Values to update a campaign (required) :return: None @@ -993,7 +1191,7 @@ def update_email_campaign_with_http_info(self, campaign_id, email_campaign, **kw """ all_params = ['campaign_id', 'email_campaign'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1053,7 +1251,7 @@ def update_email_campaign_with_http_info(self, campaign_id, email_campaign, **kw files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/folders_api.py b/sib_api_v3_sdk/api/folders_api.py index cd5147e..4d87d19 100644 --- a/sib_api_v3_sdk/api/folders_api.py +++ b/sib_api_v3_sdk/api/folders_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,18 +37,18 @@ def create_folder(self, create_folder, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder(create_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 else: (data) = self.create_folder_with_http_info(create_folder, **kwargs) # noqa: E501 @@ -58,11 +58,11 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 """Create a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_folder_with_http_info(create_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_folder_with_http_info(create_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, @@ -70,7 +70,7 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 """ all_params = ['create_folder'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -124,7 +124,7 @@ def create_folder_with_http_info(self, create_folder, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +134,18 @@ def delete_folder(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.delete_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -155,11 +155,11 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Delete a folder (and all its lists) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, @@ -167,7 +167,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -221,7 +221,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,18 +231,18 @@ def get_folder(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -252,11 +252,11 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Returns folder details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, @@ -264,7 +264,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -318,7 +318,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolder', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -328,11 +328,11 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -341,7 +341,7 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -351,11 +351,11 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -365,7 +365,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -425,7 +425,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolderLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -435,11 +435,11 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -447,7 +447,7 @@ def get_folders(self, limit, offset, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 else: (data) = self.get_folders_with_http_info(limit, offset, **kwargs) # noqa: E501 @@ -457,11 +457,11 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """Get all the folders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folders_with_http_info(limit, offset, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folders_with_http_info(limit, offset, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page (required) :param int offset: Index of the first document of the page (required) :return: GetFolders @@ -470,7 +470,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -532,7 +532,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolders', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -542,11 +542,11 @@ def update_folder(self, folder_id, update_folder, **kwargs): # noqa: E501 """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder(folder_id, update_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None @@ -554,7 +554,7 @@ def update_folder(self, folder_id, update_folder, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 else: (data) = self.update_folder_with_http_info(folder_id, update_folder, **kwargs) # noqa: E501 @@ -564,11 +564,11 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n """Update a contact folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_folder_with_http_info(folder_id, update_folder, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_folder_with_http_info(folder_id, update_folder, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None @@ -577,7 +577,7 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n """ all_params = ['folder_id', 'update_folder'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -637,7 +637,7 @@ def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): # n files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/lists_api.py b/sib_api_v3_sdk/api/lists_api.py index 7199cb1..9fde2ce 100644 --- a/sib_api_v3_sdk/api/lists_api.py +++ b/sib_api_v3_sdk/api/lists_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,11 +37,11 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo @@ -49,7 +49,7 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 else: (data) = self.add_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 @@ -59,11 +59,11 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): """Add existing contacts to a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_contact_to_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_contact_to_list_with_http_info(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo @@ -72,7 +72,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): """ all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -132,7 +132,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -142,18 +142,18 @@ def create_list(self, create_list, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list(create_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateList create_list: Values to create a list (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 else: (data) = self.create_list_with_http_info(create_list, **kwargs) # noqa: E501 @@ -163,11 +163,11 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 """Create a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_list_with_http_info(create_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_list_with_http_info(create_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateList create_list: Values to create a list (required) :return: CreateModel If the method is called asynchronously, @@ -175,7 +175,7 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 """ all_params = ['create_list'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -229,7 +229,7 @@ def create_list_with_http_info(self, create_list, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -239,18 +239,18 @@ def delete_list(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -260,11 +260,11 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Delete a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, @@ -272,7 +272,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -326,7 +326,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -336,11 +336,11 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page @@ -350,7 +350,7 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_contacts_from_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -360,11 +360,11 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """Get the contacts in a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_contacts_from_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_contacts_from_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param datetime modified_since: Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. :param int limit: Number of documents per page @@ -375,7 +375,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 """ all_params = ['list_id', 'modified_since', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -437,7 +437,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 files=local_var_files, response_type='GetContacts', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -447,11 +447,11 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -460,7 +460,7 @@ def get_folder_lists(self, folder_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 else: (data) = self.get_folder_lists_with_http_info(folder_id, **kwargs) # noqa: E501 @@ -470,11 +470,11 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """Get the lists in a folder # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_folder_lists_with_http_info(folder_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_folder_lists_with_http_info(folder_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page @@ -484,7 +484,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 """ all_params = ['folder_id', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -544,7 +544,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetFolderLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -554,18 +554,18 @@ def get_list(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 else: (data) = self.get_list_with_http_info(list_id, **kwargs) # noqa: E501 @@ -575,11 +575,11 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """Get the details of a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_list_with_http_info(list_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_list_with_http_info(list_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, @@ -587,7 +587,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 """ all_params = ['list_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -641,7 +641,7 @@ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetExtendedList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -651,11 +651,11 @@ def get_lists(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -663,7 +663,7 @@ def get_lists(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_lists_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_lists_with_http_info(**kwargs) # noqa: E501 @@ -673,11 +673,11 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """Get all the lists # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_lists_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_lists_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetLists @@ -686,7 +686,7 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -740,7 +740,7 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetLists', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -750,11 +750,11 @@ def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo @@ -762,7 +762,7 @@ def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 else: (data) = self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 @@ -772,11 +772,11 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo @@ -785,7 +785,7 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa """ all_params = ['list_id', 'contact_emails'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -845,7 +845,7 @@ def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwa files=local_var_files, response_type='PostContactInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -855,11 +855,11 @@ def update_list(self, list_id, update_list, **kwargs): # noqa: E501 """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list(list_id, update_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None @@ -867,7 +867,7 @@ def update_list(self, list_id, update_list, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 else: (data) = self.update_list_with_http_info(list_id, update_list, **kwargs) # noqa: E501 @@ -877,11 +877,11 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E """Update a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_list_with_http_info(list_id, update_list, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_list_with_http_info(list_id, update_list, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None @@ -890,7 +890,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E """ all_params = ['list_id', 'update_list'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -950,7 +950,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): # noqa: E files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/process_api.py b/sib_api_v3_sdk/api/process_api.py index 0026114..41d4247 100644 --- a/sib_api_v3_sdk/api/process_api.py +++ b/sib_api_v3_sdk/api/process_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,18 +37,18 @@ def get_process(self, process_id, **kwargs): # noqa: E501 """Return the informations for a process # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_process(process_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_process(process_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int process_id: Id of the process (required) :return: GetProcess If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_process_with_http_info(process_id, **kwargs) # noqa: E501 else: (data) = self.get_process_with_http_info(process_id, **kwargs) # noqa: E501 @@ -58,11 +58,11 @@ def get_process_with_http_info(self, process_id, **kwargs): # noqa: E501 """Return the informations for a process # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_process_with_http_info(process_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_process_with_http_info(process_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int process_id: Id of the process (required) :return: GetProcess If the method is called asynchronously, @@ -70,7 +70,7 @@ def get_process_with_http_info(self, process_id, **kwargs): # noqa: E501 """ all_params = ['process_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -124,7 +124,7 @@ def get_process_with_http_info(self, process_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetProcess', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,11 +134,11 @@ def get_processes(self, **kwargs): # noqa: E501 """Return all the processes for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_processes(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_processes(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :return: GetProcesses @@ -146,7 +146,7 @@ def get_processes(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_processes_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_processes_with_http_info(**kwargs) # noqa: E501 @@ -156,11 +156,11 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 """Return all the processes for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_processes_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_processes_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :return: GetProcesses @@ -169,7 +169,7 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -223,7 +223,7 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetProcesses', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/reseller_api.py b/sib_api_v3_sdk/api/reseller_api.py index c284f8c..39aa6e8 100644 --- a/sib_api_v3_sdk/api/reseller_api.py +++ b/sib_api_v3_sdk/api/reseller_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,11 +37,11 @@ def add_credits(self, child_auth_key, add_credits, **kwargs): # noqa: E501 """Add Email and/or SMS credits to a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_credits(child_auth_key, add_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_credits(child_auth_key, add_credits, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param AddCredits add_credits: Values to post to add credit to a specific child account (required) :return: RemainingCreditModel @@ -49,7 +49,7 @@ def add_credits(self, child_auth_key, add_credits, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.add_credits_with_http_info(child_auth_key, add_credits, **kwargs) # noqa: E501 else: (data) = self.add_credits_with_http_info(child_auth_key, add_credits, **kwargs) # noqa: E501 @@ -59,11 +59,11 @@ def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # """Add Email and/or SMS credits to a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_credits_with_http_info(child_auth_key, add_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_credits_with_http_info(child_auth_key, add_credits, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param AddCredits add_credits: Values to post to add credit to a specific child account (required) :return: RemainingCreditModel @@ -72,7 +72,7 @@ def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # """ all_params = ['child_auth_key', 'add_credits'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -132,7 +132,7 @@ def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # files=local_var_files, response_type='RemainingCreditModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -142,11 +142,11 @@ def associate_ip_to_child(self, child_auth_key, ip, **kwargs): # noqa: E501 """Associate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.associate_ip_to_child(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.associate_ip_to_child(child_auth_key, ip, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param ManageIp ip: IP to associate (required) :return: None @@ -154,7 +154,7 @@ def associate_ip_to_child(self, child_auth_key, ip, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.associate_ip_to_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 else: (data) = self.associate_ip_to_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 @@ -164,11 +164,11 @@ def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # """Associate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.associate_ip_to_child_with_http_info(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.associate_ip_to_child_with_http_info(child_auth_key, ip, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param ManageIp ip: IP to associate (required) :return: None @@ -177,7 +177,7 @@ def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # """ all_params = ['child_auth_key', 'ip'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -237,7 +237,7 @@ def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -247,19 +247,19 @@ def create_child_domain(self, child_auth_key, add_child_domain, **kwargs): # no """Creates a domain for a child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_child_domain(child_auth_key, add_child_domain, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_child_domain(child_auth_key, add_child_domain, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) - :param AddChildDomain add_child_domain: Sender domain to add for a specific child account (required) + :param AddChildDomain add_child_domain: Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_child_domain_with_http_info(child_auth_key, add_child_domain, **kwargs) # noqa: E501 else: (data) = self.create_child_domain_with_http_info(child_auth_key, add_child_domain, **kwargs) # noqa: E501 @@ -269,20 +269,20 @@ def create_child_domain_with_http_info(self, child_auth_key, add_child_domain, * """Creates a domain for a child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_child_domain_with_http_info(child_auth_key, add_child_domain, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_child_domain_with_http_info(child_auth_key, add_child_domain, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) - :param AddChildDomain add_child_domain: Sender domain to add for a specific child account (required) + :param AddChildDomain add_child_domain: Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) :return: None If the method is called asynchronously, returns the request thread. """ all_params = ['child_auth_key', 'add_child_domain'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -342,7 +342,7 @@ def create_child_domain_with_http_info(self, child_auth_key, add_child_domain, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -352,18 +352,18 @@ def create_reseller_child(self, **kwargs): # noqa: E501 """Creates a reseller child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_reseller_child(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_reseller_child(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateChild reseller_child: reseller child to add :return: CreateReseller If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_reseller_child_with_http_info(**kwargs) # noqa: E501 else: (data) = self.create_reseller_child_with_http_info(**kwargs) # noqa: E501 @@ -373,11 +373,11 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 """Creates a reseller child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_reseller_child_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_reseller_child_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateChild reseller_child: reseller child to add :return: CreateReseller If the method is called asynchronously, @@ -385,7 +385,7 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['reseller_child'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -435,7 +435,7 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateReseller', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -445,11 +445,11 @@ def delete_child_domain(self, child_auth_key, domain_name, **kwargs): # noqa: E """Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_child_domain(child_auth_key, domain_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_child_domain(child_auth_key, domain_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param str domain_name: Pass the existing domain that needs to be deleted (required) :return: None @@ -457,7 +457,7 @@ def delete_child_domain(self, child_auth_key, domain_name, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_child_domain_with_http_info(child_auth_key, domain_name, **kwargs) # noqa: E501 else: (data) = self.delete_child_domain_with_http_info(child_auth_key, domain_name, **kwargs) # noqa: E501 @@ -467,11 +467,11 @@ def delete_child_domain_with_http_info(self, child_auth_key, domain_name, **kwar """Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_child_domain_with_http_info(child_auth_key, domain_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_child_domain_with_http_info(child_auth_key, domain_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param str domain_name: Pass the existing domain that needs to be deleted (required) :return: None @@ -480,7 +480,7 @@ def delete_child_domain_with_http_info(self, child_auth_key, domain_name, **kwar """ all_params = ['child_auth_key', 'domain_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -540,7 +540,7 @@ def delete_child_domain_with_http_info(self, child_auth_key, domain_name, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -550,18 +550,18 @@ def delete_reseller_child(self, child_auth_key, **kwargs): # noqa: E501 """Deletes a single reseller child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_reseller_child(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_reseller_child(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_reseller_child_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: (data) = self.delete_reseller_child_with_http_info(child_auth_key, **kwargs) # noqa: E501 @@ -571,11 +571,11 @@ def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noq """Deletes a single reseller child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_reseller_child_with_http_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_reseller_child_with_http_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: None If the method is called asynchronously, @@ -583,7 +583,7 @@ def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noq """ all_params = ['child_auth_key'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -637,7 +637,7 @@ def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noq files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -647,11 +647,11 @@ def dissociate_ip_from_child(self, child_auth_key, ip, **kwargs): # noqa: E501 """Dissociate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.dissociate_ip_from_child(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.dissociate_ip_from_child(child_auth_key, ip, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param ManageIp ip: IP to dissociate (required) :return: None @@ -659,7 +659,7 @@ def dissociate_ip_from_child(self, child_auth_key, ip, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.dissociate_ip_from_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 else: (data) = self.dissociate_ip_from_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 @@ -669,11 +669,11 @@ def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): """Dissociate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.dissociate_ip_from_child_with_http_info(child_auth_key, ip, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.dissociate_ip_from_child_with_http_info(child_auth_key, ip, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param ManageIp ip: IP to dissociate (required) :return: None @@ -682,7 +682,7 @@ def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): """ all_params = ['child_auth_key', 'ip'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -742,7 +742,104 @@ def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_child_account_creation_status(self, child_auth_key, **kwargs): # noqa: E501 + """Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_account_creation_status(child_auth_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str child_auth_key: auth key of reseller's child (required) + :return: GetChildAccountCreationStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_child_account_creation_status_with_http_info(child_auth_key, **kwargs) # noqa: E501 + else: + (data) = self.get_child_account_creation_status_with_http_info(child_auth_key, **kwargs) # noqa: E501 + return data + + def get_child_account_creation_status_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 + """Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_account_creation_status_with_http_info(child_auth_key, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str child_auth_key: auth key of reseller's child (required) + :return: GetChildAccountCreationStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['child_auth_key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_child_account_creation_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `get_child_account_creation_status`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/reseller/children/{childAuthKey}/accountCreationStatus', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetChildAccountCreationStatus', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -752,18 +849,18 @@ def get_child_domains(self, child_auth_key, **kwargs): # noqa: E501 """Gets all the sender domains of a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_domains(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_domains(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetChildDomains If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_child_domains_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: (data) = self.get_child_domains_with_http_info(child_auth_key, **kwargs) # noqa: E501 @@ -773,11 +870,11 @@ def get_child_domains_with_http_info(self, child_auth_key, **kwargs): # noqa: E """Gets all the sender domains of a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_domains_with_http_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_domains_with_http_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetChildDomains If the method is called asynchronously, @@ -785,7 +882,7 @@ def get_child_domains_with_http_info(self, child_auth_key, **kwargs): # noqa: E """ all_params = ['child_auth_key'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -839,7 +936,7 @@ def get_child_domains_with_http_info(self, child_auth_key, **kwargs): # noqa: E files=local_var_files, response_type='GetChildDomains', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -849,18 +946,18 @@ def get_child_info(self, child_auth_key, **kwargs): # noqa: E501 """Gets the info about a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetChildInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_child_info_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: (data) = self.get_child_info_with_http_info(child_auth_key, **kwargs) # noqa: E501 @@ -870,11 +967,11 @@ def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 """Gets the info about a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_info_with_http_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_child_info_with_http_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetChildInfo If the method is called asynchronously, @@ -882,7 +979,7 @@ def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 """ all_params = ['child_auth_key'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -936,48 +1033,52 @@ def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 files=local_var_files, response_type='GetChildInfo', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def get_reseller_childs(self, **kwargs): # noqa: E501 - """Gets the list of all reseller's children accounts # noqa: E501 + """Gets the list of all reseller's children accounts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_reseller_childs(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_reseller_childs(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param int limit: Number of documents for child accounts information per page + :param int offset: Index of the first document in the page :return: GetChildrenList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_reseller_childs_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_reseller_childs_with_http_info(**kwargs) # noqa: E501 return data def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 - """Gets the list of all reseller's children accounts # noqa: E501 + """Gets the list of all reseller's children accounts # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_reseller_childs_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_reseller_childs_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool + :param int limit: Number of documents for child accounts information per page + :param int offset: Index of the first document in the page :return: GetChildrenList If the method is called asynchronously, returns the request thread. """ - all_params = [] # noqa: E501 - all_params.append('async') + all_params = ['limit', 'offset'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -992,11 +1093,17 @@ def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] + if 'limit' in params and params['limit'] > 20: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_reseller_childs`, must be a value less than or equal to `20`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 header_params = {} @@ -1025,7 +1132,7 @@ def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetChildrenList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1036,18 +1143,18 @@ def get_sso_token(self, child_auth_key, **kwargs): # noqa: E501 It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token] # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sso_token(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sso_token(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetSsoToken If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_sso_token_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: (data) = self.get_sso_token_with_http_info(child_auth_key, **kwargs) # noqa: E501 @@ -1058,11 +1165,11 @@ def get_sso_token_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token] # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sso_token_with_http_info(child_auth_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sso_token_with_http_info(child_auth_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :return: GetSsoToken If the method is called asynchronously, @@ -1070,7 +1177,7 @@ def get_sso_token_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 """ all_params = ['child_auth_key'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1124,7 +1231,7 @@ def get_sso_token_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSsoToken', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1134,11 +1241,11 @@ def remove_credits(self, child_auth_key, remove_credits, **kwargs): # noqa: E50 """Remove Email and/or SMS credits from a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_credits(child_auth_key, remove_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_credits(child_auth_key, remove_credits, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required) :return: RemainingCreditModel @@ -1146,7 +1253,7 @@ def remove_credits(self, child_auth_key, remove_credits, **kwargs): # noqa: E50 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.remove_credits_with_http_info(child_auth_key, remove_credits, **kwargs) # noqa: E501 else: (data) = self.remove_credits_with_http_info(child_auth_key, remove_credits, **kwargs) # noqa: E501 @@ -1156,11 +1263,11 @@ def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs """Remove Email and/or SMS credits from a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_credits_with_http_info(child_auth_key, remove_credits, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_credits_with_http_info(child_auth_key, remove_credits, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required) :return: RemainingCreditModel @@ -1169,7 +1276,7 @@ def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs """ all_params = ['child_auth_key', 'remove_credits'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1229,21 +1336,21 @@ def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs files=local_var_files, response_type='RemainingCreditModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def update_child_account_status(self, child_auth_key, update_child_account_status, **kwargs): # noqa: E501 - """Updates infos of reseller's child account status based on the childAuthKey supplied # noqa: E501 + """Updates infos of reseller's child account status based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_child_account_status(child_auth_key, update_child_account_status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_child_account_status(child_auth_key, update_child_account_status, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param UpdateChildAccountStatus update_child_account_status: values to update in child account status (required) :return: None @@ -1251,21 +1358,21 @@ def update_child_account_status(self, child_auth_key, update_child_account_statu returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_child_account_status_with_http_info(child_auth_key, update_child_account_status, **kwargs) # noqa: E501 else: (data) = self.update_child_account_status_with_http_info(child_auth_key, update_child_account_status, **kwargs) # noqa: E501 return data def update_child_account_status_with_http_info(self, child_auth_key, update_child_account_status, **kwargs): # noqa: E501 - """Updates infos of reseller's child account status based on the childAuthKey supplied # noqa: E501 + """Updates infos of reseller's child account status based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_child_account_status_with_http_info(child_auth_key, update_child_account_status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_child_account_status_with_http_info(child_auth_key, update_child_account_status, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param UpdateChildAccountStatus update_child_account_status: values to update in child account status (required) :return: None @@ -1274,7 +1381,7 @@ def update_child_account_status_with_http_info(self, child_auth_key, update_chil """ all_params = ['child_auth_key', 'update_child_account_status'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1334,21 +1441,21 @@ def update_child_account_status_with_http_info(self, child_auth_key, update_chil files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def update_child_domain(self, child_auth_key, domain_name, update_child_domain, **kwargs): # noqa: E501 - """Updates the sender domain of reseller's child based on the childAuthKey and domainName passed # noqa: E501 + """Updates the sender domain of reseller's child based on the childAuthKey and domainName passed # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_child_domain(child_auth_key, domain_name, update_child_domain, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_child_domain(child_auth_key, domain_name, update_child_domain, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param str domain_name: Pass the existing domain that needs to be updated (required) :param UpdateChildDomain update_child_domain: value to update for sender domain (required) @@ -1357,21 +1464,21 @@ def update_child_domain(self, child_auth_key, domain_name, update_child_domain, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_child_domain_with_http_info(child_auth_key, domain_name, update_child_domain, **kwargs) # noqa: E501 else: (data) = self.update_child_domain_with_http_info(child_auth_key, domain_name, update_child_domain, **kwargs) # noqa: E501 return data def update_child_domain_with_http_info(self, child_auth_key, domain_name, update_child_domain, **kwargs): # noqa: E501 - """Updates the sender domain of reseller's child based on the childAuthKey and domainName passed # noqa: E501 + """Updates the sender domain of reseller's child based on the childAuthKey and domainName passed # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_child_domain_with_http_info(child_auth_key, domain_name, update_child_domain, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_child_domain_with_http_info(child_auth_key, domain_name, update_child_domain, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param str domain_name: Pass the existing domain that needs to be updated (required) :param UpdateChildDomain update_child_domain: value to update for sender domain (required) @@ -1381,7 +1488,7 @@ def update_child_domain_with_http_info(self, child_auth_key, domain_name, update """ all_params = ['child_auth_key', 'domain_name', 'update_child_domain'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1447,21 +1554,21 @@ def update_child_domain_with_http_info(self, child_auth_key, domain_name, update files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def update_reseller_child(self, child_auth_key, reseller_child, **kwargs): # noqa: E501 - """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 + """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_reseller_child(child_auth_key, reseller_child, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_reseller_child(child_auth_key, reseller_child, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param UpdateChild reseller_child: values to update in child profile (required) :return: None @@ -1469,21 +1576,21 @@ def update_reseller_child(self, child_auth_key, reseller_child, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_reseller_child_with_http_info(child_auth_key, reseller_child, **kwargs) # noqa: E501 else: (data) = self.update_reseller_child_with_http_info(child_auth_key, reseller_child, **kwargs) # noqa: E501 return data def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, **kwargs): # noqa: E501 - """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 + """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_reseller_child_with_http_info(child_auth_key, reseller_child, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_reseller_child_with_http_info(child_auth_key, reseller_child, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str child_auth_key: auth key of reseller's child (required) :param UpdateChild reseller_child: values to update in child profile (required) :return: None @@ -1492,7 +1599,7 @@ def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, * """ all_params = ['child_auth_key', 'reseller_child'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1552,7 +1659,7 @@ def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/senders_api.py b/sib_api_v3_sdk/api/senders_api.py index 59472be..d8094e9 100644 --- a/sib_api_v3_sdk/api/senders_api.py +++ b/sib_api_v3_sdk/api/senders_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,18 +37,18 @@ def create_sender(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sender(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sender(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_sender_with_http_info(**kwargs) # noqa: E501 else: (data) = self.create_sender_with_http_info(**kwargs) # noqa: E501 @@ -58,11 +58,11 @@ def create_sender_with_http_info(self, **kwargs): # noqa: E501 """Create a new sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sender_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sender_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateSender sender: sender's name :return: CreateSenderModel If the method is called asynchronously, @@ -70,7 +70,7 @@ def create_sender_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['sender'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -120,7 +120,7 @@ def create_sender_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateSenderModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -130,18 +130,18 @@ def delete_sender(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sender(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sender(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.delete_sender_with_http_info(sender_id, **kwargs) # noqa: E501 @@ -151,11 +151,11 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Delete a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sender_with_http_info(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, @@ -163,7 +163,7 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """ all_params = ['sender_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -217,7 +217,7 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -227,17 +227,17 @@ def get_ips(self, **kwargs): # noqa: E501 """Return all the dedicated IPs for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_ips_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_ips_with_http_info(**kwargs) # noqa: E501 @@ -247,18 +247,18 @@ def get_ips_with_http_info(self, **kwargs): # noqa: E501 """Return all the dedicated IPs for your account # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: GetIps If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -306,7 +306,7 @@ def get_ips_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetIps', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -316,18 +316,18 @@ def get_ips_from_sender(self, sender_id, **kwargs): # noqa: E501 """Return all the dedicated IPs for a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips_from_sender(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips_from_sender(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.get_ips_from_sender_with_http_info(sender_id, **kwargs) # noqa: E501 @@ -337,11 +337,11 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Return all the dedicated IPs for a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_ips_from_sender_with_http_info(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_ips_from_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, @@ -349,7 +349,7 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """ all_params = ['sender_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -403,7 +403,7 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetIpsFromSender', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -413,11 +413,11 @@ def get_senders(self, **kwargs): # noqa: E501 """Get the list of all your senders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_senders(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_senders(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList @@ -425,7 +425,7 @@ def get_senders(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_senders_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_senders_with_http_info(**kwargs) # noqa: E501 @@ -435,11 +435,11 @@ def get_senders_with_http_info(self, **kwargs): # noqa: E501 """Get the list of all your senders # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_senders_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_senders_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str ip: Filter your senders for a specific ip (available for dedicated IP usage only) :param str domain: Filter your senders for a specific domain :return: GetSendersList @@ -448,7 +448,7 @@ def get_senders_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['ip', 'domain'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -500,7 +500,7 @@ def get_senders_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSendersList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -510,11 +510,11 @@ def update_sender(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sender(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sender(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None @@ -522,7 +522,7 @@ def update_sender(self, sender_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 else: (data) = self.update_sender_with_http_info(sender_id, **kwargs) # noqa: E501 @@ -532,11 +532,11 @@ def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """Update a sender # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sender_with_http_info(sender_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sender_with_http_info(sender_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None @@ -545,7 +545,7 @@ def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 """ all_params = ['sender_id', 'sender'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -601,7 +601,7 @@ def update_sender_with_http_info(self, sender_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/sms_campaigns_api.py b/sib_api_v3_sdk/api/sms_campaigns_api.py index a15001d..0f25c01 100644 --- a/sib_api_v3_sdk/api/sms_campaigns_api.py +++ b/sib_api_v3_sdk/api/sms_campaigns_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,18 +37,18 @@ def create_sms_campaign(self, create_sms_campaign, **kwargs): # noqa: E501 """Creates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sms_campaign(create_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sms_campaign(create_sms_campaign, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateSmsCampaign create_sms_campaign: Values to create an SMS Campaign (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_sms_campaign_with_http_info(create_sms_campaign, **kwargs) # noqa: E501 else: (data) = self.create_sms_campaign_with_http_info(create_sms_campaign, **kwargs) # noqa: E501 @@ -58,11 +58,11 @@ def create_sms_campaign_with_http_info(self, create_sms_campaign, **kwargs): # """Creates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_sms_campaign_with_http_info(create_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_sms_campaign_with_http_info(create_sms_campaign, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateSmsCampaign create_sms_campaign: Values to create an SMS Campaign (required) :return: CreateModel If the method is called asynchronously, @@ -70,7 +70,7 @@ def create_sms_campaign_with_http_info(self, create_sms_campaign, **kwargs): # """ all_params = ['create_sms_campaign'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -124,7 +124,7 @@ def create_sms_campaign_with_http_info(self, create_sms_campaign, **kwargs): # files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +134,18 @@ def delete_sms_campaign(self, campaign_id, **kwargs): # noqa: E501 """Delete the SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sms_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sms_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.delete_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -155,11 +155,11 @@ def delete_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E5 """Delete the SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_sms_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_sms_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: None If the method is called asynchronously, @@ -167,7 +167,7 @@ def delete_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E5 """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -221,7 +221,7 @@ def delete_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E5 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,18 +231,18 @@ def get_sms_campaign(self, campaign_id, **kwargs): # noqa: E501 """Get an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaign(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaign(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: GetSmsCampaign If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.get_sms_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -252,11 +252,11 @@ def get_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 """Get an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaign_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaign_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :return: GetSmsCampaign If the method is called asynchronously, @@ -264,7 +264,7 @@ def get_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -318,7 +318,7 @@ def get_sms_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmsCampaign', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -328,11 +328,11 @@ def get_sms_campaigns(self, **kwargs): # noqa: E501 """Returns the informations for all your created SMS campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaigns(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaigns(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str status: Status of campaign. :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) @@ -343,7 +343,7 @@ def get_sms_campaigns(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_sms_campaigns_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_sms_campaigns_with_http_info(**kwargs) # noqa: E501 @@ -353,11 +353,11 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 """Returns the informations for all your created SMS campaigns # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_campaigns_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_campaigns_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str status: Status of campaign. :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) @@ -369,7 +369,7 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['status', 'start_date', 'end_date', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -429,7 +429,7 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmsCampaigns', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -440,11 +440,11 @@ def request_sms_recipient_export(self, campaign_id, **kwargs): # noqa: E501 It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_sms_recipient_export(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_sms_recipient_export(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :param RequestSmsRecipientExport recipient_export: Values to send for a recipient export request :return: CreatedProcessId @@ -452,7 +452,7 @@ def request_sms_recipient_export(self, campaign_id, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.request_sms_recipient_export_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.request_sms_recipient_export_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -463,11 +463,11 @@ def request_sms_recipient_export_with_http_info(self, campaign_id, **kwargs): # It returns the background process ID which on completion calls the notify URL that you have set in the input. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.request_sms_recipient_export_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.request_sms_recipient_export_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :param RequestSmsRecipientExport recipient_export: Values to send for a recipient export request :return: CreatedProcessId @@ -476,7 +476,7 @@ def request_sms_recipient_export_with_http_info(self, campaign_id, **kwargs): # """ all_params = ['campaign_id', 'recipient_export'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -532,7 +532,7 @@ def request_sms_recipient_export_with_http_info(self, campaign_id, **kwargs): # files=local_var_files, response_type='CreatedProcessId', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -542,18 +542,18 @@ def send_sms_campaign_now(self, campaign_id, **kwargs): # noqa: E501 """Send your SMS campaign immediately # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_campaign_now(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_campaign_now(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_sms_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 else: (data) = self.send_sms_campaign_now_with_http_info(campaign_id, **kwargs) # noqa: E501 @@ -563,11 +563,11 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: """Send your SMS campaign immediately # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_campaign_now_with_http_info(campaign_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_campaign_now_with_http_info(campaign_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, @@ -575,7 +575,7 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: """ all_params = ['campaign_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -629,7 +629,7 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): # noqa: files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -640,11 +640,11 @@ def send_sms_report(self, campaign_id, send_report, **kwargs): # noqa: E501 Send report of Sent and Archived campaign, to the specified email addresses, with respective data and a pdf attachment in detail. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_report(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_report(campaign_id, send_report, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None @@ -652,7 +652,7 @@ def send_sms_report(self, campaign_id, send_report, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_sms_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 else: (data) = self.send_sms_report_with_http_info(campaign_id, send_report, **kwargs) # noqa: E501 @@ -663,11 +663,11 @@ def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): # Send report of Sent and Archived campaign, to the specified email addresses, with respective data and a pdf attachment in detail. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_sms_report_with_http_info(campaign_id, send_report, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_sms_report_with_http_info(campaign_id, send_report, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None @@ -676,7 +676,7 @@ def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): # """ all_params = ['campaign_id', 'send_report'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -736,7 +736,7 @@ def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): # files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -746,11 +746,11 @@ def send_test_sms(self, campaign_id, phone_number, **kwargs): # noqa: E501 """Send an SMS # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_sms(campaign_id, phone_number, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_sms(campaign_id, phone_number, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the SMS campaign (required) :param SendTestSms phone_number: Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) :return: None @@ -758,7 +758,7 @@ def send_test_sms(self, campaign_id, phone_number, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_test_sms_with_http_info(campaign_id, phone_number, **kwargs) # noqa: E501 else: (data) = self.send_test_sms_with_http_info(campaign_id, phone_number, **kwargs) # noqa: E501 @@ -768,11 +768,11 @@ def send_test_sms_with_http_info(self, campaign_id, phone_number, **kwargs): # """Send an SMS # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_sms_with_http_info(campaign_id, phone_number, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_sms_with_http_info(campaign_id, phone_number, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: Id of the SMS campaign (required) :param SendTestSms phone_number: Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) :return: None @@ -781,7 +781,7 @@ def send_test_sms_with_http_info(self, campaign_id, phone_number, **kwargs): # """ all_params = ['campaign_id', 'phone_number'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -841,7 +841,7 @@ def send_test_sms_with_http_info(self, campaign_id, phone_number, **kwargs): # files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -851,11 +851,11 @@ def update_sms_campaign(self, campaign_id, update_sms_campaign, **kwargs): # no """Updates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign(campaign_id, update_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign(campaign_id, update_sms_campaign, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :param UpdateSmsCampaign update_sms_campaign: Values to update an SMS Campaign (required) :return: None @@ -863,7 +863,7 @@ def update_sms_campaign(self, campaign_id, update_sms_campaign, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_sms_campaign_with_http_info(campaign_id, update_sms_campaign, **kwargs) # noqa: E501 else: (data) = self.update_sms_campaign_with_http_info(campaign_id, update_sms_campaign, **kwargs) # noqa: E501 @@ -873,11 +873,11 @@ def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, * """Updates an SMS campaign # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign_with_http_info(campaign_id, update_sms_campaign, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign_with_http_info(campaign_id, update_sms_campaign, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the SMS campaign (required) :param UpdateSmsCampaign update_sms_campaign: Values to update an SMS Campaign (required) :return: None @@ -886,7 +886,7 @@ def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, * """ all_params = ['campaign_id', 'update_sms_campaign'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -946,7 +946,7 @@ def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -956,11 +956,11 @@ def update_sms_campaign_status(self, campaign_id, status, **kwargs): # noqa: E5 """Update the campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign_status(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign_status(campaign_id, status, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign. (required) :return: None @@ -968,7 +968,7 @@ def update_sms_campaign_status(self, campaign_id, status, **kwargs): # noqa: E5 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_sms_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 else: (data) = self.update_sms_campaign_status_with_http_info(campaign_id, status, **kwargs) # noqa: E501 @@ -978,11 +978,11 @@ def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwarg """Update the campaign status # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_sms_campaign_status_with_http_info(campaign_id, status, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_sms_campaign_status_with_http_info(campaign_id, status, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int campaign_id: id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign. (required) :return: None @@ -991,7 +991,7 @@ def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwarg """ all_params = ['campaign_id', 'status'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1051,7 +1051,7 @@ def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwarg files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/smtp_api.py b/sib_api_v3_sdk/api/smtp_api.py index 12caba3..9962b56 100644 --- a/sib_api_v3_sdk/api/smtp_api.py +++ b/sib_api_v3_sdk/api/smtp_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,18 +37,18 @@ def create_smtp_template(self, smtp_template, **kwargs): # noqa: E501 """Create a transactional email template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_smtp_template(smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_smtp_template(smtp_template, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateSmtpTemplate smtp_template: values to update in transactional email template (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_smtp_template_with_http_info(smtp_template, **kwargs) # noqa: E501 else: (data) = self.create_smtp_template_with_http_info(smtp_template, **kwargs) # noqa: E501 @@ -58,11 +58,11 @@ def create_smtp_template_with_http_info(self, smtp_template, **kwargs): # noqa: """Create a transactional email template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_smtp_template_with_http_info(smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_smtp_template_with_http_info(smtp_template, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateSmtpTemplate smtp_template: values to update in transactional email template (required) :return: CreateModel If the method is called asynchronously, @@ -70,7 +70,7 @@ def create_smtp_template_with_http_info(self, smtp_template, **kwargs): # noqa: """ all_params = ['smtp_template'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -124,7 +124,7 @@ def create_smtp_template_with_http_info(self, smtp_template, **kwargs): # noqa: files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -135,18 +135,18 @@ def delete_hardbounces(self, **kwargs): # noqa: E501 Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_hardbounces(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_hardbounces(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param DeleteHardbounces delete_hardbounces: values to delete hardbounces :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_hardbounces_with_http_info(**kwargs) # noqa: E501 else: (data) = self.delete_hardbounces_with_http_info(**kwargs) # noqa: E501 @@ -157,11 +157,11 @@ def delete_hardbounces_with_http_info(self, **kwargs): # noqa: E501 Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_hardbounces_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_hardbounces_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param DeleteHardbounces delete_hardbounces: values to delete hardbounces :return: None If the method is called asynchronously, @@ -169,7 +169,7 @@ def delete_hardbounces_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['delete_hardbounces'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -219,7 +219,7 @@ def delete_hardbounces_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -229,18 +229,18 @@ def delete_smtp_template(self, template_id, **kwargs): # noqa: E501 """Delete an inactive transactional email template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_smtp_template(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_smtp_template(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 else: (data) = self.delete_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 @@ -250,11 +250,11 @@ def delete_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E """Delete an inactive transactional email template # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_smtp_template_with_http_info(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_smtp_template_with_http_info(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: None If the method is called asynchronously, @@ -262,7 +262,7 @@ def delete_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E """ all_params = ['template_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -316,7 +316,7 @@ def delete_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -326,11 +326,11 @@ def get_aggregated_smtp_report(self, **kwargs): # noqa: E501 """Get your transactional email activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_aggregated_smtp_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_aggregated_smtp_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate :param str end_date: Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -340,7 +340,7 @@ def get_aggregated_smtp_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_aggregated_smtp_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_aggregated_smtp_report_with_http_info(**kwargs) # noqa: E501 @@ -350,11 +350,11 @@ def get_aggregated_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """Get your transactional email activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_aggregated_smtp_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_aggregated_smtp_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate :param str end_date: Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -365,7 +365,7 @@ def get_aggregated_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -421,7 +421,7 @@ def get_aggregated_smtp_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetAggregatedReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -431,11 +431,11 @@ def get_email_event_report(self, **kwargs): # noqa: E501 """Get all your transactional email activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_event_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_event_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate @@ -451,7 +451,7 @@ def get_email_event_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_email_event_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_email_event_report_with_http_info(**kwargs) # noqa: E501 @@ -461,11 +461,11 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 """Get all your transactional email activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_email_event_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_email_event_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate @@ -482,7 +482,7 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset', 'start_date', 'end_date', 'days', 'email', 'event', 'tags', 'message_id', 'template_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -552,7 +552,7 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetEmailEventReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -562,11 +562,11 @@ def get_smtp_report(self, **kwargs): # noqa: E501 """Get your transactional email activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents returned per page :param int offset: Index of the first document on the page :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) @@ -578,7 +578,7 @@ def get_smtp_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_smtp_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_smtp_report_with_http_info(**kwargs) # noqa: E501 @@ -588,11 +588,11 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """Get your transactional email activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents returned per page :param int offset: Index of the first document on the page :param str start_date: Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD) @@ -605,7 +605,7 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'offset', 'start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -620,8 +620,8 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 100: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_report`, must be a value less than or equal to `100`") # noqa: E501 + if 'limit' in params and params['limit'] > 30: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_report`, must be a value less than or equal to `30`") # noqa: E501 collection_formats = {} path_params = {} @@ -667,7 +667,7 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetReports', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -677,18 +677,18 @@ def get_smtp_template(self, template_id, **kwargs): # noqa: E501 """Returns the template informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_template(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_template(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: GetSmtpTemplateOverview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 else: (data) = self.get_smtp_template_with_http_info(template_id, **kwargs) # noqa: E501 @@ -698,11 +698,11 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E501 """Returns the template informations # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_template_with_http_info(template_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_template_with_http_info(template_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :return: GetSmtpTemplateOverview If the method is called asynchronously, @@ -710,7 +710,7 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E501 """ all_params = ['template_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -764,7 +764,7 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmtpTemplateOverview', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -774,11 +774,11 @@ def get_smtp_templates(self, **kwargs): # noqa: E501 """Get the list of transactional email templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_templates(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_templates(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param bool template_status: Filter on the status of the template. Active = true, inactive = false :param int limit: Number of documents returned per page :param int offset: Index of the first document in the page @@ -787,7 +787,7 @@ def get_smtp_templates(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_smtp_templates_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_smtp_templates_with_http_info(**kwargs) # noqa: E501 @@ -797,11 +797,11 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 """Get the list of transactional email templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_smtp_templates_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_smtp_templates_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param bool template_status: Filter on the status of the template. Active = true, inactive = false :param int limit: Number of documents returned per page :param int offset: Index of the first document in the page @@ -811,7 +811,7 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['template_status', 'limit', 'offset'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -867,7 +867,119 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmtpTemplates', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_transac_blocked_contacts(self, **kwargs): # noqa: E501 + """Get the list of blocked or unsubscribed transactional contacts # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_blocked_contacts(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts + :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts + :param int limit: Number of documents returned per page + :param int offset: Index of the first document on the page + :param list[str] senders: Comma separated list of emails of the senders from which contacts are blocked or unsubscribed + :return: GetTransacBlockedContacts + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_transac_blocked_contacts_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_transac_blocked_contacts_with_http_info(**kwargs) # noqa: E501 + return data + + def get_transac_blocked_contacts_with_http_info(self, **kwargs): # noqa: E501 + """Get the list of blocked or unsubscribed transactional contacts # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_blocked_contacts_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts + :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts + :param int limit: Number of documents returned per page + :param int offset: Index of the first document on the page + :param list[str] senders: Comma separated list of emails of the senders from which contacts are blocked or unsubscribed + :return: GetTransacBlockedContacts + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start_date', 'end_date', 'limit', 'offset', 'senders'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_transac_blocked_contacts" % key + ) + params[key] = val + del params['kwargs'] + + if 'limit' in params and params['limit'] > 100: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_transac_blocked_contacts`, must be a value less than or equal to `100`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start_date' in params: + query_params.append(('startDate', params['start_date'])) # noqa: E501 + if 'end_date' in params: + query_params.append(('endDate', params['end_date'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'senders' in params: + query_params.append(('senders', params['senders'])) # noqa: E501 + collection_formats['senders'] = 'csv' # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/smtp/blockedContacts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetTransacBlockedContacts', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -877,18 +989,18 @@ def get_transac_email_content(self, uuid, **kwargs): # noqa: E501 """Get the personalized content of a sent transactional email # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_email_content(uuid, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_email_content(uuid, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str uuid: Unique id of the transactional email that has been sent to a particular contact (required) :return: GetTransacEmailContent If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_transac_email_content_with_http_info(uuid, **kwargs) # noqa: E501 else: (data) = self.get_transac_email_content_with_http_info(uuid, **kwargs) # noqa: E501 @@ -898,11 +1010,11 @@ def get_transac_email_content_with_http_info(self, uuid, **kwargs): # noqa: E50 """Get the personalized content of a sent transactional email # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_email_content_with_http_info(uuid, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_email_content_with_http_info(uuid, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str uuid: Unique id of the transactional email that has been sent to a particular contact (required) :return: GetTransacEmailContent If the method is called asynchronously, @@ -910,7 +1022,7 @@ def get_transac_email_content_with_http_info(self, uuid, **kwargs): # noqa: E50 """ all_params = ['uuid'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -964,7 +1076,7 @@ def get_transac_email_content_with_http_info(self, uuid, **kwargs): # noqa: E50 files=local_var_files, response_type='GetTransacEmailContent', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -975,11 +1087,11 @@ def get_transac_emails_list(self, **kwargs): # noqa: E501 This endpoint will show the list of emails for past 30 days by default. To retrieve emails before that time, please pass startDate and endDate in query filters. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_emails_list(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_emails_list(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. :param int template_id: Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. :param str message_id: Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. @@ -990,7 +1102,7 @@ def get_transac_emails_list(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_transac_emails_list_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_transac_emails_list_with_http_info(**kwargs) # noqa: E501 @@ -1001,11 +1113,11 @@ def get_transac_emails_list_with_http_info(self, **kwargs): # noqa: E501 This endpoint will show the list of emails for past 30 days by default. To retrieve emails before that time, please pass startDate and endDate in query filters. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_emails_list_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_emails_list_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str email: Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. :param int template_id: Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. :param str message_id: Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. @@ -1017,7 +1129,7 @@ def get_transac_emails_list_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['email', 'template_id', 'message_id', 'start_date', 'end_date'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1075,7 +1187,7 @@ def get_transac_emails_list_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetTransacEmailsList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1086,11 +1198,11 @@ def send_template(self, template_id, send_email, **kwargs): # noqa: E501 This endpoint is deprecated. Prefer v3/smtp/email instead. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_template(template_id, send_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_template(template_id, send_email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: Id of the template (required) :param SendEmail send_email: (required) :return: SendTemplateEmail @@ -1098,7 +1210,7 @@ def send_template(self, template_id, send_email, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_template_with_http_info(template_id, send_email, **kwargs) # noqa: E501 else: (data) = self.send_template_with_http_info(template_id, send_email, **kwargs) # noqa: E501 @@ -1109,11 +1221,11 @@ def send_template_with_http_info(self, template_id, send_email, **kwargs): # no This endpoint is deprecated. Prefer v3/smtp/email instead. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_template_with_http_info(template_id, send_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_template_with_http_info(template_id, send_email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: Id of the template (required) :param SendEmail send_email: (required) :return: SendTemplateEmail @@ -1122,7 +1234,7 @@ def send_template_with_http_info(self, template_id, send_email, **kwargs): # no """ all_params = ['template_id', 'send_email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1182,7 +1294,7 @@ def send_template_with_http_info(self, template_id, send_email, **kwargs): # no files=local_var_files, response_type='SendTemplateEmail', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1192,11 +1304,11 @@ def send_test_template(self, template_id, send_test_email, **kwargs): # noqa: E """Send a template to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_template(template_id, send_test_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_template(template_id, send_test_email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: Id of the template (required) :param SendTestEmail send_test_email: (required) :return: None @@ -1204,7 +1316,7 @@ def send_test_template(self, template_id, send_test_email, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_test_template_with_http_info(template_id, send_test_email, **kwargs) # noqa: E501 else: (data) = self.send_test_template_with_http_info(template_id, send_test_email, **kwargs) # noqa: E501 @@ -1214,11 +1326,11 @@ def send_test_template_with_http_info(self, template_id, send_test_email, **kwar """Send a template to your test list # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_test_template_with_http_info(template_id, send_test_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_test_template_with_http_info(template_id, send_test_email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: Id of the template (required) :param SendTestEmail send_test_email: (required) :return: None @@ -1227,7 +1339,7 @@ def send_test_template_with_http_info(self, template_id, send_test_email, **kwar """ all_params = ['template_id', 'send_test_email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1287,7 +1399,7 @@ def send_test_template_with_http_info(self, template_id, send_test_email, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1297,18 +1409,18 @@ def send_transac_email(self, send_smtp_email, **kwargs): # noqa: E501 """Send a transactional email # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_email(send_smtp_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_email(send_smtp_email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SendSmtpEmail send_smtp_email: Values to send a transactional email (required) :return: CreateSmtpEmail If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_transac_email_with_http_info(send_smtp_email, **kwargs) # noqa: E501 else: (data) = self.send_transac_email_with_http_info(send_smtp_email, **kwargs) # noqa: E501 @@ -1318,11 +1430,11 @@ def send_transac_email_with_http_info(self, send_smtp_email, **kwargs): # noqa: """Send a transactional email # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_email_with_http_info(send_smtp_email, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_email_with_http_info(send_smtp_email, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SendSmtpEmail send_smtp_email: Values to send a transactional email (required) :return: CreateSmtpEmail If the method is called asynchronously, @@ -1330,7 +1442,7 @@ def send_transac_email_with_http_info(self, send_smtp_email, **kwargs): # noqa: """ all_params = ['send_smtp_email'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1384,7 +1496,201 @@ def send_transac_email_with_http_info(self, send_smtp_email, **kwargs): # noqa: files=local_var_files, response_type='CreateSmtpEmail', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def smtp_blocked_contacts_email_delete(self, email, **kwargs): # noqa: E501 + """Unblock or resubscribe a transactional contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.smtp_blocked_contacts_email_delete(email, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str email: contact email (urlencoded) to unblock. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.smtp_blocked_contacts_email_delete_with_http_info(email, **kwargs) # noqa: E501 + else: + (data) = self.smtp_blocked_contacts_email_delete_with_http_info(email, **kwargs) # noqa: E501 + return data + + def smtp_blocked_contacts_email_delete_with_http_info(self, email, **kwargs): # noqa: E501 + """Unblock or resubscribe a transactional contact # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.smtp_blocked_contacts_email_delete_with_http_info(email, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str email: contact email (urlencoded) to unblock. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['email'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method smtp_blocked_contacts_email_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'email' is set + if ('email' not in params or + params['email'] is None): + raise ValueError("Missing the required parameter `email` when calling `smtp_blocked_contacts_email_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'email' in params: + path_params['email'] = params['email'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/smtp/blockedContacts/{email}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def smtp_log_message_id_delete(self, message_id, **kwargs): # noqa: E501 + """Delete an SMTP transactional log # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.smtp_log_message_id_delete(message_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str message_id: MessageId of the transactional log to delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.smtp_log_message_id_delete_with_http_info(message_id, **kwargs) # noqa: E501 + else: + (data) = self.smtp_log_message_id_delete_with_http_info(message_id, **kwargs) # noqa: E501 + return data + + def smtp_log_message_id_delete_with_http_info(self, message_id, **kwargs): # noqa: E501 + """Delete an SMTP transactional log # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.smtp_log_message_id_delete_with_http_info(message_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str message_id: MessageId of the transactional log to delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['message_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method smtp_log_message_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'message_id' is set + if ('message_id' not in params or + params['message_id'] is None): + raise ValueError("Missing the required parameter `message_id` when calling `smtp_log_message_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'message_id' in params: + path_params['messageId'] = params['message_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/smtp/log/{messageId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1394,11 +1700,11 @@ def update_smtp_template(self, template_id, smtp_template, **kwargs): # noqa: E """Updates a transactional email templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_smtp_template(template_id, smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_smtp_template(template_id, smtp_template, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :param UpdateSmtpTemplate smtp_template: values to update in transactional email template (required) :return: None @@ -1406,7 +1712,7 @@ def update_smtp_template(self, template_id, smtp_template, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_smtp_template_with_http_info(template_id, smtp_template, **kwargs) # noqa: E501 else: (data) = self.update_smtp_template_with_http_info(template_id, smtp_template, **kwargs) # noqa: E501 @@ -1416,11 +1722,11 @@ def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwar """Updates a transactional email templates # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_smtp_template_with_http_info(template_id, smtp_template, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_smtp_template_with_http_info(template_id, smtp_template, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int template_id: id of the template (required) :param UpdateSmtpTemplate smtp_template: values to update in transactional email template (required) :return: None @@ -1429,7 +1735,7 @@ def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwar """ all_params = ['template_id', 'smtp_template'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1489,7 +1795,7 @@ def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/transactional_sms_api.py b/sib_api_v3_sdk/api/transactional_sms_api.py index 245220e..185275f 100644 --- a/sib_api_v3_sdk/api/transactional_sms_api.py +++ b/sib_api_v3_sdk/api/transactional_sms_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,11 +37,11 @@ def get_sms_events(self, **kwargs): # noqa: E501 """Get all the SMS activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_events(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_events(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report @@ -55,7 +55,7 @@ def get_sms_events(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_sms_events_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_sms_events_with_http_info(**kwargs) # noqa: E501 @@ -65,11 +65,11 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 """Get all the SMS activity (unaggregated events) # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_sms_events_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_sms_events_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int limit: Number of documents per page :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report @@ -84,7 +84,7 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['limit', 'start_date', 'end_date', 'offset', 'days', 'phone_number', 'event', 'tags'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -150,7 +150,7 @@ def get_sms_events_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetSmsEventReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -160,11 +160,11 @@ def get_transac_aggregated_sms_report(self, **kwargs): # noqa: E501 """Get your SMS activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_aggregated_sms_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_aggregated_sms_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with startDate and endDate @@ -174,7 +174,7 @@ def get_transac_aggregated_sms_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_transac_aggregated_sms_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_transac_aggregated_sms_report_with_http_info(**kwargs) # noqa: E501 @@ -184,11 +184,11 @@ def get_transac_aggregated_sms_report_with_http_info(self, **kwargs): # noqa: E """Get your SMS activity aggregated over a period of time # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_aggregated_sms_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_aggregated_sms_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with startDate and endDate @@ -199,7 +199,7 @@ def get_transac_aggregated_sms_report_with_http_info(self, **kwargs): # noqa: E """ all_params = ['start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -255,7 +255,7 @@ def get_transac_aggregated_sms_report_with_http_info(self, **kwargs): # noqa: E files=local_var_files, response_type='GetTransacAggregatedSmsReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -265,11 +265,11 @@ def get_transac_sms_report(self, **kwargs): # noqa: E501 """Get your SMS activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_sms_report(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_sms_report(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -279,7 +279,7 @@ def get_transac_sms_report(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_transac_sms_report_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_transac_sms_report_with_http_info(**kwargs) # noqa: E501 @@ -289,11 +289,11 @@ def get_transac_sms_report_with_http_info(self, **kwargs): # noqa: E501 """Get your SMS activity aggregated per day # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transac_sms_report_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transac_sms_report_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report :param str end_date: Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report :param int days: Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate' @@ -304,7 +304,7 @@ def get_transac_sms_report_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['start_date', 'end_date', 'days', 'tag'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -360,7 +360,7 @@ def get_transac_sms_report_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetTransacSmsReport', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -370,18 +370,18 @@ def send_transac_sms(self, send_transac_sms, **kwargs): # noqa: E501 """Send the SMS campaign to the specified mobile number # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_sms(send_transac_sms, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_sms(send_transac_sms, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SendTransacSms send_transac_sms: Values to send a transactional SMS (required) :return: SendSms If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.send_transac_sms_with_http_info(send_transac_sms, **kwargs) # noqa: E501 else: (data) = self.send_transac_sms_with_http_info(send_transac_sms, **kwargs) # noqa: E501 @@ -391,11 +391,11 @@ def send_transac_sms_with_http_info(self, send_transac_sms, **kwargs): # noqa: """Send the SMS campaign to the specified mobile number # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.send_transac_sms_with_http_info(send_transac_sms, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_transac_sms_with_http_info(send_transac_sms, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SendTransacSms send_transac_sms: Values to send a transactional SMS (required) :return: SendSms If the method is called asynchronously, @@ -403,7 +403,7 @@ def send_transac_sms_with_http_info(self, send_transac_sms, **kwargs): # noqa: """ all_params = ['send_transac_sms'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -457,7 +457,7 @@ def send_transac_sms_with_http_info(self, send_transac_sms, **kwargs): # noqa: files=local_var_files, response_type='SendSms', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api/webhooks_api.py b/sib_api_v3_sdk/api/webhooks_api.py index d810f21..8318a42 100644 --- a/sib_api_v3_sdk/api/webhooks_api.py +++ b/sib_api_v3_sdk/api/webhooks_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -37,18 +37,18 @@ def create_webhook(self, create_webhook, **kwargs): # noqa: E501 """Create a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_webhook(create_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_webhook(create_webhook, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateWebhook create_webhook: Values to create a webhook (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.create_webhook_with_http_info(create_webhook, **kwargs) # noqa: E501 else: (data) = self.create_webhook_with_http_info(create_webhook, **kwargs) # noqa: E501 @@ -58,11 +58,11 @@ def create_webhook_with_http_info(self, create_webhook, **kwargs): # noqa: E501 """Create a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_webhook_with_http_info(create_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_webhook_with_http_info(create_webhook, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param CreateWebhook create_webhook: Values to create a webhook (required) :return: CreateModel If the method is called asynchronously, @@ -70,7 +70,7 @@ def create_webhook_with_http_info(self, create_webhook, **kwargs): # noqa: E501 """ all_params = ['create_webhook'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -124,7 +124,7 @@ def create_webhook_with_http_info(self, create_webhook, **kwargs): # noqa: E501 files=local_var_files, response_type='CreateModel', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -134,18 +134,18 @@ def delete_webhook(self, webhook_id, **kwargs): # noqa: E501 """Delete a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_webhook(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_webhook(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.delete_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 else: (data) = self.delete_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 @@ -155,11 +155,11 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """Delete a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_webhook_with_http_info(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_webhook_with_http_info(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: None If the method is called asynchronously, @@ -167,7 +167,7 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """ all_params = ['webhook_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -221,7 +221,7 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -231,18 +231,18 @@ def get_webhook(self, webhook_id, **kwargs): # noqa: E501 """Get a webhook details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhook(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhook(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: GetWebhook If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 else: (data) = self.get_webhook_with_http_info(webhook_id, **kwargs) # noqa: E501 @@ -252,11 +252,11 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """Get a webhook details # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhook_with_http_info(webhook_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhook_with_http_info(webhook_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :return: GetWebhook If the method is called asynchronously, @@ -264,7 +264,7 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 """ all_params = ['webhook_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -318,7 +318,7 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): # noqa: E501 files=local_var_files, response_type='GetWebhook', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -328,18 +328,18 @@ def get_webhooks(self, **kwargs): # noqa: E501 """Get all webhooks # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhooks(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhooks(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on webhook type :return: GetWebhooks If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.get_webhooks_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_webhooks_with_http_info(**kwargs) # noqa: E501 @@ -349,11 +349,11 @@ def get_webhooks_with_http_info(self, **kwargs): # noqa: E501 """Get all webhooks # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_webhooks_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_webhooks_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param str type: Filter on webhook type :return: GetWebhooks If the method is called asynchronously, @@ -361,7 +361,7 @@ def get_webhooks_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['type'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -411,7 +411,7 @@ def get_webhooks_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='GetWebhooks', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -421,11 +421,11 @@ def update_webhook(self, webhook_id, update_webhook, **kwargs): # noqa: E501 """Update a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_webhook(webhook_id, update_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_webhook(webhook_id, update_webhook, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :param UpdateWebhook update_webhook: Values to update a webhook (required) :return: None @@ -433,7 +433,7 @@ def update_webhook(self, webhook_id, update_webhook, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req'): return self.update_webhook_with_http_info(webhook_id, update_webhook, **kwargs) # noqa: E501 else: (data) = self.update_webhook_with_http_info(webhook_id, update_webhook, **kwargs) # noqa: E501 @@ -443,11 +443,11 @@ def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): """Update a webhook # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_webhook_with_http_info(webhook_id, update_webhook, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_webhook_with_http_info(webhook_id, update_webhook, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param int webhook_id: Id of the webhook (required) :param UpdateWebhook update_webhook: Values to update a webhook (required) :return: None @@ -456,7 +456,7 @@ def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): """ all_params = ['webhook_id', 'update_webhook'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -516,7 +516,7 @@ def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/sib_api_v3_sdk/api_client.py b/sib_api_v3_sdk/api_client.py index 768aa1f..eea026c 100644 --- a/sib_api_v3_sdk/api_client.py +++ b/sib_api_v3_sdk/api_client.py @@ -2,7 +2,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -66,7 +66,8 @@ def __init__(self, configuration=None, header_name=None, header_value=None, configuration = Configuration() self.configuration = configuration - self.pool = ThreadPool() + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: @@ -76,8 +77,15 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.user_agent = 'Swagger-Codegen/1.0.0/python' def __del__(self): - self.pool.close() - self.pool.join() + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool @property def user_agent(self): @@ -245,12 +253,12 @@ def __deserialize(self, data, klass): if type(klass) == str: if klass.startswith('list['): - sub_kls = re.match('list\[(.*)\]', klass).group(1) + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] if klass.startswith('dict('): - sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) return {k: self.__deserialize(v, sub_kls) for k, v in six.iteritems(data)} @@ -274,12 +282,12 @@ def __deserialize(self, data, klass): def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async=None, + response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None): """Makes the HTTP request (synchronous) and returns deserialized data. - To make an async request, set the async parameter. + To make an async request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -294,7 +302,7 @@ def call_api(self, resource_path, method, :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. - :param async bool: execute request asynchronously + :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param collection_formats: dict of collection formats for path, query, @@ -307,13 +315,13 @@ def call_api(self, resource_path, method, timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: - If async parameter is True, + If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter async is False or missing, + If parameter async_req is False or missing, then the method will return the response directly. """ - if not async: + if not async_req: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, @@ -591,6 +599,9 @@ def __deserialize_datatime(self, string): ) ) + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + def __deserialize_model(self, data, klass): """Deserializes list or dict to model. @@ -599,8 +610,8 @@ def __deserialize_model(self, data, klass): :return: model object. """ - if not klass.swagger_types and not hasattr(klass, - 'get_real_child_model'): + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): return data kwargs = {} @@ -614,7 +625,13 @@ def __deserialize_model(self, data, klass): instance = klass(**kwargs) - if hasattr(instance, 'get_real_child_model'): + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): klass_name = instance.get_real_child_model(data) if klass_name: instance = self.__deserialize(data, klass_name) diff --git a/sib_api_v3_sdk/configuration.py b/sib_api_v3_sdk/configuration.py index a831a95..1ff9b0f 100644 --- a/sib_api_v3_sdk/configuration.py +++ b/sib_api_v3_sdk/configuration.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -23,29 +23,22 @@ from six.moves import http_client as httplib -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): +class Configuration(object): """NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ + _default = None + def __init__(self): """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + # Default Base url self.host = "https://api.sendinblue.com/v3" # Temp file folder for downloading files @@ -56,6 +49,8 @@ def __init__(self): self.api_key = {} # dict to store API prefix (e.g. Bearer) self.api_key_prefix = {} + # function to refresh API key if expired + self.refresh_api_key_hook = None # Username for HTTP basic authentication self.username = "" # Password for HTTP basic authentication @@ -101,6 +96,10 @@ def __init__(self): # Safe chars for path_param self.safe_chars_for_path_param = '' + @classmethod + def set_default(cls, default): + cls._default = default + @property def logger_file(self): """The logger file. @@ -203,11 +202,17 @@ def get_api_key_with_prefix(self, identifier): :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ - if (self.api_key.get(identifier) and - self.api_key_prefix.get(identifier)): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 - elif self.api_key.get(identifier): - return self.api_key[identifier] + + if self.refresh_api_key_hook: + self.refresh_api_key_hook(self) + + key = self.api_key.get(identifier) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key def get_basic_auth_token(self): """Gets HTTP basic authentication header (string). diff --git a/sib_api_v3_sdk/models/__init__.py b/sib_api_v3_sdk/models/__init__.py index 9aeb510..e9e02f7 100644 --- a/sib_api_v3_sdk/models/__init__.py +++ b/sib_api_v3_sdk/models/__init__.py @@ -4,7 +4,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -15,6 +15,7 @@ from __future__ import absolute_import # import models into model package +from sib_api_v3_sdk.models.ab_test_campaign_result import AbTestCampaignResult from sib_api_v3_sdk.models.add_child_domain import AddChildDomain from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits @@ -54,6 +55,7 @@ from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats +from sib_api_v3_sdk.models.get_child_account_creation_status import GetChildAccountCreationStatus from sib_api_v3_sdk.models.get_child_domain import GetChildDomain from sib_api_v3_sdk.models.get_child_domains import GetChildDomains from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys @@ -65,14 +67,12 @@ from sib_api_v3_sdk.models.get_client import GetClient from sib_api_v3_sdk.models.get_contact_campaign_stats import GetContactCampaignStats from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked -from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription from sib_api_v3_sdk.models.get_contact_details import GetContactDetails from sib_api_v3_sdk.models.get_contacts import GetContacts +from sib_api_v3_sdk.models.get_device_browser_stats import GetDeviceBrowserStats from sib_api_v3_sdk.models.get_email_campaigns import GetEmailCampaigns from sib_api_v3_sdk.models.get_email_event_report import GetEmailEventReport from sib_api_v3_sdk.models.get_email_event_report_events import GetEmailEventReportEvents @@ -104,6 +104,7 @@ from sib_api_v3_sdk.models.get_senders_list import GetSendersList from sib_api_v3_sdk.models.get_senders_list_ips import GetSendersListIps from sib_api_v3_sdk.models.get_senders_list_senders import GetSendersListSenders +from sib_api_v3_sdk.models.get_shared_template_url import GetSharedTemplateUrl from sib_api_v3_sdk.models.get_sms_campaign_overview import GetSmsCampaignOverview from sib_api_v3_sdk.models.get_sms_campaign_stats import GetSmsCampaignStats from sib_api_v3_sdk.models.get_sms_campaigns import GetSmsCampaigns @@ -113,8 +114,13 @@ from sib_api_v3_sdk.models.get_smtp_template_overview_sender import GetSmtpTemplateOverviewSender from sib_api_v3_sdk.models.get_smtp_templates import GetSmtpTemplates from sib_api_v3_sdk.models.get_sso_token import GetSsoToken +from sib_api_v3_sdk.models.get_stats_by_browser import GetStatsByBrowser +from sib_api_v3_sdk.models.get_stats_by_device import GetStatsByDevice from sib_api_v3_sdk.models.get_stats_by_domain import GetStatsByDomain from sib_api_v3_sdk.models.get_transac_aggregated_sms_report import GetTransacAggregatedSmsReport +from sib_api_v3_sdk.models.get_transac_blocked_contacts import GetTransacBlockedContacts +from sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts import GetTransacBlockedContactsContacts +from sib_api_v3_sdk.models.get_transac_blocked_contacts_reason import GetTransacBlockedContactsReason from sib_api_v3_sdk.models.get_transac_email_content import GetTransacEmailContent from sib_api_v3_sdk.models.get_transac_email_content_events import GetTransacEmailContentEvents from sib_api_v3_sdk.models.get_transac_emails_list import GetTransacEmailsList @@ -134,6 +140,7 @@ from sib_api_v3_sdk.models.remove_contact_from_list import RemoveContactFromList from sib_api_v3_sdk.models.remove_credits import RemoveCredits from sib_api_v3_sdk.models.request_contact_export import RequestContactExport +from sib_api_v3_sdk.models.request_contact_export_custom_contact_filter import RequestContactExportCustomContactFilter from sib_api_v3_sdk.models.request_contact_import import RequestContactImport from sib_api_v3_sdk.models.request_contact_import_new_list import RequestContactImportNewList from sib_api_v3_sdk.models.request_sms_recipient_export import RequestSmsRecipientExport diff --git a/sib_api_v3_sdk/models/ab_test_campaign_result.py b/sib_api_v3_sdk/models/ab_test_campaign_result.py new file mode 100644 index 0000000..af07c98 --- /dev/null +++ b/sib_api_v3_sdk/models/ab_test_campaign_result.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AbTestCampaignResult(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'winning_version': 'str', + 'winning_criteria': 'str', + 'winning_subject_line': 'str', + 'open_rate': 'str', + 'click_rate': 'str', + 'winning_version_rate': 'str' + } + + attribute_map = { + 'winning_version': 'winningVersion', + 'winning_criteria': 'winningCriteria', + 'winning_subject_line': 'winningSubjectLine', + 'open_rate': 'openRate', + 'click_rate': 'clickRate', + 'winning_version_rate': 'winningVersionRate' + } + + def __init__(self, winning_version=None, winning_criteria=None, winning_subject_line=None, open_rate=None, click_rate=None, winning_version_rate=None): # noqa: E501 + """AbTestCampaignResult - a model defined in Swagger""" # noqa: E501 + + self._winning_version = None + self._winning_criteria = None + self._winning_subject_line = None + self._open_rate = None + self._click_rate = None + self._winning_version_rate = None + self.discriminator = None + + if winning_version is not None: + self.winning_version = winning_version + if winning_criteria is not None: + self.winning_criteria = winning_criteria + if winning_subject_line is not None: + self.winning_subject_line = winning_subject_line + if open_rate is not None: + self.open_rate = open_rate + if click_rate is not None: + self.click_rate = click_rate + if winning_version_rate is not None: + self.winning_version_rate = winning_version_rate + + @property + def winning_version(self): + """Gets the winning_version of this AbTestCampaignResult. # noqa: E501 + + Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending. # noqa: E501 + + :return: The winning_version of this AbTestCampaignResult. # noqa: E501 + :rtype: str + """ + return self._winning_version + + @winning_version.setter + def winning_version(self, winning_version): + """Sets the winning_version of this AbTestCampaignResult. + + Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending. # noqa: E501 + + :param winning_version: The winning_version of this AbTestCampaignResult. # noqa: E501 + :type: str + """ + allowed_values = ["notAvailable", "pending", "tie", "A", "B"] # noqa: E501 + if winning_version not in allowed_values: + raise ValueError( + "Invalid value for `winning_version` ({0}), must be one of {1}" # noqa: E501 + .format(winning_version, allowed_values) + ) + + self._winning_version = winning_version + + @property + def winning_criteria(self): + """Gets the winning_criteria of this AbTestCampaignResult. # noqa: E501 + + Criteria choosen for winning version (Open/Click) # noqa: E501 + + :return: The winning_criteria of this AbTestCampaignResult. # noqa: E501 + :rtype: str + """ + return self._winning_criteria + + @winning_criteria.setter + def winning_criteria(self, winning_criteria): + """Sets the winning_criteria of this AbTestCampaignResult. + + Criteria choosen for winning version (Open/Click) # noqa: E501 + + :param winning_criteria: The winning_criteria of this AbTestCampaignResult. # noqa: E501 + :type: str + """ + allowed_values = ["Open", "Click"] # noqa: E501 + if winning_criteria not in allowed_values: + raise ValueError( + "Invalid value for `winning_criteria` ({0}), must be one of {1}" # noqa: E501 + .format(winning_criteria, allowed_values) + ) + + self._winning_criteria = winning_criteria + + @property + def winning_subject_line(self): + """Gets the winning_subject_line of this AbTestCampaignResult. # noqa: E501 + + Subject Line of current winning version # noqa: E501 + + :return: The winning_subject_line of this AbTestCampaignResult. # noqa: E501 + :rtype: str + """ + return self._winning_subject_line + + @winning_subject_line.setter + def winning_subject_line(self, winning_subject_line): + """Sets the winning_subject_line of this AbTestCampaignResult. + + Subject Line of current winning version # noqa: E501 + + :param winning_subject_line: The winning_subject_line of this AbTestCampaignResult. # noqa: E501 + :type: str + """ + + self._winning_subject_line = winning_subject_line + + @property + def open_rate(self): + """Gets the open_rate of this AbTestCampaignResult. # noqa: E501 + + Open rate for current winning version # noqa: E501 + + :return: The open_rate of this AbTestCampaignResult. # noqa: E501 + :rtype: str + """ + return self._open_rate + + @open_rate.setter + def open_rate(self, open_rate): + """Sets the open_rate of this AbTestCampaignResult. + + Open rate for current winning version # noqa: E501 + + :param open_rate: The open_rate of this AbTestCampaignResult. # noqa: E501 + :type: str + """ + + self._open_rate = open_rate + + @property + def click_rate(self): + """Gets the click_rate of this AbTestCampaignResult. # noqa: E501 + + Click rate for current winning version # noqa: E501 + + :return: The click_rate of this AbTestCampaignResult. # noqa: E501 + :rtype: str + """ + return self._click_rate + + @click_rate.setter + def click_rate(self, click_rate): + """Sets the click_rate of this AbTestCampaignResult. + + Click rate for current winning version # noqa: E501 + + :param click_rate: The click_rate of this AbTestCampaignResult. # noqa: E501 + :type: str + """ + + self._click_rate = click_rate + + @property + def winning_version_rate(self): + """Gets the winning_version_rate of this AbTestCampaignResult. # noqa: E501 + + Open/Click rate for the winner version # noqa: E501 + + :return: The winning_version_rate of this AbTestCampaignResult. # noqa: E501 + :rtype: str + """ + return self._winning_version_rate + + @winning_version_rate.setter + def winning_version_rate(self, winning_version_rate): + """Sets the winning_version_rate of this AbTestCampaignResult. + + Open/Click rate for the winner version # noqa: E501 + + :param winning_version_rate: The winning_version_rate of this AbTestCampaignResult. # noqa: E501 + :type: str + """ + + self._winning_version_rate = winning_version_rate + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AbTestCampaignResult, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AbTestCampaignResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/add_child_domain.py b/sib_api_v3_sdk/models/add_child_domain.py index b6d6191..51c4318 100644 --- a/sib_api_v3_sdk/models/add_child_domain.py +++ b/sib_api_v3_sdk/models/add_child_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AddChildDomain, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/add_contact_to_list.py b/sib_api_v3_sdk/models/add_contact_to_list.py index fcde152..a436d7d 100644 --- a/sib_api_v3_sdk/models/add_contact_to_list.py +++ b/sib_api_v3_sdk/models/add_contact_to_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AddContactToList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/add_credits.py b/sib_api_v3_sdk/models/add_credits.py index ed8edf7..920a8d7 100644 --- a/sib_api_v3_sdk/models/add_credits.py +++ b/sib_api_v3_sdk/models/add_credits.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AddCredits, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_attribute.py b/sib_api_v3_sdk/models/create_attribute.py index 591653e..bc017fc 100644 --- a/sib_api_v3_sdk/models/create_attribute.py +++ b/sib_api_v3_sdk/models/create_attribute.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration # noqa: F401,E501 - class CreateAttribute(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -155,6 +153,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateAttribute, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_attribute_enumeration.py b/sib_api_v3_sdk/models/create_attribute_enumeration.py index 945ff6d..731061d 100644 --- a/sib_api_v3_sdk/models/create_attribute_enumeration.py +++ b/sib_api_v3_sdk/models/create_attribute_enumeration.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateAttributeEnumeration, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_child.py b/sib_api_v3_sdk/models/create_child.py index 705839d..7248dca 100644 --- a/sib_api_v3_sdk/models/create_child.py +++ b/sib_api_v3_sdk/models/create_child.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -208,6 +208,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateChild, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_contact.py b/sib_api_v3_sdk/models/create_contact.py index d78e5f6..7ef8259 100644 --- a/sib_api_v3_sdk/models/create_contact.py +++ b/sib_api_v3_sdk/models/create_contact.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -81,7 +81,7 @@ def __init__(self, email=None, attributes=None, email_blacklisted=None, sms_blac def email(self): """Gets the email of this CreateContact. # noqa: E501 - Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter' # noqa: E501 + Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} # noqa: E501 :return: The email of this CreateContact. # noqa: E501 :rtype: str @@ -92,7 +92,7 @@ def email(self): def email(self, email): """Sets the email of this CreateContact. - Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter' # noqa: E501 + Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} # noqa: E501 :param email: The email of this CreateContact. # noqa: E501 :type: str @@ -259,6 +259,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateContact, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_email_campaign.py b/sib_api_v3_sdk/models/create_email_campaign.py index 44aee00..3ece3ed 100644 --- a/sib_api_v3_sdk/models/create_email_campaign.py +++ b/sib_api_v3_sdk/models/create_email_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.create_email_campaign_recipients import CreateEmailCampaignRecipients # noqa: F401,E501 -from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender # noqa: F401,E501 - class CreateEmailCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,7 +55,10 @@ class CreateEmailCampaign(object): 'subject_b': 'str', 'split_rule': 'int', 'winner_criteria': 'str', - 'winner_delay': 'int' + 'winner_delay': 'int', + 'ip_warmup_enable': 'bool', + 'initial_quota': 'int', + 'increase_rate': 'int' } attribute_map = { @@ -86,10 +86,13 @@ class CreateEmailCampaign(object): 'subject_b': 'subjectB', 'split_rule': 'splitRule', 'winner_criteria': 'winnerCriteria', - 'winner_delay': 'winnerDelay' + 'winner_delay': 'winnerDelay', + 'ip_warmup_enable': 'ipWarmupEnable', + 'initial_quota': 'initialQuota', + 'increase_rate': 'increaseRate' } - def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, template_id=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=False, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None): # noqa: E501 + def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, template_id=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=False, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, ip_warmup_enable=False, initial_quota=None, increase_rate=None): # noqa: E501 """CreateEmailCampaign - a model defined in Swagger""" # noqa: E501 self._tag = None @@ -117,6 +120,9 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self._split_rule = None self._winner_criteria = None self._winner_delay = None + self._ip_warmup_enable = None + self._initial_quota = None + self._increase_rate = None self.discriminator = None if tag is not None: @@ -167,6 +173,12 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self.winner_criteria = winner_criteria if winner_delay is not None: self.winner_delay = winner_delay + if ip_warmup_enable is not None: + self.ip_warmup_enable = ip_warmup_enable + if initial_quota is not None: + self.initial_quota = initial_quota + if increase_rate is not None: + self.increase_rate = increase_rate @property def tag(self): @@ -757,6 +769,79 @@ def winner_delay(self, winner_delay): self._winner_delay = winner_delay + @property + def ip_warmup_enable(self): + """Gets the ip_warmup_enable of this CreateEmailCampaign. # noqa: E501 + + Available for dedicated ip clients. Set this to true if you wish to warm up your ip. # noqa: E501 + + :return: The ip_warmup_enable of this CreateEmailCampaign. # noqa: E501 + :rtype: bool + """ + return self._ip_warmup_enable + + @ip_warmup_enable.setter + def ip_warmup_enable(self, ip_warmup_enable): + """Sets the ip_warmup_enable of this CreateEmailCampaign. + + Available for dedicated ip clients. Set this to true if you wish to warm up your ip. # noqa: E501 + + :param ip_warmup_enable: The ip_warmup_enable of this CreateEmailCampaign. # noqa: E501 + :type: bool + """ + + self._ip_warmup_enable = ip_warmup_enable + + @property + def initial_quota(self): + """Gets the initial_quota of this CreateEmailCampaign. # noqa: E501 + + Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. # noqa: E501 + + :return: The initial_quota of this CreateEmailCampaign. # noqa: E501 + :rtype: int + """ + return self._initial_quota + + @initial_quota.setter + def initial_quota(self, initial_quota): + """Sets the initial_quota of this CreateEmailCampaign. + + Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. # noqa: E501 + + :param initial_quota: The initial_quota of this CreateEmailCampaign. # noqa: E501 + :type: int + """ + + self._initial_quota = initial_quota + + @property + def increase_rate(self): + """Gets the increase_rate of this CreateEmailCampaign. # noqa: E501 + + Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. # noqa: E501 + + :return: The increase_rate of this CreateEmailCampaign. # noqa: E501 + :rtype: int + """ + return self._increase_rate + + @increase_rate.setter + def increase_rate(self, increase_rate): + """Sets the increase_rate of this CreateEmailCampaign. + + Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. # noqa: E501 + + :param increase_rate: The increase_rate of this CreateEmailCampaign. # noqa: E501 + :type: int + """ + if increase_rate is not None and increase_rate > 100: # noqa: E501 + raise ValueError("Invalid value for `increase_rate`, must be a value less than or equal to `100`") # noqa: E501 + if increase_rate is not None and increase_rate < 0: # noqa: E501 + raise ValueError("Invalid value for `increase_rate`, must be a value greater than or equal to `0`") # noqa: E501 + + self._increase_rate = increase_rate + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -778,6 +863,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateEmailCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_email_campaign_recipients.py b/sib_api_v3_sdk/models/create_email_campaign_recipients.py index 252ee0e..da02cce 100644 --- a/sib_api_v3_sdk/models/create_email_campaign_recipients.py +++ b/sib_api_v3_sdk/models/create_email_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateEmailCampaignRecipients, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_email_campaign_sender.py b/sib_api_v3_sdk/models/create_email_campaign_sender.py index adc0560..40a8a10 100644 --- a/sib_api_v3_sdk/models/create_email_campaign_sender.py +++ b/sib_api_v3_sdk/models/create_email_campaign_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,24 +32,29 @@ class CreateEmailCampaignSender(object): """ swagger_types = { 'name': 'str', - 'email': 'str' + 'email': 'str', + 'id': 'int' } attribute_map = { 'name': 'name', - 'email': 'email' + 'email': 'email', + 'id': 'id' } - def __init__(self, name=None, email=None): # noqa: E501 + def __init__(self, name=None, email=None, id=None): # noqa: E501 """CreateEmailCampaignSender - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None + self._id = None self.discriminator = None if name is not None: self.name = name self.email = email + if id is not None: + self.id = id @property def name(self): @@ -99,6 +104,29 @@ def email(self, email): self._email = email + @property + def id(self): + """Gets the id of this CreateEmailCampaignSender. # noqa: E501 + + Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :return: The id of this CreateEmailCampaignSender. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateEmailCampaignSender. + + Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :param id: The id of this CreateEmailCampaignSender. # noqa: E501 + :type: int + """ + + self._id = id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -120,6 +148,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateEmailCampaignSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_list.py b/sib_api_v3_sdk/models/create_list.py index aced38d..2be135c 100644 --- a/sib_api_v3_sdk/models/create_list.py +++ b/sib_api_v3_sdk/models/create_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_model.py b/sib_api_v3_sdk/models/create_model.py index f588404..4f13278 100644 --- a/sib_api_v3_sdk/models/create_model.py +++ b/sib_api_v3_sdk/models/create_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -92,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_reseller.py b/sib_api_v3_sdk/models/create_reseller.py index 750685d..3569cf4 100644 --- a/sib_api_v3_sdk/models/create_reseller.py +++ b/sib_api_v3_sdk/models/create_reseller.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -92,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateReseller, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sender.py b/sib_api_v3_sdk/models/create_sender.py index 4964593..269e136 100644 --- a/sib_api_v3_sdk/models/create_sender.py +++ b/sib_api_v3_sdk/models/create_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps # noqa: F401,E501 - class CreateSender(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -151,6 +149,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sender_ips.py b/sib_api_v3_sdk/models/create_sender_ips.py index ec01d59..9b4d7cf 100644 --- a/sib_api_v3_sdk/models/create_sender_ips.py +++ b/sib_api_v3_sdk/models/create_sender_ips.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -153,6 +153,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSenderIps, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sender_model.py b/sib_api_v3_sdk/models/create_sender_model.py index acc7d76..1d7975f 100644 --- a/sib_api_v3_sdk/models/create_sender_model.py +++ b/sib_api_v3_sdk/models/create_sender_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -148,6 +148,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSenderModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sms_campaign.py b/sib_api_v3_sdk/models/create_sms_campaign.py index 9ac45c1..1fb1bd2 100644 --- a/sib_api_v3_sdk/models/create_sms_campaign.py +++ b/sib_api_v3_sdk/models/create_sms_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.create_sms_campaign_recipients import CreateSmsCampaignRecipients # noqa: F401,E501 - class CreateSmsCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -208,6 +206,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmsCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_sms_campaign_recipients.py b/sib_api_v3_sdk/models/create_sms_campaign_recipients.py index 2d49107..ade86b9 100644 --- a/sib_api_v3_sdk/models/create_sms_campaign_recipients.py +++ b/sib_api_v3_sdk/models/create_sms_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -120,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmsCampaignRecipients, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_smtp_email.py b/sib_api_v3_sdk/models/create_smtp_email.py index d5ce2da..de06da4 100644 --- a/sib_api_v3_sdk/models/create_smtp_email.py +++ b/sib_api_v3_sdk/models/create_smtp_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -92,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmtpEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_smtp_template.py b/sib_api_v3_sdk/models/create_smtp_template.py index 3ab2bb2..ae06986 100644 --- a/sib_api_v3_sdk/models/create_smtp_template.py +++ b/sib_api_v3_sdk/models/create_smtp_template.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.create_smtp_template_sender import CreateSmtpTemplateSender # noqa: F401,E501 - class CreateSmtpTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -346,6 +344,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmtpTemplate, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_smtp_template_sender.py b/sib_api_v3_sdk/models/create_smtp_template_sender.py index 8cd85a3..f58958f 100644 --- a/sib_api_v3_sdk/models/create_smtp_template_sender.py +++ b/sib_api_v3_sdk/models/create_smtp_template_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,24 +32,29 @@ class CreateSmtpTemplateSender(object): """ swagger_types = { 'name': 'str', - 'email': 'str' + 'email': 'str', + 'id': 'int' } attribute_map = { 'name': 'name', - 'email': 'email' + 'email': 'email', + 'id': 'id' } - def __init__(self, name=None, email=None): # noqa: E501 + def __init__(self, name=None, email=None, id=None): # noqa: E501 """CreateSmtpTemplateSender - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None + self._id = None self.discriminator = None if name is not None: self.name = name self.email = email + if id is not None: + self.id = id @property def name(self): @@ -99,6 +104,29 @@ def email(self, email): self._email = email + @property + def id(self): + """Gets the id of this CreateSmtpTemplateSender. # noqa: E501 + + Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :return: The id of this CreateSmtpTemplateSender. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateSmtpTemplateSender. + + Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :param id: The id of this CreateSmtpTemplateSender. # noqa: E501 + :type: int + """ + + self._id = id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -120,6 +148,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateSmtpTemplateSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_update_contact_model.py b/sib_api_v3_sdk/models/create_update_contact_model.py index 5651f7f..2b87270 100644 --- a/sib_api_v3_sdk/models/create_update_contact_model.py +++ b/sib_api_v3_sdk/models/create_update_contact_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateUpdateContactModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_update_folder.py b/sib_api_v3_sdk/models/create_update_folder.py index 259c555..cba25d5 100644 --- a/sib_api_v3_sdk/models/create_update_folder.py +++ b/sib_api_v3_sdk/models/create_update_folder.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateUpdateFolder, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/create_webhook.py b/sib_api_v3_sdk/models/create_webhook.py index 3a66c96..65339d8 100644 --- a/sib_api_v3_sdk/models/create_webhook.py +++ b/sib_api_v3_sdk/models/create_webhook.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -190,6 +190,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreateWebhook, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/created_process_id.py b/sib_api_v3_sdk/models/created_process_id.py index 1bca7c8..00ee46a 100644 --- a/sib_api_v3_sdk/models/created_process_id.py +++ b/sib_api_v3_sdk/models/created_process_id.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -92,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(CreatedProcessId, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/delete_hardbounces.py b/sib_api_v3_sdk/models/delete_hardbounces.py index b694f70..da59c0b 100644 --- a/sib_api_v3_sdk/models/delete_hardbounces.py +++ b/sib_api_v3_sdk/models/delete_hardbounces.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -147,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(DeleteHardbounces, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/email_export_recipients.py b/sib_api_v3_sdk/models/email_export_recipients.py index 7ad832e..35d1e37 100644 --- a/sib_api_v3_sdk/models/email_export_recipients.py +++ b/sib_api_v3_sdk/models/email_export_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -126,6 +126,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EmailExportRecipients, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/error_model.py b/sib_api_v3_sdk/models/error_model.py index 09ac29f..f14885f 100644 --- a/sib_api_v3_sdk/models/error_model.py +++ b/sib_api_v3_sdk/models/error_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -127,6 +127,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ErrorModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_account.py b/sib_api_v3_sdk/models/get_account.py index 1f6cfa9..0363efd 100644 --- a/sib_api_v3_sdk/models/get_account.py +++ b/sib_api_v3_sdk/models/get_account.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,12 +16,6 @@ import six -from sib_api_v3_sdk.models.get_account_marketing_automation import GetAccountMarketingAutomation # noqa: F401,E501 -from sib_api_v3_sdk.models.get_account_plan import GetAccountPlan # noqa: F401,E501 -from sib_api_v3_sdk.models.get_account_relay import GetAccountRelay # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress # noqa: F401,E501 - class GetAccount(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -294,6 +288,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAccount, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_account_marketing_automation.py b/sib_api_v3_sdk/models/get_account_marketing_automation.py index cee10a5..fefbf26 100644 --- a/sib_api_v3_sdk/models/get_account_marketing_automation.py +++ b/sib_api_v3_sdk/models/get_account_marketing_automation.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -120,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAccountMarketingAutomation, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_account_plan.py b/sib_api_v3_sdk/models/get_account_plan.py index 8a32089..0d289b3 100644 --- a/sib_api_v3_sdk/models/get_account_plan.py +++ b/sib_api_v3_sdk/models/get_account_plan.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -246,6 +246,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAccountPlan, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_account_relay.py b/sib_api_v3_sdk/models/get_account_relay.py index d58d5fd..63fff10 100644 --- a/sib_api_v3_sdk/models/get_account_relay.py +++ b/sib_api_v3_sdk/models/get_account_relay.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_account_relay_data import GetAccountRelayData # noqa: F401,E501 - class GetAccountRelay(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -121,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAccountRelay, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_account_relay_data.py b/sib_api_v3_sdk/models/get_account_relay_data.py index b405757..82fa665 100644 --- a/sib_api_v3_sdk/models/get_account_relay_data.py +++ b/sib_api_v3_sdk/models/get_account_relay_data.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -150,6 +150,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAccountRelayData, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_aggregated_report.py b/sib_api_v3_sdk/models/get_aggregated_report.py index b038823..d6df6c2 100644 --- a/sib_api_v3_sdk/models/get_aggregated_report.py +++ b/sib_api_v3_sdk/models/get_aggregated_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -440,6 +440,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAggregatedReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_attributes.py b/sib_api_v3_sdk/models/get_attributes.py index 6b216f0..7da07b0 100644 --- a/sib_api_v3_sdk/models/get_attributes.py +++ b/sib_api_v3_sdk/models/get_attributes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_attributes_attributes import GetAttributesAttributes # noqa: F401,E501 - class GetAttributes(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -94,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAttributes, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_attributes_attributes.py b/sib_api_v3_sdk/models/get_attributes_attributes.py index 194c07d..dc1f00a 100644 --- a/sib_api_v3_sdk/models/get_attributes_attributes.py +++ b/sib_api_v3_sdk/models/get_attributes_attributes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_attributes_enumeration import GetAttributesEnumeration # noqa: F401,E501 - class GetAttributesAttributes(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -219,6 +217,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAttributesAttributes, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_attributes_enumeration.py b/sib_api_v3_sdk/models/get_attributes_enumeration.py index d72716c..ebc4f27 100644 --- a/sib_api_v3_sdk/models/get_attributes_enumeration.py +++ b/sib_api_v3_sdk/models/get_attributes_enumeration.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetAttributesEnumeration, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_campaign_overview.py b/sib_api_v3_sdk/models/get_campaign_overview.py index 7c9c2aa..c2ad190 100644 --- a/sib_api_v3_sdk/models/get_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_campaign_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -443,6 +443,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetCampaignOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_campaign_recipients.py b/sib_api_v3_sdk/models/get_campaign_recipients.py index cbea1a6..8bffa5c 100644 --- a/sib_api_v3_sdk/models/get_campaign_recipients.py +++ b/sib_api_v3_sdk/models/get_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -117,6 +117,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetCampaignRecipients, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_campaign_stats.py b/sib_api_v3_sdk/models/get_campaign_stats.py index cdcf243..55fc22d 100644 --- a/sib_api_v3_sdk/models/get_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -409,6 +409,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_account_creation_status.py b/sib_api_v3_sdk/models/get_child_account_creation_status.py new file mode 100644 index 0000000..3a49415 --- /dev/null +++ b/sib_api_v3_sdk/models/get_child_account_creation_status.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetChildAccountCreationStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'child_account_created': 'bool' + } + + attribute_map = { + 'child_account_created': 'childAccountCreated' + } + + def __init__(self, child_account_created=None): # noqa: E501 + """GetChildAccountCreationStatus - a model defined in Swagger""" # noqa: E501 + + self._child_account_created = None + self.discriminator = None + + self.child_account_created = child_account_created + + @property + def child_account_created(self): + """Gets the child_account_created of this GetChildAccountCreationStatus. # noqa: E501 + + Status of child account creation whether it is successfully created (exists) or not. # noqa: E501 + + :return: The child_account_created of this GetChildAccountCreationStatus. # noqa: E501 + :rtype: bool + """ + return self._child_account_created + + @child_account_created.setter + def child_account_created(self, child_account_created): + """Sets the child_account_created of this GetChildAccountCreationStatus. + + Status of child account creation whether it is successfully created (exists) or not. # noqa: E501 + + :param child_account_created: The child_account_created of this GetChildAccountCreationStatus. # noqa: E501 + :type: bool + """ + if child_account_created is None: + raise ValueError("Invalid value for `child_account_created`, must not be `None`") # noqa: E501 + + self._child_account_created = child_account_created + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetChildAccountCreationStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetChildAccountCreationStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_child_domain.py b/sib_api_v3_sdk/models/get_child_domain.py index 61d8143..c00165e 100644 --- a/sib_api_v3_sdk/models/get_child_domain.py +++ b/sib_api_v3_sdk/models/get_child_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildDomain, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_domains.py b/sib_api_v3_sdk/models/get_child_domains.py index faeeb2f..4debd7f 100644 --- a/sib_api_v3_sdk/models/get_child_domains.py +++ b/sib_api_v3_sdk/models/get_child_domains.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -61,6 +61,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildDomains, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info.py b/sib_api_v3_sdk/models/get_child_info.py index cb3de83..fd264c3 100644 --- a/sib_api_v3_sdk/models/get_child_info.py +++ b/sib_api_v3_sdk/models/get_child_info.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,11 +16,6 @@ import six -from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys # noqa: F401,E501 -from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits # noqa: F401,E501 -from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics # noqa: F401,E501 -from sib_api_v3_sdk.models.get_client import GetClient # noqa: F401,E501 - class GetChildInfo(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -319,6 +314,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildInfo, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys.py b/sib_api_v3_sdk/models/get_child_info_api_keys.py index 6c61219..ce073d3 100644 --- a/sib_api_v3_sdk/models/get_child_info_api_keys.py +++ b/sib_api_v3_sdk/models/get_child_info_api_keys.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 # noqa: F401,E501 -from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 # noqa: F401,E501 - class GetChildInfoApiKeys(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -119,6 +116,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildInfoApiKeys, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py b/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py index f3f9b22..2b14ffa 100644 --- a/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py +++ b/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildInfoApiKeysV2, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py b/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py index 7ca683b..e92b0aa 100644 --- a/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py +++ b/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildInfoApiKeysV3, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info_credits.py b/sib_api_v3_sdk/models/get_child_info_credits.py index 7057c0e..706b39e 100644 --- a/sib_api_v3_sdk/models/get_child_info_credits.py +++ b/sib_api_v3_sdk/models/get_child_info_credits.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildInfoCredits, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_child_info_statistics.py b/sib_api_v3_sdk/models/get_child_info_statistics.py index c565d79..654b980 100644 --- a/sib_api_v3_sdk/models/get_child_info_statistics.py +++ b/sib_api_v3_sdk/models/get_child_info_statistics.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -147,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildInfoStatistics, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_children_list.py b/sib_api_v3_sdk/models/get_children_list.py index d893fd3..41d12a7 100644 --- a/sib_api_v3_sdk/models/get_children_list.py +++ b/sib_api_v3_sdk/models/get_children_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -31,21 +31,25 @@ class GetChildrenList(object): and the value is json key in definition. """ swagger_types = { - 'children': 'list[object]' + 'children': 'list[object]', + 'count': 'int' } attribute_map = { - 'children': 'children' + 'children': 'children', + 'count': 'count' } - def __init__(self, children=None): # noqa: E501 + def __init__(self, children=None, count=None): # noqa: E501 """GetChildrenList - a model defined in Swagger""" # noqa: E501 self._children = None + self._count = None self.discriminator = None if children is not None: self.children = children + self.count = count @property def children(self): @@ -70,6 +74,31 @@ def children(self, children): self._children = children + @property + def count(self): + """Gets the count of this GetChildrenList. # noqa: E501 + + Number of child accounts # noqa: E501 + + :return: The count of this GetChildrenList. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GetChildrenList. + + Number of child accounts # noqa: E501 + + :param count: The count of this GetChildrenList. # noqa: E501 + :type: int + """ + if count is None: + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -91,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetChildrenList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_client.py b/sib_api_v3_sdk/models/get_client.py index 53b9f3d..1995e5d 100644 --- a/sib_api_v3_sdk/models/get_client.py +++ b/sib_api_v3_sdk/models/get_client.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -179,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetClient, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats.py b/sib_api_v3_sdk/models/get_contact_campaign_stats.py index c64259f..4d0cdda 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,12 +16,6 @@ import six -from sib_api_v3_sdk.models.get_contact_campaign_stats_clicked import GetContactCampaignStatsClicked # noqa: F401,E501 -from sib_api_v3_sdk.models.get_contact_campaign_stats_opened import GetContactCampaignStatsOpened # noqa: F401,E501 -from sib_api_v3_sdk.models.get_contact_campaign_stats_transac_attributes import GetContactCampaignStatsTransacAttributes # noqa: F401,E501 -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions import GetContactCampaignStatsUnsubscriptions # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent # noqa: F401,E501 - class GetContactCampaignStats(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -277,6 +271,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py index ac3484a..6f3c1ad 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_clicked.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks # noqa: F401,E501 - class GetContactCampaignStatsClicked(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -34,7 +32,7 @@ class GetContactCampaignStatsClicked(object): """ swagger_types = { 'campaign_id': 'int', - 'links': 'list[GetContactCampaignStatsLinks]' + 'links': 'list[GetExtendedContactDetailsStatisticsLinks]' } attribute_map = { @@ -83,7 +81,7 @@ def links(self): :return: The links of this GetContactCampaignStatsClicked. # noqa: E501 - :rtype: list[GetContactCampaignStatsLinks] + :rtype: list[GetExtendedContactDetailsStatisticsLinks] """ return self._links @@ -93,7 +91,7 @@ def links(self, links): :param links: The links of this GetContactCampaignStatsClicked. # noqa: E501 - :type: list[GetContactCampaignStatsLinks] + :type: list[GetExtendedContactDetailsStatisticsLinks] """ if links is None: raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 @@ -121,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactCampaignStatsClicked, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_links.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_links.py deleted file mode 100644 index 96d9af0..0000000 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_links.py +++ /dev/null @@ -1,202 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - 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 | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetContactCampaignStatsLinks(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'count': 'int', - 'event_time': 'datetime', - 'ip': 'str', - 'url': 'str' - } - - attribute_map = { - 'count': 'count', - 'event_time': 'eventTime', - 'ip': 'ip', - 'url': 'url' - } - - def __init__(self, count=None, event_time=None, ip=None, url=None): # noqa: E501 - """GetContactCampaignStatsLinks - a model defined in Swagger""" # noqa: E501 - - self._count = None - self._event_time = None - self._ip = None - self._url = None - self.discriminator = None - - self.count = count - self.event_time = event_time - self.ip = ip - self.url = url - - @property - def count(self): - """Gets the count of this GetContactCampaignStatsLinks. # noqa: E501 - - Number of clicks on this link for the campaign # noqa: E501 - - :return: The count of this GetContactCampaignStatsLinks. # noqa: E501 - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """Sets the count of this GetContactCampaignStatsLinks. - - Number of clicks on this link for the campaign # noqa: E501 - - :param count: The count of this GetContactCampaignStatsLinks. # noqa: E501 - :type: int - """ - if count is None: - raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 - - self._count = count - - @property - def event_time(self): - """Gets the event_time of this GetContactCampaignStatsLinks. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetContactCampaignStatsLinks. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetContactCampaignStatsLinks. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetContactCampaignStatsLinks. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetContactCampaignStatsLinks. # noqa: E501 - - IP from which the user has clicked on the link # noqa: E501 - - :return: The ip of this GetContactCampaignStatsLinks. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetContactCampaignStatsLinks. - - IP from which the user has clicked on the link # noqa: E501 - - :param ip: The ip of this GetContactCampaignStatsLinks. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - @property - def url(self): - """Gets the url of this GetContactCampaignStatsLinks. # noqa: E501 - - URL of the clicked link # noqa: E501 - - :return: The url of this GetContactCampaignStatsLinks. # noqa: E501 - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this GetContactCampaignStatsLinks. - - URL of the clicked link # noqa: E501 - - :param url: The url of this GetContactCampaignStatsLinks. # noqa: E501 - :type: str - """ - if url is None: - raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 - - self._url = url - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetContactCampaignStatsLinks): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py index 78323e1..64afa24 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -179,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactCampaignStatsOpened, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py index 805efbf..1ad737e 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_transac_attributes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -150,6 +150,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactCampaignStatsTransacAttributes, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py index 6223a76..bd44735 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription # noqa: F401,E501 -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription # noqa: F401,E501 - class GetContactCampaignStatsUnsubscriptions(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -34,8 +31,8 @@ class GetContactCampaignStatsUnsubscriptions(object): and the value is json key in definition. """ swagger_types = { - 'user_unsubscription': 'list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription]', - 'admin_unsubscription': 'list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription]' + 'user_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription]', + 'admin_unsubscription': 'list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription]' } attribute_map = { @@ -60,7 +57,7 @@ def user_unsubscription(self): Contact has unsubscribed via the unsubscription link in the email # noqa: E501 :return: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :rtype: list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription] + :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] """ return self._user_unsubscription @@ -71,7 +68,7 @@ def user_unsubscription(self, user_unsubscription): Contact has unsubscribed via the unsubscription link in the email # noqa: E501 :param user_unsubscription: The user_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :type: list[GetContactCampaignStatsUnsubscriptionsUserUnsubscription] + :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription] """ if user_unsubscription is None: raise ValueError("Invalid value for `user_unsubscription`, must not be `None`") # noqa: E501 @@ -85,7 +82,7 @@ def admin_unsubscription(self): Contact has been unsubscribed from the administrator # noqa: E501 :return: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :rtype: list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription] + :rtype: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] """ return self._admin_unsubscription @@ -96,7 +93,7 @@ def admin_unsubscription(self, admin_unsubscription): Contact has been unsubscribed from the administrator # noqa: E501 :param admin_unsubscription: The admin_unsubscription of this GetContactCampaignStatsUnsubscriptions. # noqa: E501 - :type: list[GetContactCampaignStatsUnsubscriptionsAdminUnsubscription] + :type: list[GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription] """ if admin_unsubscription is None: raise ValueError("Invalid value for `admin_unsubscription`, must not be `None`") # noqa: E501 @@ -124,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactCampaignStatsUnsubscriptions, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py deleted file mode 100644 index df1be32..0000000 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_user_unsubscription.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - SendinBlue API - - 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 | # noqa: E501 - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class GetContactCampaignStatsUnsubscriptionsUserUnsubscription(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'campaign_id': 'int', - 'event_time': 'datetime', - 'ip': 'str' - } - - attribute_map = { - 'campaign_id': 'campaignId', - 'event_time': 'eventTime', - 'ip': 'ip' - } - - def __init__(self, campaign_id=None, event_time=None, ip=None): # noqa: E501 - """GetContactCampaignStatsUnsubscriptionsUserUnsubscription - a model defined in Swagger""" # noqa: E501 - - self._campaign_id = None - self._event_time = None - self._ip = None - self.discriminator = None - - self.campaign_id = campaign_id - self.event_time = event_time - self.ip = ip - - @property - def campaign_id(self): - """Gets the campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - - ID of the campaign which generated the event # noqa: E501 - - :return: The campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - :rtype: int - """ - return self._campaign_id - - @campaign_id.setter - def campaign_id(self, campaign_id): - """Sets the campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. - - ID of the campaign which generated the event # noqa: E501 - - :param campaign_id: The campaign_id of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - :type: int - """ - if campaign_id is None: - raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 - - self._campaign_id = campaign_id - - @property - def event_time(self): - """Gets the event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - - UTC date-time of the event # noqa: E501 - - :return: The event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - - IP from which the user has unsubscribed # noqa: E501 - - :return: The ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - :rtype: str - """ - return self._ip - - @ip.setter - def ip(self, ip): - """Sets the ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. - - IP from which the user has unsubscribed # noqa: E501 - - :param ip: The ip of this GetContactCampaignStatsUnsubscriptionsUserUnsubscription. # noqa: E501 - :type: str - """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 - - self._ip = ip - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GetContactCampaignStatsUnsubscriptionsUserUnsubscription): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sib_api_v3_sdk/models/get_contact_details.py b/sib_api_v3_sdk/models/get_contact_details.py index 5cd891c..2dfd721 100644 --- a/sib_api_v3_sdk/models/get_contact_details.py +++ b/sib_api_v3_sdk/models/get_contact_details.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -319,6 +319,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContactDetails, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contacts.py b/sib_api_v3_sdk/models/get_contacts.py index e785e3c..dc04af8 100644 --- a/sib_api_v3_sdk/models/get_contacts.py +++ b/sib_api_v3_sdk/models/get_contacts.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetContacts, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_device_browser_stats.py b/sib_api_v3_sdk/models/get_device_browser_stats.py new file mode 100644 index 0000000..3158627 --- /dev/null +++ b/sib_api_v3_sdk/models/get_device_browser_stats.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetDeviceBrowserStats(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'clickers': 'int', + 'unique_clicks': 'int', + 'viewed': 'int', + 'unique_views': 'int' + } + + attribute_map = { + 'clickers': 'clickers', + 'unique_clicks': 'uniqueClicks', + 'viewed': 'viewed', + 'unique_views': 'uniqueViews' + } + + def __init__(self, clickers=None, unique_clicks=None, viewed=None, unique_views=None): # noqa: E501 + """GetDeviceBrowserStats - a model defined in Swagger""" # noqa: E501 + + self._clickers = None + self._unique_clicks = None + self._viewed = None + self._unique_views = None + self.discriminator = None + + self.clickers = clickers + self.unique_clicks = unique_clicks + self.viewed = viewed + self.unique_views = unique_views + + @property + def clickers(self): + """Gets the clickers of this GetDeviceBrowserStats. # noqa: E501 + + Number of total clicks for the campaign using the particular browser # noqa: E501 + + :return: The clickers of this GetDeviceBrowserStats. # noqa: E501 + :rtype: int + """ + return self._clickers + + @clickers.setter + def clickers(self, clickers): + """Sets the clickers of this GetDeviceBrowserStats. + + Number of total clicks for the campaign using the particular browser # noqa: E501 + + :param clickers: The clickers of this GetDeviceBrowserStats. # noqa: E501 + :type: int + """ + if clickers is None: + raise ValueError("Invalid value for `clickers`, must not be `None`") # noqa: E501 + + self._clickers = clickers + + @property + def unique_clicks(self): + """Gets the unique_clicks of this GetDeviceBrowserStats. # noqa: E501 + + Number of unique clicks for the campaign using the particular browser # noqa: E501 + + :return: The unique_clicks of this GetDeviceBrowserStats. # noqa: E501 + :rtype: int + """ + return self._unique_clicks + + @unique_clicks.setter + def unique_clicks(self, unique_clicks): + """Sets the unique_clicks of this GetDeviceBrowserStats. + + Number of unique clicks for the campaign using the particular browser # noqa: E501 + + :param unique_clicks: The unique_clicks of this GetDeviceBrowserStats. # noqa: E501 + :type: int + """ + if unique_clicks is None: + raise ValueError("Invalid value for `unique_clicks`, must not be `None`") # noqa: E501 + + self._unique_clicks = unique_clicks + + @property + def viewed(self): + """Gets the viewed of this GetDeviceBrowserStats. # noqa: E501 + + Number of openings for the campaign using the particular browser # noqa: E501 + + :return: The viewed of this GetDeviceBrowserStats. # noqa: E501 + :rtype: int + """ + return self._viewed + + @viewed.setter + def viewed(self, viewed): + """Sets the viewed of this GetDeviceBrowserStats. + + Number of openings for the campaign using the particular browser # noqa: E501 + + :param viewed: The viewed of this GetDeviceBrowserStats. # noqa: E501 + :type: int + """ + if viewed is None: + raise ValueError("Invalid value for `viewed`, must not be `None`") # noqa: E501 + + self._viewed = viewed + + @property + def unique_views(self): + """Gets the unique_views of this GetDeviceBrowserStats. # noqa: E501 + + Number of unique openings for the campaign using the particular browser # noqa: E501 + + :return: The unique_views of this GetDeviceBrowserStats. # noqa: E501 + :rtype: int + """ + return self._unique_views + + @unique_views.setter + def unique_views(self, unique_views): + """Sets the unique_views of this GetDeviceBrowserStats. + + Number of unique openings for the campaign using the particular browser # noqa: E501 + + :param unique_views: The unique_views of this GetDeviceBrowserStats. # noqa: E501 + :type: int + """ + if unique_views is None: + raise ValueError("Invalid value for `unique_views`, must not be `None`") # noqa: E501 + + self._unique_views = unique_views + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetDeviceBrowserStats, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetDeviceBrowserStats): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_email_campaign.py b/sib_api_v3_sdk/models/get_email_campaign.py index 6724ce6..1d386b5 100644 --- a/sib_api_v3_sdk/models/get_email_campaign.py +++ b/sib_api_v3_sdk/models/get_email_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_campaign_overview_sender import GetExtendedCampaignOverviewSender # noqa: F401,E501 - class GetEmailCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -928,6 +925,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetEmailCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_email_campaigns.py b/sib_api_v3_sdk/models/get_email_campaigns.py index 60ccc31..a664185 100644 --- a/sib_api_v3_sdk/models/get_email_campaigns.py +++ b/sib_api_v3_sdk/models/get_email_campaigns.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -118,6 +118,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetEmailCampaigns, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_email_event_report.py b/sib_api_v3_sdk/models/get_email_event_report.py index 77b5509..027ce02 100644 --- a/sib_api_v3_sdk/models/get_email_event_report.py +++ b/sib_api_v3_sdk/models/get_email_event_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_email_event_report_events import GetEmailEventReportEvents # noqa: F401,E501 - class GetEmailEventReport(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -91,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetEmailEventReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_email_event_report_events.py b/sib_api_v3_sdk/models/get_email_event_report_events.py index 4db499c..81f1f17 100644 --- a/sib_api_v3_sdk/models/get_email_event_report_events.py +++ b/sib_api_v3_sdk/models/get_email_event_report_events.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,7 +32,7 @@ class GetEmailEventReportEvents(object): """ swagger_types = { 'email': 'str', - 'date': 'datetime', + '_date': 'datetime', 'subject': 'str', 'message_id': 'str', 'event': 'str', @@ -45,7 +45,7 @@ class GetEmailEventReportEvents(object): attribute_map = { 'email': 'email', - 'date': 'date', + '_date': 'date', 'subject': 'subject', 'message_id': 'messageId', 'event': 'event', @@ -56,11 +56,11 @@ class GetEmailEventReportEvents(object): '_from': 'from' } - def __init__(self, email=None, date=None, subject=None, message_id=None, event=None, reason=None, tag=None, ip=None, link=None, _from=None): # noqa: E501 + def __init__(self, email=None, _date=None, subject=None, message_id=None, event=None, reason=None, tag=None, ip=None, link=None, _from=None): # noqa: E501 """GetEmailEventReportEvents - a model defined in Swagger""" # noqa: E501 self._email = None - self._date = None + self.__date = None self._subject = None self._message_id = None self._event = None @@ -72,7 +72,7 @@ def __init__(self, email=None, date=None, subject=None, message_id=None, event=N self.discriminator = None self.email = email - self.date = date + self._date = _date if subject is not None: self.subject = subject self.message_id = message_id @@ -114,29 +114,29 @@ def email(self, email): self._email = email @property - def date(self): - """Gets the date of this GetEmailEventReportEvents. # noqa: E501 + def _date(self): + """Gets the _date of this GetEmailEventReportEvents. # noqa: E501 UTC date-time on which the event has been generated # noqa: E501 - :return: The date of this GetEmailEventReportEvents. # noqa: E501 + :return: The _date of this GetEmailEventReportEvents. # noqa: E501 :rtype: datetime """ - return self._date + return self.__date - @date.setter - def date(self, date): - """Sets the date of this GetEmailEventReportEvents. + @_date.setter + def _date(self, _date): + """Sets the _date of this GetEmailEventReportEvents. UTC date-time on which the event has been generated # noqa: E501 - :param date: The date of this GetEmailEventReportEvents. # noqa: E501 + :param _date: The _date of this GetEmailEventReportEvents. # noqa: E501 :type: datetime """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - self._date = date + self.__date = _date @property def subject(self): @@ -353,6 +353,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetEmailEventReportEvents, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_campaign_overview.py b/sib_api_v3_sdk/models/get_extended_campaign_overview.py index b6745f2..dab5012 100644 --- a/sib_api_v3_sdk/models/get_extended_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_extended_campaign_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_campaign_overview_sender import GetExtendedCampaignOverviewSender # noqa: F401,E501 - class GetExtendedCampaignOverview(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -874,6 +871,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedCampaignOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py b/sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py index 434fdf2..2d54ec6 100644 --- a/sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py +++ b/sib_api_v3_sdk/models/get_extended_campaign_overview_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,25 +32,30 @@ class GetExtendedCampaignOverviewSender(object): """ swagger_types = { 'name': 'str', - 'email': 'str' + 'email': 'str', + 'id': 'str' } attribute_map = { 'name': 'name', - 'email': 'email' + 'email': 'email', + 'id': 'id' } - def __init__(self, name=None, email=None): # noqa: E501 + def __init__(self, name=None, email=None, id=None): # noqa: E501 """GetExtendedCampaignOverviewSender - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None + self._id = None self.discriminator = None if name is not None: self.name = name if email is not None: self.email = email + if id is not None: + self.id = id @property def name(self): @@ -98,6 +103,29 @@ def email(self, email): self._email = email + @property + def id(self): + """Gets the id of this GetExtendedCampaignOverviewSender. # noqa: E501 + + Sender id of the campaign # noqa: E501 + + :return: The id of this GetExtendedCampaignOverviewSender. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetExtendedCampaignOverviewSender. + + Sender id of the campaign # noqa: E501 + + :param id: The id of this GetExtendedCampaignOverviewSender. # noqa: E501 + :type: str + """ + + self._id = id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedCampaignOverviewSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_campaign_stats.py b/sib_api_v3_sdk/models/get_extended_campaign_stats.py index abc770d..af3a4e6 100644 --- a/sib_api_v3_sdk/models/get_extended_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_extended_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_stats_by_domain import GetStatsByDomain # noqa: F401,E501 - class GetExtendedCampaignStats(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -38,7 +36,9 @@ class GetExtendedCampaignStats(object): 'mirror_click': 'int', 'remaining': 'int', 'links_stats': 'object', - 'stats_by_domain': 'GetStatsByDomain' + 'stats_by_domain': 'GetStatsByDomain', + 'stats_by_device': 'GetStatsByDevice', + 'stats_by_browser': 'GetStatsByBrowser' } attribute_map = { @@ -47,10 +47,12 @@ class GetExtendedCampaignStats(object): 'mirror_click': 'mirrorClick', 'remaining': 'remaining', 'links_stats': 'linksStats', - 'stats_by_domain': 'statsByDomain' + 'stats_by_domain': 'statsByDomain', + 'stats_by_device': 'statsByDevice', + 'stats_by_browser': 'statsByBrowser' } - def __init__(self, global_stats=None, campaign_stats=None, mirror_click=None, remaining=None, links_stats=None, stats_by_domain=None): # noqa: E501 + def __init__(self, global_stats=None, campaign_stats=None, mirror_click=None, remaining=None, links_stats=None, stats_by_domain=None, stats_by_device=None, stats_by_browser=None): # noqa: E501 """GetExtendedCampaignStats - a model defined in Swagger""" # noqa: E501 self._global_stats = None @@ -59,6 +61,8 @@ def __init__(self, global_stats=None, campaign_stats=None, mirror_click=None, re self._remaining = None self._links_stats = None self._stats_by_domain = None + self._stats_by_device = None + self._stats_by_browser = None self.discriminator = None self.global_stats = global_stats @@ -67,6 +71,8 @@ def __init__(self, global_stats=None, campaign_stats=None, mirror_click=None, re self.remaining = remaining self.links_stats = links_stats self.stats_by_domain = stats_by_domain + self.stats_by_device = stats_by_device + self.stats_by_browser = stats_by_browser @property def global_stats(self): @@ -216,6 +222,56 @@ def stats_by_domain(self, stats_by_domain): self._stats_by_domain = stats_by_domain + @property + def stats_by_device(self): + """Gets the stats_by_device of this GetExtendedCampaignStats. # noqa: E501 + + Statistics about the campaign on the basis of various devices # noqa: E501 + + :return: The stats_by_device of this GetExtendedCampaignStats. # noqa: E501 + :rtype: GetStatsByDevice + """ + return self._stats_by_device + + @stats_by_device.setter + def stats_by_device(self, stats_by_device): + """Sets the stats_by_device of this GetExtendedCampaignStats. + + Statistics about the campaign on the basis of various devices # noqa: E501 + + :param stats_by_device: The stats_by_device of this GetExtendedCampaignStats. # noqa: E501 + :type: GetStatsByDevice + """ + if stats_by_device is None: + raise ValueError("Invalid value for `stats_by_device`, must not be `None`") # noqa: E501 + + self._stats_by_device = stats_by_device + + @property + def stats_by_browser(self): + """Gets the stats_by_browser of this GetExtendedCampaignStats. # noqa: E501 + + Statistics about the campaign on the basis of various browsers # noqa: E501 + + :return: The stats_by_browser of this GetExtendedCampaignStats. # noqa: E501 + :rtype: GetStatsByBrowser + """ + return self._stats_by_browser + + @stats_by_browser.setter + def stats_by_browser(self, stats_by_browser): + """Sets the stats_by_browser of this GetExtendedCampaignStats. + + Statistics about the campaign on the basis of various browsers # noqa: E501 + + :param stats_by_browser: The stats_by_browser of this GetExtendedCampaignStats. # noqa: E501 + :type: GetStatsByBrowser + """ + if stats_by_browser is None: + raise ValueError("Invalid value for `stats_by_browser`, must not be `None`") # noqa: E501 + + self._stats_by_browser = stats_by_browser + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -237,6 +293,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_client.py b/sib_api_v3_sdk/models/get_extended_client.py index 5aa878f..6efcd7f 100644 --- a/sib_api_v3_sdk/models/get_extended_client.py +++ b/sib_api_v3_sdk/models/get_extended_client.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_client import GetClient # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress # noqa: F401,E501 - class GetExtendedClient(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -209,6 +206,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedClient, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_client_address.py b/sib_api_v3_sdk/models/get_extended_client_address.py index f993d65..5a663cd 100644 --- a/sib_api_v3_sdk/models/get_extended_client_address.py +++ b/sib_api_v3_sdk/models/get_extended_client_address.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -179,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedClientAddress, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details.py b/sib_api_v3_sdk/models/get_extended_contact_details.py index 9caa9ee..6890a88 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_contact_details import GetContactDetails # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics import GetExtendedContactDetailsStatistics # noqa: F401,E501 - class GetExtendedContactDetails(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -349,6 +346,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetails, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py index d3f6d44..0e20782 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,11 +16,6 @@ import six -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked import GetExtendedContactDetailsStatisticsClicked # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened import GetExtendedContactDetailsStatisticsOpened # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions import GetExtendedContactDetailsStatisticsUnsubscriptions # noqa: F401,E501 - class GetExtendedContactDetailsStatistics(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -290,6 +285,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatistics, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py index 755ccf0..efffa2b 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_clicked.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks # noqa: F401,E501 - class GetExtendedContactDetailsStatisticsClicked(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -123,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatisticsClicked, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py index ec96aea..985c611 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -55,8 +55,7 @@ def __init__(self, count=None, event_time=None, ip=None, url=None): # noqa: E50 self.count = count self.event_time = event_time - if ip is not None: - self.ip = ip + self.ip = ip self.url = url @property @@ -129,6 +128,8 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 :type: str """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip @@ -178,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatisticsLinks, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py index 204868e..073df5f 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatisticsMessagesSent, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py index 0830869..bbc3952 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -56,8 +56,7 @@ def __init__(self, campaign_id=None, count=None, event_time=None, ip=None): # n self.campaign_id = campaign_id self.count = count self.event_time = event_time - if ip is not None: - self.ip = ip + self.ip = ip @property def campaign_id(self): @@ -154,6 +153,8 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 :type: str """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip @@ -178,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatisticsOpened, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py index 3c894b9..b4adea9 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription # noqa: F401,E501 -from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription # noqa: F401,E501 - class GetExtendedContactDetailsStatisticsUnsubscriptions(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -124,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatisticsUnsubscriptions, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py index 23b0545..7ff6828 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -48,8 +48,7 @@ def __init__(self, event_time=None, ip=None): # noqa: E501 self.discriminator = None self.event_time = event_time - if ip is not None: - self.ip = ip + self.ip = ip @property def event_time(self): @@ -96,6 +95,8 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 :type: str """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip @@ -120,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py index ed437f5..59ab8da 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -52,8 +52,7 @@ def __init__(self, campaign_id=None, event_time=None, ip=None): # noqa: E501 self.campaign_id = campaign_id self.event_time = event_time - if ip is not None: - self.ip = ip + self.ip = ip @property def campaign_id(self): @@ -125,6 +124,8 @@ def ip(self, ip): :param ip: The ip of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 :type: str """ + if ip is None: + raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip @@ -149,6 +150,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_list.py b/sib_api_v3_sdk/models/get_extended_list.py index 7ca41b3..175424c 100644 --- a/sib_api_v3_sdk/models/get_extended_list.py +++ b/sib_api_v3_sdk/models/get_extended_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.get_extended_list_campaign_stats import GetExtendedListCampaignStats # noqa: F401,E501 -from sib_api_v3_sdk.models.get_list import GetList # noqa: F401,E501 - class GetExtendedList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -294,6 +291,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_extended_list_campaign_stats.py b/sib_api_v3_sdk/models/get_extended_list_campaign_stats.py index fd4aff1..7b1ec4e 100644 --- a/sib_api_v3_sdk/models/get_extended_list_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_extended_list_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats # noqa: F401,E501 - class GetExtendedListCampaignStats(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -121,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetExtendedListCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_folder.py b/sib_api_v3_sdk/models/get_folder.py index d9cd246..cd00aca 100644 --- a/sib_api_v3_sdk/models/get_folder.py +++ b/sib_api_v3_sdk/models/get_folder.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -208,6 +208,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetFolder, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_folder_lists.py b/sib_api_v3_sdk/models/get_folder_lists.py index 8b07f5d..b302264 100644 --- a/sib_api_v3_sdk/models/get_folder_lists.py +++ b/sib_api_v3_sdk/models/get_folder_lists.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetFolderLists, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_folders.py b/sib_api_v3_sdk/models/get_folders.py index f562f41..5d83788 100644 --- a/sib_api_v3_sdk/models/get_folders.py +++ b/sib_api_v3_sdk/models/get_folders.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -117,6 +117,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetFolders, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ip.py b/sib_api_v3_sdk/models/get_ip.py index 633c309..6acbc88 100644 --- a/sib_api_v3_sdk/models/get_ip.py +++ b/sib_api_v3_sdk/models/get_ip.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -179,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIp, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ip_from_sender.py b/sib_api_v3_sdk/models/get_ip_from_sender.py index 8dee534..230c6ac 100644 --- a/sib_api_v3_sdk/models/get_ip_from_sender.py +++ b/sib_api_v3_sdk/models/get_ip_from_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -179,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIpFromSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ips.py b/sib_api_v3_sdk/models/get_ips.py index 4fd60cf..5a1b6d0 100644 --- a/sib_api_v3_sdk/models/get_ips.py +++ b/sib_api_v3_sdk/models/get_ips.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_ip import GetIp # noqa: F401,E501 - class GetIps(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -94,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIps, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_ips_from_sender.py b/sib_api_v3_sdk/models/get_ips_from_sender.py index f41de4c..ff6a5d3 100644 --- a/sib_api_v3_sdk/models/get_ips_from_sender.py +++ b/sib_api_v3_sdk/models/get_ips_from_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_ip_from_sender import GetIpFromSender # noqa: F401,E501 - class GetIpsFromSender(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -94,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetIpsFromSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_list.py b/sib_api_v3_sdk/models/get_list.py index 66f1060..64b709d 100644 --- a/sib_api_v3_sdk/models/get_list.py +++ b/sib_api_v3_sdk/models/get_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -179,6 +179,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_lists.py b/sib_api_v3_sdk/models/get_lists.py index 7479cad..7de958e 100644 --- a/sib_api_v3_sdk/models/get_lists.py +++ b/sib_api_v3_sdk/models/get_lists.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetLists, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_process.py b/sib_api_v3_sdk/models/get_process.py index a56000a..500e614 100644 --- a/sib_api_v3_sdk/models/get_process.py +++ b/sib_api_v3_sdk/models/get_process.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -184,6 +184,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetProcess, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_processes.py b/sib_api_v3_sdk/models/get_processes.py index 3857da1..7ae0300 100644 --- a/sib_api_v3_sdk/models/get_processes.py +++ b/sib_api_v3_sdk/models/get_processes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_process import GetProcess # noqa: F401,E501 - class GetProcesses(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -122,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetProcesses, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_reports.py b/sib_api_v3_sdk/models/get_reports.py index 1c8de1e..01ab9db 100644 --- a/sib_api_v3_sdk/models/get_reports.py +++ b/sib_api_v3_sdk/models/get_reports.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_reports_reports import GetReportsReports # noqa: F401,E501 - class GetReports(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -91,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetReports, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_reports_reports.py b/sib_api_v3_sdk/models/get_reports_reports.py index ebcabbf..2c54c5e 100644 --- a/sib_api_v3_sdk/models/get_reports_reports.py +++ b/sib_api_v3_sdk/models/get_reports_reports.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -31,7 +31,7 @@ class GetReportsReports(object): and the value is json key in definition. """ swagger_types = { - 'date': 'date', + '_date': 'date', 'requests': 'int', 'delivered': 'int', 'hard_bounces': 'int', @@ -47,7 +47,7 @@ class GetReportsReports(object): } attribute_map = { - 'date': 'date', + '_date': 'date', 'requests': 'requests', 'delivered': 'delivered', 'hard_bounces': 'hardBounces', @@ -62,10 +62,10 @@ class GetReportsReports(object): 'unsubscribed': 'unsubscribed' } - def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None): # noqa: E501 + def __init__(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, clicks=None, unique_clicks=None, opens=None, unique_opens=None, spam_reports=None, blocked=None, invalid=None, unsubscribed=None): # noqa: E501 """GetReportsReports - a model defined in Swagger""" # noqa: E501 - self._date = None + self.__date = None self._requests = None self._delivered = None self._hard_bounces = None @@ -80,7 +80,7 @@ def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, self._unsubscribed = None self.discriminator = None - self.date = date + self._date = _date self.requests = requests self.delivered = delivered self.hard_bounces = hard_bounces @@ -95,29 +95,29 @@ def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, self.unsubscribed = unsubscribed @property - def date(self): - """Gets the date of this GetReportsReports. # noqa: E501 + def _date(self): + """Gets the _date of this GetReportsReports. # noqa: E501 Date of the statistics # noqa: E501 - :return: The date of this GetReportsReports. # noqa: E501 + :return: The _date of this GetReportsReports. # noqa: E501 :rtype: date """ - return self._date + return self.__date - @date.setter - def date(self, date): - """Sets the date of this GetReportsReports. + @_date.setter + def _date(self, _date): + """Sets the _date of this GetReportsReports. Date of the statistics # noqa: E501 - :param date: The date of this GetReportsReports. # noqa: E501 + :param _date: The _date of this GetReportsReports. # noqa: E501 :type: date """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - self._date = date + self.__date = _date @property def requests(self): @@ -440,6 +440,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetReportsReports, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_senders_list.py b/sib_api_v3_sdk/models/get_senders_list.py index f8a08b6..e5463fd 100644 --- a/sib_api_v3_sdk/models/get_senders_list.py +++ b/sib_api_v3_sdk/models/get_senders_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_senders_list_senders import GetSendersListSenders # noqa: F401,E501 - class GetSendersList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -93,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSendersList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_senders_list_ips.py b/sib_api_v3_sdk/models/get_senders_list_ips.py index 000af35..bb397c5 100644 --- a/sib_api_v3_sdk/models/get_senders_list_ips.py +++ b/sib_api_v3_sdk/models/get_senders_list_ips.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -150,6 +150,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSendersListIps, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_senders_list_senders.py b/sib_api_v3_sdk/models/get_senders_list_senders.py index b172362..18b388b 100644 --- a/sib_api_v3_sdk/models/get_senders_list_senders.py +++ b/sib_api_v3_sdk/models/get_senders_list_senders.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_senders_list_ips import GetSendersListIps # noqa: F401,E501 - class GetSendersListSenders(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -209,6 +207,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSendersListSenders, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py b/sib_api_v3_sdk/models/get_shared_template_url.py similarity index 56% rename from sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py rename to sib_api_v3_sdk/models/get_shared_template_url.py index 00de018..2df1955 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py +++ b/sib_api_v3_sdk/models/get_shared_template_url.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -17,7 +17,7 @@ import six -class GetContactCampaignStatsUnsubscriptionsAdminUnsubscription(object): +class GetSharedTemplateUrl(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,74 +31,45 @@ class GetContactCampaignStatsUnsubscriptionsAdminUnsubscription(object): and the value is json key in definition. """ swagger_types = { - 'event_time': 'datetime', - 'ip': 'str' + 'shared_url': 'str' } attribute_map = { - 'event_time': 'eventTime', - 'ip': 'ip' + 'shared_url': 'sharedUrl' } - def __init__(self, event_time=None, ip=None): # noqa: E501 - """GetContactCampaignStatsUnsubscriptionsAdminUnsubscription - a model defined in Swagger""" # noqa: E501 + def __init__(self, shared_url=None): # noqa: E501 + """GetSharedTemplateUrl - a model defined in Swagger""" # noqa: E501 - self._event_time = None - self._ip = None + self._shared_url = None self.discriminator = None - self.event_time = event_time - self.ip = ip + self.shared_url = shared_url @property - def event_time(self): - """Gets the event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + def shared_url(self): + """Gets the shared_url of this GetSharedTemplateUrl. # noqa: E501 - UTC date-time of the event # noqa: E501 + A unique URL for the email campaign or transactional template. This URL can be shared with other Sendinblue users. # noqa: E501 - :return: The event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :rtype: datetime - """ - return self._event_time - - @event_time.setter - def event_time(self, event_time): - """Sets the event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. - - UTC date-time of the event # noqa: E501 - - :param event_time: The event_time of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :type: datetime - """ - if event_time is None: - raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 - - self._event_time = event_time - - @property - def ip(self): - """Gets the ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 - - IP from which the user has been unsubscribed # noqa: E501 - - :return: The ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + :return: The shared_url of this GetSharedTemplateUrl. # noqa: E501 :rtype: str """ - return self._ip + return self._shared_url - @ip.setter - def ip(self, ip): - """Sets the ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. + @shared_url.setter + def shared_url(self, shared_url): + """Sets the shared_url of this GetSharedTemplateUrl. - IP from which the user has been unsubscribed # noqa: E501 + A unique URL for the email campaign or transactional template. This URL can be shared with other Sendinblue users. # noqa: E501 - :param ip: The ip of this GetContactCampaignStatsUnsubscriptionsAdminUnsubscription. # noqa: E501 + :param shared_url: The shared_url of this GetSharedTemplateUrl. # noqa: E501 :type: str """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 + if shared_url is None: + raise ValueError("Invalid value for `shared_url`, must not be `None`") # noqa: E501 - self._ip = ip + self._shared_url = shared_url def to_dict(self): """Returns the model properties as a dict""" @@ -121,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSharedTemplateUrl, dict): + for key, value in self.items(): + result[key] = value return result @@ -134,7 +108,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, GetContactCampaignStatsUnsubscriptionsAdminUnsubscription): + if not isinstance(other, GetSharedTemplateUrl): return False return self.__dict__ == other.__dict__ diff --git a/sib_api_v3_sdk/models/get_sms_campaign.py b/sib_api_v3_sdk/models/get_sms_campaign.py index 890e317..e0d0a46 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign.py +++ b/sib_api_v3_sdk/models/get_sms_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_sms_campaign_overview import GetSmsCampaignOverview # noqa: F401,E501 - class GetSmsCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -357,6 +355,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_campaign_overview.py b/sib_api_v3_sdk/models/get_sms_campaign_overview.py index 7a49976..ed2b5fe 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_sms_campaign_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -301,6 +301,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaignOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_campaign_stats.py b/sib_api_v3_sdk/models/get_sms_campaign_stats.py index 8db82fa..b59247e 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_sms_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -266,6 +266,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaignStats, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_campaigns.py b/sib_api_v3_sdk/models/get_sms_campaigns.py index 1ed170f..b8c93d1 100644 --- a/sib_api_v3_sdk/models/get_sms_campaigns.py +++ b/sib_api_v3_sdk/models/get_sms_campaigns.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -118,6 +118,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsCampaigns, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_event_report.py b/sib_api_v3_sdk/models/get_sms_event_report.py index 6e5b098..9112efb 100644 --- a/sib_api_v3_sdk/models/get_sms_event_report.py +++ b/sib_api_v3_sdk/models/get_sms_event_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_sms_event_report_events import GetSmsEventReportEvents # noqa: F401,E501 - class GetSmsEventReport(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -91,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsEventReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sms_event_report_events.py b/sib_api_v3_sdk/models/get_sms_event_report_events.py index 46efcf0..6d2f439 100644 --- a/sib_api_v3_sdk/models/get_sms_event_report_events.py +++ b/sib_api_v3_sdk/models/get_sms_event_report_events.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,7 +32,7 @@ class GetSmsEventReportEvents(object): """ swagger_types = { 'phone_number': 'str', - 'date': 'datetime', + '_date': 'datetime', 'message_id': 'str', 'event': 'str', 'reason': 'str', @@ -42,7 +42,7 @@ class GetSmsEventReportEvents(object): attribute_map = { 'phone_number': 'phoneNumber', - 'date': 'date', + '_date': 'date', 'message_id': 'messageId', 'event': 'event', 'reason': 'reason', @@ -50,11 +50,11 @@ class GetSmsEventReportEvents(object): 'tag': 'tag' } - def __init__(self, phone_number=None, date=None, message_id=None, event=None, reason=None, reply=None, tag=None): # noqa: E501 + def __init__(self, phone_number=None, _date=None, message_id=None, event=None, reason=None, reply=None, tag=None): # noqa: E501 """GetSmsEventReportEvents - a model defined in Swagger""" # noqa: E501 self._phone_number = None - self._date = None + self.__date = None self._message_id = None self._event = None self._reason = None @@ -63,7 +63,7 @@ def __init__(self, phone_number=None, date=None, message_id=None, event=None, re self.discriminator = None self.phone_number = phone_number - self.date = date + self._date = _date self.message_id = message_id self.event = event if reason is not None: @@ -99,29 +99,29 @@ def phone_number(self, phone_number): self._phone_number = phone_number @property - def date(self): - """Gets the date of this GetSmsEventReportEvents. # noqa: E501 + def _date(self): + """Gets the _date of this GetSmsEventReportEvents. # noqa: E501 UTC date-time on which the event has been generated # noqa: E501 - :return: The date of this GetSmsEventReportEvents. # noqa: E501 + :return: The _date of this GetSmsEventReportEvents. # noqa: E501 :rtype: datetime """ - return self._date + return self.__date - @date.setter - def date(self, date): - """Sets the date of this GetSmsEventReportEvents. + @_date.setter + def _date(self, _date): + """Sets the _date of this GetSmsEventReportEvents. UTC date-time on which the event has been generated # noqa: E501 - :param date: The date of this GetSmsEventReportEvents. # noqa: E501 + :param _date: The _date of this GetSmsEventReportEvents. # noqa: E501 :type: datetime """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - self._date = date + self.__date = _date @property def message_id(self): @@ -267,6 +267,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmsEventReportEvents, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_smtp_template_overview.py b/sib_api_v3_sdk/models/get_smtp_template_overview.py index f5ed3b2..c3594b8 100644 --- a/sib_api_v3_sdk/models/get_smtp_template_overview.py +++ b/sib_api_v3_sdk/models/get_smtp_template_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_smtp_template_overview_sender import GetSmtpTemplateOverviewSender # noqa: F401,E501 - class GetSmtpTemplateOverview(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -411,6 +409,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmtpTemplateOverview, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_smtp_template_overview_sender.py b/sib_api_v3_sdk/models/get_smtp_template_overview_sender.py index 0139bf4..126b9ef 100644 --- a/sib_api_v3_sdk/models/get_smtp_template_overview_sender.py +++ b/sib_api_v3_sdk/models/get_smtp_template_overview_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,25 +32,30 @@ class GetSmtpTemplateOverviewSender(object): """ swagger_types = { 'name': 'str', - 'email': 'str' + 'email': 'str', + 'id': 'str' } attribute_map = { 'name': 'name', - 'email': 'email' + 'email': 'email', + 'id': 'id' } - def __init__(self, name=None, email=None): # noqa: E501 + def __init__(self, name=None, email=None, id=None): # noqa: E501 """GetSmtpTemplateOverviewSender - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None + self._id = None self.discriminator = None if name is not None: self.name = name if email is not None: self.email = email + if id is not None: + self.id = id @property def name(self): @@ -98,6 +103,29 @@ def email(self, email): self._email = email + @property + def id(self): + """Gets the id of this GetSmtpTemplateOverviewSender. # noqa: E501 + + Sender id of the template # noqa: E501 + + :return: The id of this GetSmtpTemplateOverviewSender. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetSmtpTemplateOverviewSender. + + Sender id of the template # noqa: E501 + + :param id: The id of this GetSmtpTemplateOverviewSender. # noqa: E501 + :type: str + """ + + self._id = id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmtpTemplateOverviewSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_smtp_templates.py b/sib_api_v3_sdk/models/get_smtp_templates.py index 7217e8f..8a1e9c0 100644 --- a/sib_api_v3_sdk/models/get_smtp_templates.py +++ b/sib_api_v3_sdk/models/get_smtp_templates.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_smtp_template_overview import GetSmtpTemplateOverview # noqa: F401,E501 - class GetSmtpTemplates(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -119,6 +117,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSmtpTemplates, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_sso_token.py b/sib_api_v3_sdk/models/get_sso_token.py index 8acd9dc..fddda8d 100644 --- a/sib_api_v3_sdk/models/get_sso_token.py +++ b/sib_api_v3_sdk/models/get_sso_token.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -92,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetSsoToken, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_stats_by_browser.py b/sib_api_v3_sdk/models/get_stats_by_browser.py new file mode 100644 index 0000000..d5ba4f2 --- /dev/null +++ b/sib_api_v3_sdk/models/get_stats_by_browser.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetStatsByBrowser(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """GetStatsByBrowser - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetStatsByBrowser, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetStatsByBrowser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_stats_by_device.py b/sib_api_v3_sdk/models/get_stats_by_device.py new file mode 100644 index 0000000..328c8a5 --- /dev/null +++ b/sib_api_v3_sdk/models/get_stats_by_device.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetStatsByDevice(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'desktop': 'dict(str, GetDeviceBrowserStats)', + 'mobile': 'dict(str, GetDeviceBrowserStats)', + 'tablet': 'dict(str, GetDeviceBrowserStats)', + 'unknown': 'dict(str, GetDeviceBrowserStats)' + } + + attribute_map = { + 'desktop': 'desktop', + 'mobile': 'mobile', + 'tablet': 'tablet', + 'unknown': 'unknown' + } + + def __init__(self, desktop=None, mobile=None, tablet=None, unknown=None): # noqa: E501 + """GetStatsByDevice - a model defined in Swagger""" # noqa: E501 + + self._desktop = None + self._mobile = None + self._tablet = None + self._unknown = None + self.discriminator = None + + if desktop is not None: + self.desktop = desktop + if mobile is not None: + self.mobile = mobile + if tablet is not None: + self.tablet = tablet + if unknown is not None: + self.unknown = unknown + + @property + def desktop(self): + """Gets the desktop of this GetStatsByDevice. # noqa: E501 + + Statistics of the campaign on the basis of desktop devices # noqa: E501 + + :return: The desktop of this GetStatsByDevice. # noqa: E501 + :rtype: dict(str, GetDeviceBrowserStats) + """ + return self._desktop + + @desktop.setter + def desktop(self, desktop): + """Sets the desktop of this GetStatsByDevice. + + Statistics of the campaign on the basis of desktop devices # noqa: E501 + + :param desktop: The desktop of this GetStatsByDevice. # noqa: E501 + :type: dict(str, GetDeviceBrowserStats) + """ + + self._desktop = desktop + + @property + def mobile(self): + """Gets the mobile of this GetStatsByDevice. # noqa: E501 + + Statistics of the campaign on the basis of mobile devices # noqa: E501 + + :return: The mobile of this GetStatsByDevice. # noqa: E501 + :rtype: dict(str, GetDeviceBrowserStats) + """ + return self._mobile + + @mobile.setter + def mobile(self, mobile): + """Sets the mobile of this GetStatsByDevice. + + Statistics of the campaign on the basis of mobile devices # noqa: E501 + + :param mobile: The mobile of this GetStatsByDevice. # noqa: E501 + :type: dict(str, GetDeviceBrowserStats) + """ + + self._mobile = mobile + + @property + def tablet(self): + """Gets the tablet of this GetStatsByDevice. # noqa: E501 + + Statistics of the campaign on the basis of tablet devices # noqa: E501 + + :return: The tablet of this GetStatsByDevice. # noqa: E501 + :rtype: dict(str, GetDeviceBrowserStats) + """ + return self._tablet + + @tablet.setter + def tablet(self, tablet): + """Sets the tablet of this GetStatsByDevice. + + Statistics of the campaign on the basis of tablet devices # noqa: E501 + + :param tablet: The tablet of this GetStatsByDevice. # noqa: E501 + :type: dict(str, GetDeviceBrowserStats) + """ + + self._tablet = tablet + + @property + def unknown(self): + """Gets the unknown of this GetStatsByDevice. # noqa: E501 + + Statistics of the campaign on the basis of unknown devices # noqa: E501 + + :return: The unknown of this GetStatsByDevice. # noqa: E501 + :rtype: dict(str, GetDeviceBrowserStats) + """ + return self._unknown + + @unknown.setter + def unknown(self, unknown): + """Sets the unknown of this GetStatsByDevice. + + Statistics of the campaign on the basis of unknown devices # noqa: E501 + + :param unknown: The unknown of this GetStatsByDevice. # noqa: E501 + :type: dict(str, GetDeviceBrowserStats) + """ + + self._unknown = unknown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetStatsByDevice, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetStatsByDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_stats_by_domain.py b/sib_api_v3_sdk/models/get_stats_by_domain.py index 3eacc19..f10104f 100644 --- a/sib_api_v3_sdk/models/get_stats_by_domain.py +++ b/sib_api_v3_sdk/models/get_stats_by_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats # noqa: F401,E501 - class GetStatsByDomain(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -63,6 +61,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetStatsByDomain, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py b/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py index 8ce81ad..6ea7a6c 100644 --- a/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py +++ b/sib_api_v3_sdk/models/get_transac_aggregated_sms_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -353,6 +353,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacAggregatedSmsReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_blocked_contacts.py b/sib_api_v3_sdk/models/get_transac_blocked_contacts.py new file mode 100644 index 0000000..984fd25 --- /dev/null +++ b/sib_api_v3_sdk/models/get_transac_blocked_contacts.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetTransacBlockedContacts(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'contacts': 'list[GetTransacBlockedContactsContacts]' + } + + attribute_map = { + 'count': 'count', + 'contacts': 'contacts' + } + + def __init__(self, count=None, contacts=None): # noqa: E501 + """GetTransacBlockedContacts - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._contacts = None + self.discriminator = None + + if count is not None: + self.count = count + if contacts is not None: + self.contacts = contacts + + @property + def count(self): + """Gets the count of this GetTransacBlockedContacts. # noqa: E501 + + Count of blocked or unsubscribed contact # noqa: E501 + + :return: The count of this GetTransacBlockedContacts. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GetTransacBlockedContacts. + + Count of blocked or unsubscribed contact # noqa: E501 + + :param count: The count of this GetTransacBlockedContacts. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def contacts(self): + """Gets the contacts of this GetTransacBlockedContacts. # noqa: E501 + + + :return: The contacts of this GetTransacBlockedContacts. # noqa: E501 + :rtype: list[GetTransacBlockedContactsContacts] + """ + return self._contacts + + @contacts.setter + def contacts(self, contacts): + """Sets the contacts of this GetTransacBlockedContacts. + + + :param contacts: The contacts of this GetTransacBlockedContacts. # noqa: E501 + :type: list[GetTransacBlockedContactsContacts] + """ + + self._contacts = contacts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetTransacBlockedContacts, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetTransacBlockedContacts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py b/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py new file mode 100644 index 0000000..02a84ff --- /dev/null +++ b/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetTransacBlockedContactsContacts(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'sender_email': 'str', + 'reason': 'GetTransacBlockedContactsReason', + 'blocked_at': 'date' + } + + attribute_map = { + 'email': 'email', + 'sender_email': 'senderEmail', + 'reason': 'reason', + 'blocked_at': 'blockedAt' + } + + def __init__(self, email=None, sender_email=None, reason=None, blocked_at=None): # noqa: E501 + """GetTransacBlockedContactsContacts - a model defined in Swagger""" # noqa: E501 + + self._email = None + self._sender_email = None + self._reason = None + self._blocked_at = None + self.discriminator = None + + self.email = email + self.sender_email = sender_email + self.reason = reason + self.blocked_at = blocked_at + + @property + def email(self): + """Gets the email of this GetTransacBlockedContactsContacts. # noqa: E501 + + Email address of the blocked or unsubscribed contact # noqa: E501 + + :return: The email of this GetTransacBlockedContactsContacts. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this GetTransacBlockedContactsContacts. + + Email address of the blocked or unsubscribed contact # noqa: E501 + + :param email: The email of this GetTransacBlockedContactsContacts. # noqa: E501 + :type: str + """ + if email is None: + raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 + + self._email = email + + @property + def sender_email(self): + """Gets the sender_email of this GetTransacBlockedContactsContacts. # noqa: E501 + + Sender email address of the blocked or unsubscribed contact # noqa: E501 + + :return: The sender_email of this GetTransacBlockedContactsContacts. # noqa: E501 + :rtype: str + """ + return self._sender_email + + @sender_email.setter + def sender_email(self, sender_email): + """Sets the sender_email of this GetTransacBlockedContactsContacts. + + Sender email address of the blocked or unsubscribed contact # noqa: E501 + + :param sender_email: The sender_email of this GetTransacBlockedContactsContacts. # noqa: E501 + :type: str + """ + if sender_email is None: + raise ValueError("Invalid value for `sender_email`, must not be `None`") # noqa: E501 + + self._sender_email = sender_email + + @property + def reason(self): + """Gets the reason of this GetTransacBlockedContactsContacts. # noqa: E501 + + + :return: The reason of this GetTransacBlockedContactsContacts. # noqa: E501 + :rtype: GetTransacBlockedContactsReason + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this GetTransacBlockedContactsContacts. + + + :param reason: The reason of this GetTransacBlockedContactsContacts. # noqa: E501 + :type: GetTransacBlockedContactsReason + """ + if reason is None: + raise ValueError("Invalid value for `reason`, must not be `None`") # noqa: E501 + + self._reason = reason + + @property + def blocked_at(self): + """Gets the blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 + + Date when the contact was blocked or unsubscribed on # noqa: E501 + + :return: The blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 + :rtype: date + """ + return self._blocked_at + + @blocked_at.setter + def blocked_at(self, blocked_at): + """Sets the blocked_at of this GetTransacBlockedContactsContacts. + + Date when the contact was blocked or unsubscribed on # noqa: E501 + + :param blocked_at: The blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 + :type: date + """ + if blocked_at is None: + raise ValueError("Invalid value for `blocked_at`, must not be `None`") # noqa: E501 + + self._blocked_at = blocked_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetTransacBlockedContactsContacts, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetTransacBlockedContactsContacts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_transac_blocked_contacts_reason.py b/sib_api_v3_sdk/models/get_transac_blocked_contacts_reason.py new file mode 100644 index 0000000..70d597f --- /dev/null +++ b/sib_api_v3_sdk/models/get_transac_blocked_contacts_reason.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetTransacBlockedContactsReason(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'message': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message' + } + + def __init__(self, code=None, message=None): # noqa: E501 + """GetTransacBlockedContactsReason - a model defined in Swagger""" # noqa: E501 + + self._code = None + self._message = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + + @property + def code(self): + """Gets the code of this GetTransacBlockedContactsReason. # noqa: E501 + + Reason code for blocking / unsubscribing (This code is safe for comparison) # noqa: E501 + + :return: The code of this GetTransacBlockedContactsReason. # noqa: E501 + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this GetTransacBlockedContactsReason. + + Reason code for blocking / unsubscribing (This code is safe for comparison) # noqa: E501 + + :param code: The code of this GetTransacBlockedContactsReason. # noqa: E501 + :type: str + """ + allowed_values = ["unsubscribedViaMA", "unsubscribedViaEmail", "adminBlocked", "unsubscribedViaApi", "hardBounce", "contactFlaggedAsSpam"] # noqa: E501 + if code not in allowed_values: + raise ValueError( + "Invalid value for `code` ({0}), must be one of {1}" # noqa: E501 + .format(code, allowed_values) + ) + + self._code = code + + @property + def message(self): + """Gets the message of this GetTransacBlockedContactsReason. # noqa: E501 + + Reason for blocking / unsubscribing (This string is not safe for comparison) # noqa: E501 + + :return: The message of this GetTransacBlockedContactsReason. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this GetTransacBlockedContactsReason. + + Reason for blocking / unsubscribing (This string is not safe for comparison) # noqa: E501 + + :param message: The message of this GetTransacBlockedContactsReason. # noqa: E501 + :type: str + """ + + self._message = message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetTransacBlockedContactsReason, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetTransacBlockedContactsReason): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_transac_email_content.py b/sib_api_v3_sdk/models/get_transac_email_content.py index dcc7ecb..ff32348 100644 --- a/sib_api_v3_sdk/models/get_transac_email_content.py +++ b/sib_api_v3_sdk/models/get_transac_email_content.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_transac_email_content_events import GetTransacEmailContentEvents # noqa: F401,E501 - class GetTransacEmailContent(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -36,7 +34,7 @@ class GetTransacEmailContent(object): 'email': 'str', 'subject': 'str', 'template_id': 'int', - 'date': 'datetime', + '_date': 'datetime', 'events': 'list[GetTransacEmailContentEvents]', 'body': 'str', 'attachment_count': 'int' @@ -46,19 +44,19 @@ class GetTransacEmailContent(object): 'email': 'email', 'subject': 'subject', 'template_id': 'templateId', - 'date': 'date', + '_date': 'date', 'events': 'events', 'body': 'body', 'attachment_count': 'attachmentCount' } - def __init__(self, email=None, subject=None, template_id=None, date=None, events=None, body=None, attachment_count=None): # noqa: E501 + def __init__(self, email=None, subject=None, template_id=None, _date=None, events=None, body=None, attachment_count=None): # noqa: E501 """GetTransacEmailContent - a model defined in Swagger""" # noqa: E501 self._email = None self._subject = None self._template_id = None - self._date = None + self.__date = None self._events = None self._body = None self._attachment_count = None @@ -68,7 +66,7 @@ def __init__(self, email=None, subject=None, template_id=None, date=None, events self.subject = subject if template_id is not None: self.template_id = template_id - self.date = date + self._date = _date self.events = events self.body = body self.attachment_count = attachment_count @@ -147,29 +145,29 @@ def template_id(self, template_id): self._template_id = template_id @property - def date(self): - """Gets the date of this GetTransacEmailContent. # noqa: E501 + def _date(self): + """Gets the _date of this GetTransacEmailContent. # noqa: E501 Date on which transactional email was sent # noqa: E501 - :return: The date of this GetTransacEmailContent. # noqa: E501 + :return: The _date of this GetTransacEmailContent. # noqa: E501 :rtype: datetime """ - return self._date + return self.__date - @date.setter - def date(self, date): - """Sets the date of this GetTransacEmailContent. + @_date.setter + def _date(self, _date): + """Sets the _date of this GetTransacEmailContent. Date on which transactional email was sent # noqa: E501 - :param date: The date of this GetTransacEmailContent. # noqa: E501 + :param _date: The _date of this GetTransacEmailContent. # noqa: E501 :type: datetime """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - self._date = date + self.__date = _date @property def events(self): @@ -267,6 +265,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacEmailContent, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_email_content_events.py b/sib_api_v3_sdk/models/get_transac_email_content_events.py index ec1813a..27ebcbd 100644 --- a/sib_api_v3_sdk/models/get_transac_email_content_events.py +++ b/sib_api_v3_sdk/models/get_transac_email_content_events.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacEmailContentEvents, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_emails_list.py b/sib_api_v3_sdk/models/get_transac_emails_list.py index 55fff97..f5e5ad9 100644 --- a/sib_api_v3_sdk/models/get_transac_emails_list.py +++ b/sib_api_v3_sdk/models/get_transac_emails_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_transac_emails_list_transactional_emails import GetTransacEmailsListTransactionalEmails # noqa: F401,E501 - class GetTransacEmailsList(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -91,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacEmailsList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py b/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py index e2c13a5..dbf4519 100644 --- a/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py +++ b/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -36,7 +36,7 @@ class GetTransacEmailsListTransactionalEmails(object): 'template_id': 'int', 'message_id': 'str', 'uuid': 'str', - 'date': 'datetime' + '_date': 'datetime' } attribute_map = { @@ -45,10 +45,10 @@ class GetTransacEmailsListTransactionalEmails(object): 'template_id': 'templateId', 'message_id': 'messageId', 'uuid': 'uuid', - 'date': 'date' + '_date': 'date' } - def __init__(self, email=None, subject=None, template_id=None, message_id=None, uuid=None, date=None): # noqa: E501 + def __init__(self, email=None, subject=None, template_id=None, message_id=None, uuid=None, _date=None): # noqa: E501 """GetTransacEmailsListTransactionalEmails - a model defined in Swagger""" # noqa: E501 self._email = None @@ -56,7 +56,7 @@ def __init__(self, email=None, subject=None, template_id=None, message_id=None, self._template_id = None self._message_id = None self._uuid = None - self._date = None + self.__date = None self.discriminator = None self.email = email @@ -65,7 +65,7 @@ def __init__(self, email=None, subject=None, template_id=None, message_id=None, self.template_id = template_id self.message_id = message_id self.uuid = uuid - self.date = date + self._date = _date @property def email(self): @@ -191,29 +191,29 @@ def uuid(self, uuid): self._uuid = uuid @property - def date(self): - """Gets the date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 + def _date(self): + """Gets the _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 Date on which transactional email was sent # noqa: E501 - :return: The date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 + :return: The _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :rtype: datetime """ - return self._date + return self.__date - @date.setter - def date(self, date): - """Sets the date of this GetTransacEmailsListTransactionalEmails. + @_date.setter + def _date(self, _date): + """Sets the _date of this GetTransacEmailsListTransactionalEmails. Date on which transactional email was sent # noqa: E501 - :param date: The date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 + :param _date: The _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 :type: datetime """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - self._date = date + self.__date = _date def to_dict(self): """Returns the model properties as a dict""" @@ -236,6 +236,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacEmailsListTransactionalEmails, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_sms_report.py b/sib_api_v3_sdk/models/get_transac_sms_report.py index 392446d..538f85e 100644 --- a/sib_api_v3_sdk/models/get_transac_sms_report.py +++ b/sib_api_v3_sdk/models/get_transac_sms_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.get_transac_sms_report_reports import GetTransacSmsReportReports # noqa: F401,E501 - class GetTransacSmsReport(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -91,6 +89,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacSmsReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_transac_sms_report_reports.py b/sib_api_v3_sdk/models/get_transac_sms_report_reports.py index 1680b35..4c8518f 100644 --- a/sib_api_v3_sdk/models/get_transac_sms_report_reports.py +++ b/sib_api_v3_sdk/models/get_transac_sms_report_reports.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -31,7 +31,7 @@ class GetTransacSmsReportReports(object): and the value is json key in definition. """ swagger_types = { - 'date': 'date', + '_date': 'date', 'requests': 'int', 'delivered': 'int', 'hard_bounces': 'int', @@ -44,7 +44,7 @@ class GetTransacSmsReportReports(object): } attribute_map = { - 'date': 'date', + '_date': 'date', 'requests': 'requests', 'delivered': 'delivered', 'hard_bounces': 'hardBounces', @@ -56,10 +56,10 @@ class GetTransacSmsReportReports(object): 'rejected': 'rejected' } - def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 + def __init__(self, _date=None, requests=None, delivered=None, hard_bounces=None, soft_bounces=None, blocked=None, unsubscribed=None, replied=None, accepted=None, rejected=None): # noqa: E501 """GetTransacSmsReportReports - a model defined in Swagger""" # noqa: E501 - self._date = None + self.__date = None self._requests = None self._delivered = None self._hard_bounces = None @@ -71,7 +71,7 @@ def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, self._rejected = None self.discriminator = None - self.date = date + self._date = _date self.requests = requests self.delivered = delivered self.hard_bounces = hard_bounces @@ -83,29 +83,29 @@ def __init__(self, date=None, requests=None, delivered=None, hard_bounces=None, self.rejected = rejected @property - def date(self): - """Gets the date of this GetTransacSmsReportReports. # noqa: E501 + def _date(self): + """Gets the _date of this GetTransacSmsReportReports. # noqa: E501 Date for which statistics are retrieved # noqa: E501 - :return: The date of this GetTransacSmsReportReports. # noqa: E501 + :return: The _date of this GetTransacSmsReportReports. # noqa: E501 :rtype: date """ - return self._date + return self.__date - @date.setter - def date(self, date): - """Sets the date of this GetTransacSmsReportReports. + @_date.setter + def _date(self, _date): + """Sets the _date of this GetTransacSmsReportReports. Date for which statistics are retrieved # noqa: E501 - :param date: The date of this GetTransacSmsReportReports. # noqa: E501 + :param _date: The _date of this GetTransacSmsReportReports. # noqa: E501 :type: date """ - if date is None: - raise ValueError("Invalid value for `date`, must not be `None`") # noqa: E501 + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - self._date = date + self.__date = _date @property def requests(self): @@ -353,6 +353,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetTransacSmsReportReports, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_webhook.py b/sib_api_v3_sdk/models/get_webhook.py index 3512b11..7ce2bbd 100644 --- a/sib_api_v3_sdk/models/get_webhook.py +++ b/sib_api_v3_sdk/models/get_webhook.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -270,6 +270,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetWebhook, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/get_webhooks.py b/sib_api_v3_sdk/models/get_webhooks.py index 4c9278d..9438248 100644 --- a/sib_api_v3_sdk/models/get_webhooks.py +++ b/sib_api_v3_sdk/models/get_webhooks.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -90,6 +90,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(GetWebhooks, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/manage_ip.py b/sib_api_v3_sdk/models/manage_ip.py index beb3d9d..bdedc25 100644 --- a/sib_api_v3_sdk/models/manage_ip.py +++ b/sib_api_v3_sdk/models/manage_ip.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ManageIp, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/post_contact_info.py b/sib_api_v3_sdk/models/post_contact_info.py index 39f69c0..3827ada 100644 --- a/sib_api_v3_sdk/models/post_contact_info.py +++ b/sib_api_v3_sdk/models/post_contact_info.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.post_contact_info_contacts import PostContactInfoContacts # noqa: F401,E501 - class PostContactInfo(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -92,6 +90,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PostContactInfo, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/post_contact_info_contacts.py b/sib_api_v3_sdk/models/post_contact_info_contacts.py index 6e65edd..1549b4a 100644 --- a/sib_api_v3_sdk/models/post_contact_info_contacts.py +++ b/sib_api_v3_sdk/models/post_contact_info_contacts.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -143,6 +143,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PostContactInfoContacts, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/post_send_failed.py b/sib_api_v3_sdk/models/post_send_failed.py index 016ecb4..29eca8a 100644 --- a/sib_api_v3_sdk/models/post_send_failed.py +++ b/sib_api_v3_sdk/models/post_send_failed.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -199,6 +199,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PostSendFailed, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/post_send_sms_test_failed.py b/sib_api_v3_sdk/models/post_send_sms_test_failed.py index 0c31601..ef3fb17 100644 --- a/sib_api_v3_sdk/models/post_send_sms_test_failed.py +++ b/sib_api_v3_sdk/models/post_send_sms_test_failed.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -173,6 +173,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PostSendSmsTestFailed, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remaining_credit_model.py b/sib_api_v3_sdk/models/remaining_credit_model.py index 4adeee8..7dfebb0 100644 --- a/sib_api_v3_sdk/models/remaining_credit_model.py +++ b/sib_api_v3_sdk/models/remaining_credit_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.remaining_credit_model_child import RemainingCreditModelChild # noqa: F401,E501 -from sib_api_v3_sdk.models.remaining_credit_model_reseller import RemainingCreditModelReseller # noqa: F401,E501 - class RemainingCreditModel(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -120,6 +117,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemainingCreditModel, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remaining_credit_model_child.py b/sib_api_v3_sdk/models/remaining_credit_model_child.py index d7dfbfe..5a72c34 100644 --- a/sib_api_v3_sdk/models/remaining_credit_model_child.py +++ b/sib_api_v3_sdk/models/remaining_credit_model_child.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemainingCreditModelChild, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remaining_credit_model_reseller.py b/sib_api_v3_sdk/models/remaining_credit_model_reseller.py index bc23df7..1380603 100644 --- a/sib_api_v3_sdk/models/remaining_credit_model_reseller.py +++ b/sib_api_v3_sdk/models/remaining_credit_model_reseller.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemainingCreditModelReseller, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remove_contact_from_list.py b/sib_api_v3_sdk/models/remove_contact_from_list.py index 8d8fd7a..f2e7ba8 100644 --- a/sib_api_v3_sdk/models/remove_contact_from_list.py +++ b/sib_api_v3_sdk/models/remove_contact_from_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemoveContactFromList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/remove_credits.py b/sib_api_v3_sdk/models/remove_credits.py index 6266065..d396a07 100644 --- a/sib_api_v3_sdk/models/remove_credits.py +++ b/sib_api_v3_sdk/models/remove_credits.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RemoveCredits, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/request_contact_export.py b/sib_api_v3_sdk/models/request_contact_export.py index a8d77f4..a903368 100644 --- a/sib_api_v3_sdk/models/request_contact_export.py +++ b/sib_api_v3_sdk/models/request_contact_export.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -33,26 +33,32 @@ class RequestContactExport(object): swagger_types = { 'export_attributes': 'list[str]', 'contact_filter': 'object', + 'custom_contact_filter': 'RequestContactExportCustomContactFilter', 'notify_url': 'str' } attribute_map = { 'export_attributes': 'exportAttributes', 'contact_filter': 'contactFilter', + 'custom_contact_filter': 'customContactFilter', 'notify_url': 'notifyUrl' } - def __init__(self, export_attributes=None, contact_filter=None, notify_url=None): # noqa: E501 + def __init__(self, export_attributes=None, contact_filter=None, custom_contact_filter=None, notify_url=None): # noqa: E501 """RequestContactExport - a model defined in Swagger""" # noqa: E501 self._export_attributes = None self._contact_filter = None + self._custom_contact_filter = None self._notify_url = None self.discriminator = None if export_attributes is not None: self.export_attributes = export_attributes - self.contact_filter = contact_filter + if contact_filter is not None: + self.contact_filter = contact_filter + if custom_contact_filter is not None: + self.custom_contact_filter = custom_contact_filter if notify_url is not None: self.notify_url = notify_url @@ -83,7 +89,7 @@ def export_attributes(self, export_attributes): def contact_filter(self): """Gets the contact_filter of this RequestContactExport. # noqa: E501 - Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. # noqa: E501 + This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. # noqa: E501 :return: The contact_filter of this RequestContactExport. # noqa: E501 :rtype: object @@ -94,16 +100,35 @@ def contact_filter(self): def contact_filter(self, contact_filter): """Sets the contact_filter of this RequestContactExport. - Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. # noqa: E501 + This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. # noqa: E501 :param contact_filter: The contact_filter of this RequestContactExport. # noqa: E501 :type: object """ - if contact_filter is None: - raise ValueError("Invalid value for `contact_filter`, must not be `None`") # noqa: E501 self._contact_filter = contact_filter + @property + def custom_contact_filter(self): + """Gets the custom_contact_filter of this RequestContactExport. # noqa: E501 + + + :return: The custom_contact_filter of this RequestContactExport. # noqa: E501 + :rtype: RequestContactExportCustomContactFilter + """ + return self._custom_contact_filter + + @custom_contact_filter.setter + def custom_contact_filter(self, custom_contact_filter): + """Sets the custom_contact_filter of this RequestContactExport. + + + :param custom_contact_filter: The custom_contact_filter of this RequestContactExport. # noqa: E501 + :type: RequestContactExportCustomContactFilter + """ + + self._custom_contact_filter = custom_contact_filter + @property def notify_url(self): """Gets the notify_url of this RequestContactExport. # noqa: E501 @@ -148,6 +173,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RequestContactExport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/request_contact_export_custom_contact_filter.py b/sib_api_v3_sdk/models/request_contact_export_custom_contact_filter.py new file mode 100644 index 0000000..b107413 --- /dev/null +++ b/sib_api_v3_sdk/models/request_contact_export_custom_contact_filter.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RequestContactExportCustomContactFilter(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'action_for_contacts': 'str', + 'action_for_email_campaigns': 'str', + 'action_for_sms_campaigns': 'str', + 'list_id': 'int', + 'email_campaign_id': 'int', + 'sms_campaign_id': 'int' + } + + attribute_map = { + 'action_for_contacts': 'actionForContacts', + 'action_for_email_campaigns': 'actionForEmailCampaigns', + 'action_for_sms_campaigns': 'actionForSmsCampaigns', + 'list_id': 'listId', + 'email_campaign_id': 'emailCampaignId', + 'sms_campaign_id': 'smsCampaignId' + } + + def __init__(self, action_for_contacts=None, action_for_email_campaigns=None, action_for_sms_campaigns=None, list_id=None, email_campaign_id=None, sms_campaign_id=None): # noqa: E501 + """RequestContactExportCustomContactFilter - a model defined in Swagger""" # noqa: E501 + + self._action_for_contacts = None + self._action_for_email_campaigns = None + self._action_for_sms_campaigns = None + self._list_id = None + self._email_campaign_id = None + self._sms_campaign_id = None + self.discriminator = None + + if action_for_contacts is not None: + self.action_for_contacts = action_for_contacts + if action_for_email_campaigns is not None: + self.action_for_email_campaigns = action_for_email_campaigns + if action_for_sms_campaigns is not None: + self.action_for_sms_campaigns = action_for_sms_campaigns + if list_id is not None: + self.list_id = list_id + if email_campaign_id is not None: + self.email_campaign_id = email_campaign_id + if sms_campaign_id is not None: + self.sms_campaign_id = sms_campaign_id + + @property + def action_for_contacts(self): + """Gets the action_for_contacts of this RequestContactExportCustomContactFilter. # noqa: E501 + + Mandatory if neither actionForEmailCampaigns nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on contacts as per the list id. * allContacts - Fetch the list of all contacts for a particular list. * subscribed & unsubscribed - Fetch the list of subscribed / unsubscribed (blacklisted via any means) contacts for a particular list. * unsubscribedPerList - Fetch the list of contacts that are unsubscribed from a particular list only. # noqa: E501 + + :return: The action_for_contacts of this RequestContactExportCustomContactFilter. # noqa: E501 + :rtype: str + """ + return self._action_for_contacts + + @action_for_contacts.setter + def action_for_contacts(self, action_for_contacts): + """Sets the action_for_contacts of this RequestContactExportCustomContactFilter. + + Mandatory if neither actionForEmailCampaigns nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on contacts as per the list id. * allContacts - Fetch the list of all contacts for a particular list. * subscribed & unsubscribed - Fetch the list of subscribed / unsubscribed (blacklisted via any means) contacts for a particular list. * unsubscribedPerList - Fetch the list of contacts that are unsubscribed from a particular list only. # noqa: E501 + + :param action_for_contacts: The action_for_contacts of this RequestContactExportCustomContactFilter. # noqa: E501 + :type: str + """ + allowed_values = ["allContacts", "subscribed", "unsubscribed", "unsubscribedPerList"] # noqa: E501 + if action_for_contacts not in allowed_values: + raise ValueError( + "Invalid value for `action_for_contacts` ({0}), must be one of {1}" # noqa: E501 + .format(action_for_contacts, allowed_values) + ) + + self._action_for_contacts = action_for_contacts + + @property + def action_for_email_campaigns(self): + """Gets the action_for_email_campaigns of this RequestContactExportCustomContactFilter. # noqa: E501 + + Mandatory if neither actionForContacts nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on email campaigns. * openers & nonOpeners - emailCampaignId is mandatory. Fetch the list of readers / non-readers for a particular email campaign. * clickers & nonClickers - emailCampaignId is mandatory. Fetch the list of clickers / non-clickers for a particular email campaign. * unsubscribed - emailCampaignId is mandatory. Fetch the list of all unsubscribed (blacklisted via any means) contacts for a particular email campaign. * hardBounces & softBounces - emailCampaignId is optional. Fetch the list of hard bounces / soft bounces for a particular / all email campaign(s). # noqa: E501 + + :return: The action_for_email_campaigns of this RequestContactExportCustomContactFilter. # noqa: E501 + :rtype: str + """ + return self._action_for_email_campaigns + + @action_for_email_campaigns.setter + def action_for_email_campaigns(self, action_for_email_campaigns): + """Sets the action_for_email_campaigns of this RequestContactExportCustomContactFilter. + + Mandatory if neither actionForContacts nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on email campaigns. * openers & nonOpeners - emailCampaignId is mandatory. Fetch the list of readers / non-readers for a particular email campaign. * clickers & nonClickers - emailCampaignId is mandatory. Fetch the list of clickers / non-clickers for a particular email campaign. * unsubscribed - emailCampaignId is mandatory. Fetch the list of all unsubscribed (blacklisted via any means) contacts for a particular email campaign. * hardBounces & softBounces - emailCampaignId is optional. Fetch the list of hard bounces / soft bounces for a particular / all email campaign(s). # noqa: E501 + + :param action_for_email_campaigns: The action_for_email_campaigns of this RequestContactExportCustomContactFilter. # noqa: E501 + :type: str + """ + allowed_values = ["openers", "nonOpeners", "clickers", "nonClickers", "unsubscribed", "hardBounces", "softBounces"] # noqa: E501 + if action_for_email_campaigns not in allowed_values: + raise ValueError( + "Invalid value for `action_for_email_campaigns` ({0}), must be one of {1}" # noqa: E501 + .format(action_for_email_campaigns, allowed_values) + ) + + self._action_for_email_campaigns = action_for_email_campaigns + + @property + def action_for_sms_campaigns(self): + """Gets the action_for_sms_campaigns of this RequestContactExportCustomContactFilter. # noqa: E501 + + Mandatory if neither actionForContacts nor actionForEmailCampaigns is passed. This will export the contacts on the basis of provided action applied on sms campaigns. * unsubscribed - Fetch the list of all unsubscribed (blacklisted via any means) contacts for all / particular sms campaigns. * hardBounces & softBounces - Fetch the list of hard bounces / soft bounces for all / particular sms campaigns. # noqa: E501 + + :return: The action_for_sms_campaigns of this RequestContactExportCustomContactFilter. # noqa: E501 + :rtype: str + """ + return self._action_for_sms_campaigns + + @action_for_sms_campaigns.setter + def action_for_sms_campaigns(self, action_for_sms_campaigns): + """Sets the action_for_sms_campaigns of this RequestContactExportCustomContactFilter. + + Mandatory if neither actionForContacts nor actionForEmailCampaigns is passed. This will export the contacts on the basis of provided action applied on sms campaigns. * unsubscribed - Fetch the list of all unsubscribed (blacklisted via any means) contacts for all / particular sms campaigns. * hardBounces & softBounces - Fetch the list of hard bounces / soft bounces for all / particular sms campaigns. # noqa: E501 + + :param action_for_sms_campaigns: The action_for_sms_campaigns of this RequestContactExportCustomContactFilter. # noqa: E501 + :type: str + """ + allowed_values = ["hardBounces", "softBounces", "unsubscribed"] # noqa: E501 + if action_for_sms_campaigns not in allowed_values: + raise ValueError( + "Invalid value for `action_for_sms_campaigns` ({0}), must be one of {1}" # noqa: E501 + .format(action_for_sms_campaigns, allowed_values) + ) + + self._action_for_sms_campaigns = action_for_sms_campaigns + + @property + def list_id(self): + """Gets the list_id of this RequestContactExportCustomContactFilter. # noqa: E501 + + Mandatory if actionForContacts is passed, ignored otherwise. Id of the list for which the corresponding action shall be applied in the filter. # noqa: E501 + + :return: The list_id of this RequestContactExportCustomContactFilter. # noqa: E501 + :rtype: int + """ + return self._list_id + + @list_id.setter + def list_id(self, list_id): + """Sets the list_id of this RequestContactExportCustomContactFilter. + + Mandatory if actionForContacts is passed, ignored otherwise. Id of the list for which the corresponding action shall be applied in the filter. # noqa: E501 + + :param list_id: The list_id of this RequestContactExportCustomContactFilter. # noqa: E501 + :type: int + """ + + self._list_id = list_id + + @property + def email_campaign_id(self): + """Gets the email_campaign_id of this RequestContactExportCustomContactFilter. # noqa: E501 + + Considered only if actionForEmailCampaigns is passed, ignored otherwise. Mandatory if action is one of the following - openers, nonOpeners, clickers, nonClickers, unsubscribed. The id of the email campaign for which the corresponding action shall be applied in the filter. # noqa: E501 + + :return: The email_campaign_id of this RequestContactExportCustomContactFilter. # noqa: E501 + :rtype: int + """ + return self._email_campaign_id + + @email_campaign_id.setter + def email_campaign_id(self, email_campaign_id): + """Sets the email_campaign_id of this RequestContactExportCustomContactFilter. + + Considered only if actionForEmailCampaigns is passed, ignored otherwise. Mandatory if action is one of the following - openers, nonOpeners, clickers, nonClickers, unsubscribed. The id of the email campaign for which the corresponding action shall be applied in the filter. # noqa: E501 + + :param email_campaign_id: The email_campaign_id of this RequestContactExportCustomContactFilter. # noqa: E501 + :type: int + """ + + self._email_campaign_id = email_campaign_id + + @property + def sms_campaign_id(self): + """Gets the sms_campaign_id of this RequestContactExportCustomContactFilter. # noqa: E501 + + Considered only if actionForSmsCampaigns is passed, ignored otherwise. The id of sms campaign for which the corresponding action shall be applied in the filter. # noqa: E501 + + :return: The sms_campaign_id of this RequestContactExportCustomContactFilter. # noqa: E501 + :rtype: int + """ + return self._sms_campaign_id + + @sms_campaign_id.setter + def sms_campaign_id(self, sms_campaign_id): + """Sets the sms_campaign_id of this RequestContactExportCustomContactFilter. + + Considered only if actionForSmsCampaigns is passed, ignored otherwise. The id of sms campaign for which the corresponding action shall be applied in the filter. # noqa: E501 + + :param sms_campaign_id: The sms_campaign_id of this RequestContactExportCustomContactFilter. # noqa: E501 + :type: int + """ + + self._sms_campaign_id = sms_campaign_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RequestContactExportCustomContactFilter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RequestContactExportCustomContactFilter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/request_contact_import.py b/sib_api_v3_sdk/models/request_contact_import.py index e5ef253..b6dab7f 100644 --- a/sib_api_v3_sdk/models/request_contact_import.py +++ b/sib_api_v3_sdk/models/request_contact_import.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.request_contact_import_new_list import RequestContactImportNewList # noqa: F401,E501 - class RequestContactImport(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -315,6 +313,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RequestContactImport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/request_contact_import_new_list.py b/sib_api_v3_sdk/models/request_contact_import_new_list.py index 8ef20e1..499c4af 100644 --- a/sib_api_v3_sdk/models/request_contact_import_new_list.py +++ b/sib_api_v3_sdk/models/request_contact_import_new_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RequestContactImportNewList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/request_sms_recipient_export.py b/sib_api_v3_sdk/models/request_sms_recipient_export.py index 4c52810..9d95571 100644 --- a/sib_api_v3_sdk/models/request_sms_recipient_export.py +++ b/sib_api_v3_sdk/models/request_sms_recipient_export.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -126,6 +126,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RequestSmsRecipientExport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_email.py b/sib_api_v3_sdk/models/send_email.py index 5f21467..cc1591b 100644 --- a/sib_api_v3_sdk/models/send_email.py +++ b/sib_api_v3_sdk/models/send_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.send_email_attachment import SendEmailAttachment # noqa: F401,E501 - class SendEmail(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -318,6 +316,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_email_attachment.py b/sib_api_v3_sdk/models/send_email_attachment.py index e16e2c1..8cb3859 100644 --- a/sib_api_v3_sdk/models/send_email_attachment.py +++ b/sib_api_v3_sdk/models/send_email_attachment.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -72,8 +72,8 @@ def content(self, content): """ if content is None: raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501 - if content is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', content): # noqa: E501 - raise ValueError("Invalid value for `content`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + if content is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', content): # noqa: E501 + raise ValueError(r"Invalid value for `content`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._content = content @@ -123,6 +123,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendEmailAttachment, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_report.py b/sib_api_v3_sdk/models/send_report.py index d3722cc..4e2f89a 100644 --- a/sib_api_v3_sdk/models/send_report.py +++ b/sib_api_v3_sdk/models/send_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.send_report_email import SendReportEmail # noqa: F401,E501 - class SendReport(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -126,6 +124,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendReport, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_report_email.py b/sib_api_v3_sdk/models/send_report_email.py index e618ff3..8c4ffc2 100644 --- a/sib_api_v3_sdk/models/send_report_email.py +++ b/sib_api_v3_sdk/models/send_report_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -240,6 +240,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendReportEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_sms.py b/sib_api_v3_sdk/models/send_sms.py index 5b282ce..55f7e9b 100644 --- a/sib_api_v3_sdk/models/send_sms.py +++ b/sib_api_v3_sdk/models/send_sms.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -201,6 +201,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSms, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email.py b/sib_api_v3_sdk/models/send_smtp_email.py index fdb3b8f..3c5263e 100644 --- a/sib_api_v3_sdk/models/send_smtp_email.py +++ b/sib_api_v3_sdk/models/send_smtp_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,13 +16,6 @@ import six -from sib_api_v3_sdk.models.send_smtp_email_attachment import SendSmtpEmailAttachment # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_bcc import SendSmtpEmailBcc # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_cc import SendSmtpEmailCc # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_reply_to import SendSmtpEmailReplyTo # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_sender import SendSmtpEmailSender # noqa: F401,E501 -from sib_api_v3_sdk.models.send_smtp_email_to import SendSmtpEmailTo # noqa: F401,E501 - class SendSmtpEmail(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -299,7 +292,7 @@ def reply_to(self, reply_to): def attachment(self): """Gets the attachment of this SendSmtpEmail. # noqa: E501 - Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 + Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 :return: The attachment of this SendSmtpEmail. # noqa: E501 :rtype: list[SendSmtpEmailAttachment] @@ -310,7 +303,7 @@ def attachment(self): def attachment(self, attachment): """Sets the attachment of this SendSmtpEmail. - Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 + Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 :param attachment: The attachment of this SendSmtpEmail. # noqa: E501 :type: list[SendSmtpEmailAttachment] @@ -431,6 +424,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email_attachment.py b/sib_api_v3_sdk/models/send_smtp_email_attachment.py index 3a3dfee..96581c4 100644 --- a/sib_api_v3_sdk/models/send_smtp_email_attachment.py +++ b/sib_api_v3_sdk/models/send_smtp_email_attachment.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -100,8 +100,8 @@ def content(self, content): :param content: The content of this SendSmtpEmailAttachment. # noqa: E501 :type: str """ - if content is not None and not re.search('^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', content): # noqa: E501 - raise ValueError("Invalid value for `content`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + if content is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', content): # noqa: E501 + raise ValueError(r"Invalid value for `content`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._content = content @@ -149,6 +149,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmailAttachment, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email_bcc.py b/sib_api_v3_sdk/models/send_smtp_email_bcc.py index b90a603..3ebf4d3 100644 --- a/sib_api_v3_sdk/models/send_smtp_email_bcc.py +++ b/sib_api_v3_sdk/models/send_smtp_email_bcc.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -80,7 +80,7 @@ def email(self, email): def name(self): """Gets the name of this SendSmtpEmailBcc. # noqa: E501 - Name of the recipient in bcc # noqa: E501 + Name of the recipient in bcc. Maximum allowed characters are 70. # noqa: E501 :return: The name of this SendSmtpEmailBcc. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def name(self): def name(self, name): """Sets the name of this SendSmtpEmailBcc. - Name of the recipient in bcc # noqa: E501 + Name of the recipient in bcc. Maximum allowed characters are 70. # noqa: E501 :param name: The name of this SendSmtpEmailBcc. # noqa: E501 :type: str @@ -120,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmailBcc, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email_cc.py b/sib_api_v3_sdk/models/send_smtp_email_cc.py index f6d1916..f68f788 100644 --- a/sib_api_v3_sdk/models/send_smtp_email_cc.py +++ b/sib_api_v3_sdk/models/send_smtp_email_cc.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -80,7 +80,7 @@ def email(self, email): def name(self): """Gets the name of this SendSmtpEmailCc. # noqa: E501 - Name of the recipient in cc # noqa: E501 + Name of the recipient in cc. Maximum allowed characters are 70. # noqa: E501 :return: The name of this SendSmtpEmailCc. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def name(self): def name(self, name): """Sets the name of this SendSmtpEmailCc. - Name of the recipient in cc # noqa: E501 + Name of the recipient in cc. Maximum allowed characters are 70. # noqa: E501 :param name: The name of this SendSmtpEmailCc. # noqa: E501 :type: str @@ -120,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmailCc, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email_reply_to.py b/sib_api_v3_sdk/models/send_smtp_email_reply_to.py index 2420b89..330a884 100644 --- a/sib_api_v3_sdk/models/send_smtp_email_reply_to.py +++ b/sib_api_v3_sdk/models/send_smtp_email_reply_to.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -80,7 +80,7 @@ def email(self, email): def name(self): """Gets the name of this SendSmtpEmailReplyTo. # noqa: E501 - Name in reply to # noqa: E501 + Name in reply to. Maximum allowed characters are 70. # noqa: E501 :return: The name of this SendSmtpEmailReplyTo. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def name(self): def name(self, name): """Sets the name of this SendSmtpEmailReplyTo. - Name in reply to # noqa: E501 + Name in reply to. Maximum allowed characters are 70. # noqa: E501 :param name: The name of this SendSmtpEmailReplyTo. # noqa: E501 :type: str @@ -120,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmailReplyTo, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email_sender.py b/sib_api_v3_sdk/models/send_smtp_email_sender.py index dd77cde..fa3c3f0 100644 --- a/sib_api_v3_sdk/models/send_smtp_email_sender.py +++ b/sib_api_v3_sdk/models/send_smtp_email_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -55,7 +55,7 @@ def __init__(self, name=None, email=None): # noqa: E501 def name(self): """Gets the name of this SendSmtpEmailSender. # noqa: E501 - Name of the sender from which the emails will be sent # noqa: E501 + Name of the sender from which the emails will be sent. Maximum allowed characters are 70. # noqa: E501 :return: The name of this SendSmtpEmailSender. # noqa: E501 :rtype: str @@ -66,7 +66,7 @@ def name(self): def name(self, name): """Sets the name of this SendSmtpEmailSender. - Name of the sender from which the emails will be sent # noqa: E501 + Name of the sender from which the emails will be sent. Maximum allowed characters are 70. # noqa: E501 :param name: The name of this SendSmtpEmailSender. # noqa: E501 :type: str @@ -120,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmailSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_smtp_email_to.py b/sib_api_v3_sdk/models/send_smtp_email_to.py index c4acda2..3d1a194 100644 --- a/sib_api_v3_sdk/models/send_smtp_email_to.py +++ b/sib_api_v3_sdk/models/send_smtp_email_to.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -80,7 +80,7 @@ def email(self, email): def name(self): """Gets the name of this SendSmtpEmailTo. # noqa: E501 - Name of the recipient # noqa: E501 + Name of the recipient. Maximum allowed characters are 70. # noqa: E501 :return: The name of this SendSmtpEmailTo. # noqa: E501 :rtype: str @@ -91,7 +91,7 @@ def name(self): def name(self, name): """Sets the name of this SendSmtpEmailTo. - Name of the recipient # noqa: E501 + Name of the recipient. Maximum allowed characters are 70. # noqa: E501 :param name: The name of this SendSmtpEmailTo. # noqa: E501 :type: str @@ -120,6 +120,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendSmtpEmailTo, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_template_email.py b/sib_api_v3_sdk/models/send_template_email.py index c93e5eb..5591c82 100644 --- a/sib_api_v3_sdk/models/send_template_email.py +++ b/sib_api_v3_sdk/models/send_template_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -92,6 +92,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTemplateEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_test_email.py b/sib_api_v3_sdk/models/send_test_email.py index b43c0b7..fee6f02 100644 --- a/sib_api_v3_sdk/models/send_test_email.py +++ b/sib_api_v3_sdk/models/send_test_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTestEmail, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_test_sms.py b/sib_api_v3_sdk/models/send_test_sms.py index d32f8fd..263b112 100644 --- a/sib_api_v3_sdk/models/send_test_sms.py +++ b/sib_api_v3_sdk/models/send_test_sms.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTestSms, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/send_transac_sms.py b/sib_api_v3_sdk/models/send_transac_sms.py index 5eada97..8396761 100644 --- a/sib_api_v3_sdk/models/send_transac_sms.py +++ b/sib_api_v3_sdk/models/send_transac_sms.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -242,6 +242,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(SendTransacSms, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_attribute.py b/sib_api_v3_sdk/models/update_attribute.py index 6cfdff7..9b73db6 100644 --- a/sib_api_v3_sdk/models/update_attribute.py +++ b/sib_api_v3_sdk/models/update_attribute.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration # noqa: F401,E501 - class UpdateAttribute(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -121,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateAttribute, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_attribute_enumeration.py b/sib_api_v3_sdk/models/update_attribute_enumeration.py index 1bf6c81..2d631da 100644 --- a/sib_api_v3_sdk/models/update_attribute_enumeration.py +++ b/sib_api_v3_sdk/models/update_attribute_enumeration.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -121,6 +121,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateAttributeEnumeration, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_campaign_status.py b/sib_api_v3_sdk/models/update_campaign_status.py index 109bde2..91e62c0 100644 --- a/sib_api_v3_sdk/models/update_campaign_status.py +++ b/sib_api_v3_sdk/models/update_campaign_status.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -97,6 +97,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateCampaignStatus, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_child.py b/sib_api_v3_sdk/models/update_child.py index 6cbe3bb..fea9668 100644 --- a/sib_api_v3_sdk/models/update_child.py +++ b/sib_api_v3_sdk/models/update_child.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -203,6 +203,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateChild, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_child_account_status.py b/sib_api_v3_sdk/models/update_child_account_status.py index 829ca98..5e59bc6 100644 --- a/sib_api_v3_sdk/models/update_child_account_status.py +++ b/sib_api_v3_sdk/models/update_child_account_status.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -147,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateChildAccountStatus, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_child_domain.py b/sib_api_v3_sdk/models/update_child_domain.py index 4723946..088ba4f 100644 --- a/sib_api_v3_sdk/models/update_child_domain.py +++ b/sib_api_v3_sdk/models/update_child_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -91,6 +91,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateChildDomain, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_contact.py b/sib_api_v3_sdk/models/update_contact.py index 6c4e7e5..cbd9a98 100644 --- a/sib_api_v3_sdk/models/update_contact.py +++ b/sib_api_v3_sdk/models/update_contact.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -76,7 +76,7 @@ def __init__(self, attributes=None, email_blacklisted=None, sms_blacklisted=None def attributes(self): """Gets the attributes of this UpdateContact. # noqa: E501 - Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For eg. { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} # noqa: E501 + Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} # noqa: E501 :return: The attributes of this UpdateContact. # noqa: E501 :rtype: object @@ -87,7 +87,7 @@ def attributes(self): def attributes(self, attributes): """Sets the attributes of this UpdateContact. - Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For eg. { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} # noqa: E501 + Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} # noqa: E501 :param attributes: The attributes of this UpdateContact. # noqa: E501 :type: object @@ -231,6 +231,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateContact, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_email_campaign.py b/sib_api_v3_sdk/models/update_email_campaign.py index 4663ff6..a595ba9 100644 --- a/sib_api_v3_sdk/models/update_email_campaign.py +++ b/sib_api_v3_sdk/models/update_email_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,9 +16,6 @@ import six -from sib_api_v3_sdk.models.update_email_campaign_recipients import UpdateEmailCampaignRecipients # noqa: F401,E501 -from sib_api_v3_sdk.models.update_email_campaign_sender import UpdateEmailCampaignSender # noqa: F401,E501 - class UpdateEmailCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -58,7 +55,10 @@ class UpdateEmailCampaign(object): 'subject_b': 'str', 'split_rule': 'int', 'winner_criteria': 'str', - 'winner_delay': 'int' + 'winner_delay': 'int', + 'ip_warmup_enable': 'bool', + 'initial_quota': 'int', + 'increase_rate': 'int' } attribute_map = { @@ -86,10 +86,13 @@ class UpdateEmailCampaign(object): 'subject_b': 'subjectB', 'split_rule': 'splitRule', 'winner_criteria': 'winnerCriteria', - 'winner_delay': 'winnerDelay' + 'winner_delay': 'winnerDelay', + 'ip_warmup_enable': 'ipWarmupEnable', + 'initial_quota': 'initialQuota', + 'increase_rate': 'increaseRate' } - def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, recurring=False, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=None, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None): # noqa: E501 + def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, recurring=False, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=None, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, ip_warmup_enable=False, initial_quota=None, increase_rate=None): # noqa: E501 """UpdateEmailCampaign - a model defined in Swagger""" # noqa: E501 self._tag = None @@ -117,6 +120,9 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self._split_rule = None self._winner_criteria = None self._winner_delay = None + self._ip_warmup_enable = None + self._initial_quota = None + self._increase_rate = None self.discriminator = None if tag is not None: @@ -169,6 +175,12 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self.winner_criteria = winner_criteria if winner_delay is not None: self.winner_delay = winner_delay + if ip_warmup_enable is not None: + self.ip_warmup_enable = ip_warmup_enable + if initial_quota is not None: + self.initial_quota = initial_quota + if increase_rate is not None: + self.increase_rate = increase_rate @property def tag(self): @@ -755,6 +767,79 @@ def winner_delay(self, winner_delay): self._winner_delay = winner_delay + @property + def ip_warmup_enable(self): + """Gets the ip_warmup_enable of this UpdateEmailCampaign. # noqa: E501 + + Available for dedicated ip clients. Set this to true if you wish to warm up your ip. # noqa: E501 + + :return: The ip_warmup_enable of this UpdateEmailCampaign. # noqa: E501 + :rtype: bool + """ + return self._ip_warmup_enable + + @ip_warmup_enable.setter + def ip_warmup_enable(self, ip_warmup_enable): + """Sets the ip_warmup_enable of this UpdateEmailCampaign. + + Available for dedicated ip clients. Set this to true if you wish to warm up your ip. # noqa: E501 + + :param ip_warmup_enable: The ip_warmup_enable of this UpdateEmailCampaign. # noqa: E501 + :type: bool + """ + + self._ip_warmup_enable = ip_warmup_enable + + @property + def initial_quota(self): + """Gets the initial_quota of this UpdateEmailCampaign. # noqa: E501 + + Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. # noqa: E501 + + :return: The initial_quota of this UpdateEmailCampaign. # noqa: E501 + :rtype: int + """ + return self._initial_quota + + @initial_quota.setter + def initial_quota(self, initial_quota): + """Sets the initial_quota of this UpdateEmailCampaign. + + Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. # noqa: E501 + + :param initial_quota: The initial_quota of this UpdateEmailCampaign. # noqa: E501 + :type: int + """ + + self._initial_quota = initial_quota + + @property + def increase_rate(self): + """Gets the increase_rate of this UpdateEmailCampaign. # noqa: E501 + + Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. # noqa: E501 + + :return: The increase_rate of this UpdateEmailCampaign. # noqa: E501 + :rtype: int + """ + return self._increase_rate + + @increase_rate.setter + def increase_rate(self, increase_rate): + """Sets the increase_rate of this UpdateEmailCampaign. + + Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. # noqa: E501 + + :param increase_rate: The increase_rate of this UpdateEmailCampaign. # noqa: E501 + :type: int + """ + if increase_rate is not None and increase_rate > 100: # noqa: E501 + raise ValueError("Invalid value for `increase_rate`, must be a value less than or equal to `100`") # noqa: E501 + if increase_rate is not None and increase_rate < 0: # noqa: E501 + raise ValueError("Invalid value for `increase_rate`, must be a value greater than or equal to `0`") # noqa: E501 + + self._increase_rate = increase_rate + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -776,6 +861,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateEmailCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_email_campaign_recipients.py b/sib_api_v3_sdk/models/update_email_campaign_recipients.py index d8f27cc..1fa1073 100644 --- a/sib_api_v3_sdk/models/update_email_campaign_recipients.py +++ b/sib_api_v3_sdk/models/update_email_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateEmailCampaignRecipients, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_email_campaign_sender.py b/sib_api_v3_sdk/models/update_email_campaign_sender.py index 0ada6c7..b71b27d 100644 --- a/sib_api_v3_sdk/models/update_email_campaign_sender.py +++ b/sib_api_v3_sdk/models/update_email_campaign_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,25 +32,30 @@ class UpdateEmailCampaignSender(object): """ swagger_types = { 'name': 'str', - 'email': 'str' + 'email': 'str', + 'id': 'int' } attribute_map = { 'name': 'name', - 'email': 'email' + 'email': 'email', + 'id': 'id' } - def __init__(self, name=None, email=None): # noqa: E501 + def __init__(self, name=None, email=None, id=None): # noqa: E501 """UpdateEmailCampaignSender - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None + self._id = None self.discriminator = None if name is not None: self.name = name if email is not None: self.email = email + if id is not None: + self.id = id @property def name(self): @@ -98,6 +103,29 @@ def email(self, email): self._email = email + @property + def id(self): + """Gets the id of this UpdateEmailCampaignSender. # noqa: E501 + + Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :return: The id of this UpdateEmailCampaignSender. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateEmailCampaignSender. + + Select the sender for the campaign on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :param id: The id of this UpdateEmailCampaignSender. # noqa: E501 + :type: int + """ + + self._id = id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateEmailCampaignSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_list.py b/sib_api_v3_sdk/models/update_list.py index fc369b7..8b3886c 100644 --- a/sib_api_v3_sdk/models/update_list.py +++ b/sib_api_v3_sdk/models/update_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -119,6 +119,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateList, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_sender.py b/sib_api_v3_sdk/models/update_sender.py index ac8df53..ca2d107 100644 --- a/sib_api_v3_sdk/models/update_sender.py +++ b/sib_api_v3_sdk/models/update_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps # noqa: F401,E501 - class UpdateSender(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -149,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_sms_campaign.py b/sib_api_v3_sdk/models/update_sms_campaign.py index 5e7efc3..948bc8c 100644 --- a/sib_api_v3_sdk/models/update_sms_campaign.py +++ b/sib_api_v3_sdk/models/update_sms_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.create_sms_campaign_recipients import CreateSmsCampaignRecipients # noqa: F401,E501 - class UpdateSmsCampaign(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -205,6 +203,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateSmsCampaign, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_smtp_template.py b/sib_api_v3_sdk/models/update_smtp_template.py index b589ef4..61770ec 100644 --- a/sib_api_v3_sdk/models/update_smtp_template.py +++ b/sib_api_v3_sdk/models/update_smtp_template.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,8 +16,6 @@ import six -from sib_api_v3_sdk.models.update_smtp_template_sender import UpdateSmtpTemplateSender # noqa: F401,E501 - class UpdateSmtpTemplate(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -343,6 +341,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateSmtpTemplate, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_smtp_template_sender.py b/sib_api_v3_sdk/models/update_smtp_template_sender.py index b42235b..f8ce08b 100644 --- a/sib_api_v3_sdk/models/update_smtp_template_sender.py +++ b/sib_api_v3_sdk/models/update_smtp_template_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -32,25 +32,30 @@ class UpdateSmtpTemplateSender(object): """ swagger_types = { 'name': 'str', - 'email': 'str' + 'email': 'str', + 'id': 'int' } attribute_map = { 'name': 'name', - 'email': 'email' + 'email': 'email', + 'id': 'id' } - def __init__(self, name=None, email=None): # noqa: E501 + def __init__(self, name=None, email=None, id=None): # noqa: E501 """UpdateSmtpTemplateSender - a model defined in Swagger""" # noqa: E501 self._name = None self._email = None + self._id = None self.discriminator = None if name is not None: self.name = name if email is not None: self.email = email + if id is not None: + self.id = id @property def name(self): @@ -98,6 +103,29 @@ def email(self, email): self._email = email + @property + def id(self): + """Gets the id of this UpdateSmtpTemplateSender. # noqa: E501 + + Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :return: The id of this UpdateSmtpTemplateSender. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateSmtpTemplateSender. + + Select the sender for the template on the basis of sender id. In order to select a sender with specific pool of IP’s, dedicated ip users shall pass id (instead of email). # noqa: E501 + + :param id: The id of this UpdateSmtpTemplateSender. # noqa: E501 + :type: int + """ + + self._id = id + def to_dict(self): """Returns the model properties as a dict""" result = {} @@ -119,6 +147,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateSmtpTemplateSender, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/models/update_webhook.py b/sib_api_v3_sdk/models/update_webhook.py index 824ba97..bcd065d 100644 --- a/sib_api_v3_sdk/models/update_webhook.py +++ b/sib_api_v3_sdk/models/update_webhook.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -154,6 +154,9 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UpdateWebhook, dict): + for key, value in self.items(): + result[key] = value return result diff --git a/sib_api_v3_sdk/rest.py b/sib_api_v3_sdk/rest.py index aa3f8ab..adc9cd6 100644 --- a/sib_api_v3_sdk/rest.py +++ b/sib_api_v3_sdk/rest.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats_links.py b/test/test_ab_test_campaign_result.py similarity index 72% rename from test/test_get_contact_campaign_stats_links.py rename to test/test_ab_test_campaign_result.py index 6230b56..e89df81 100644 --- a/test/test_get_contact_campaign_stats_links.py +++ b/test/test_ab_test_campaign_result.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,12 +16,12 @@ import unittest import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_contact_campaign_stats_links import GetContactCampaignStatsLinks # noqa: E501 +from sib_api_v3_sdk.models.ab_test_campaign_result import AbTestCampaignResult # noqa: E501 from sib_api_v3_sdk.rest import ApiException -class TestGetContactCampaignStatsLinks(unittest.TestCase): - """GetContactCampaignStatsLinks unit test stubs""" +class TestAbTestCampaignResult(unittest.TestCase): + """AbTestCampaignResult unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testGetContactCampaignStatsLinks(self): - """Test GetContactCampaignStatsLinks""" + def testAbTestCampaignResult(self): + """Test AbTestCampaignResult""" # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_contact_campaign_stats_links.GetContactCampaignStatsLinks() # noqa: E501 + # model = sib_api_v3_sdk.models.ab_test_campaign_result.AbTestCampaignResult() # noqa: E501 pass diff --git a/test/test_account_api.py b/test/test_account_api.py index 2c05b1f..f567cc0 100644 --- a/test/test_account_api.py +++ b/test/test_account_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_add_child_domain.py b/test/test_add_child_domain.py index f6c5f98..7a90125 100644 --- a/test/test_add_child_domain.py +++ b/test/test_add_child_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_add_contact_to_list.py b/test/test_add_contact_to_list.py index 5f0c4c2..7e47685 100644 --- a/test/test_add_contact_to_list.py +++ b/test/test_add_contact_to_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_add_credits.py b/test/test_add_credits.py index bca1299..1aaecc9 100644 --- a/test/test_add_credits.py +++ b/test/test_add_credits.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_attributes_api.py b/test/test_attributes_api.py index 4a39560..dc85355 100644 --- a/test/test_attributes_api.py +++ b/test/test_attributes_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_contacts_api.py b/test/test_contacts_api.py index d8c7911..af7c11e 100644 --- a/test/test_contacts_api.py +++ b/test/test_contacts_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_attribute.py b/test/test_create_attribute.py index 762a037..58ac90d 100644 --- a/test/test_create_attribute.py +++ b/test/test_create_attribute.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_attribute_enumeration.py b/test/test_create_attribute_enumeration.py index 354cb84..25c3eb7 100644 --- a/test/test_create_attribute_enumeration.py +++ b/test/test_create_attribute_enumeration.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_child.py b/test/test_create_child.py index dddab7b..907c765 100644 --- a/test/test_create_child.py +++ b/test/test_create_child.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_contact.py b/test/test_create_contact.py index 27bcf04..b20d16d 100644 --- a/test/test_create_contact.py +++ b/test/test_create_contact.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_email_campaign.py b/test/test_create_email_campaign.py index ab10a33..57beef3 100644 --- a/test/test_create_email_campaign.py +++ b/test/test_create_email_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_email_campaign_recipients.py b/test/test_create_email_campaign_recipients.py index d5825ad..a7f63b6 100644 --- a/test/test_create_email_campaign_recipients.py +++ b/test/test_create_email_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_email_campaign_sender.py b/test/test_create_email_campaign_sender.py index fb2cfc6..ff3b49a 100644 --- a/test/test_create_email_campaign_sender.py +++ b/test/test_create_email_campaign_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_list.py b/test/test_create_list.py index 7072e77..83c3479 100644 --- a/test/test_create_list.py +++ b/test/test_create_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_model.py b/test/test_create_model.py index 95c58d8..b2e3882 100644 --- a/test/test_create_model.py +++ b/test/test_create_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_reseller.py b/test/test_create_reseller.py index 7aa350e..dc2f35f 100644 --- a/test/test_create_reseller.py +++ b/test/test_create_reseller.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_sender.py b/test/test_create_sender.py index 7920305..6606e24 100644 --- a/test/test_create_sender.py +++ b/test/test_create_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_sender_ips.py b/test/test_create_sender_ips.py index e339820..1dd96d1 100644 --- a/test/test_create_sender_ips.py +++ b/test/test_create_sender_ips.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_sender_model.py b/test/test_create_sender_model.py index 9da3326..ad28f5b 100644 --- a/test/test_create_sender_model.py +++ b/test/test_create_sender_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_sms_campaign.py b/test/test_create_sms_campaign.py index ee184af..00296e8 100644 --- a/test/test_create_sms_campaign.py +++ b/test/test_create_sms_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_sms_campaign_recipients.py b/test/test_create_sms_campaign_recipients.py index 4f3113d..d5cb5c6 100644 --- a/test/test_create_sms_campaign_recipients.py +++ b/test/test_create_sms_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_smtp_email.py b/test/test_create_smtp_email.py index b944b7c..c4544e4 100644 --- a/test/test_create_smtp_email.py +++ b/test/test_create_smtp_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_smtp_template.py b/test/test_create_smtp_template.py index 798a652..ac22af1 100644 --- a/test/test_create_smtp_template.py +++ b/test/test_create_smtp_template.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_smtp_template_sender.py b/test/test_create_smtp_template_sender.py index d080b81..e5e8462 100644 --- a/test/test_create_smtp_template_sender.py +++ b/test/test_create_smtp_template_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_update_contact_model.py b/test/test_create_update_contact_model.py index f2c650b..b5f2035 100644 --- a/test/test_create_update_contact_model.py +++ b/test/test_create_update_contact_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_update_folder.py b/test/test_create_update_folder.py index dc637a9..8b74d2d 100644 --- a/test/test_create_update_folder.py +++ b/test/test_create_update_folder.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_create_webhook.py b/test/test_create_webhook.py index 8142a77..8209652 100644 --- a/test/test_create_webhook.py +++ b/test/test_create_webhook.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_created_process_id.py b/test/test_created_process_id.py index 82e01f7..715410f 100644 --- a/test/test_created_process_id.py +++ b/test/test_created_process_id.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_delete_hardbounces.py b/test/test_delete_hardbounces.py index c23db41..6462d05 100644 --- a/test/test_delete_hardbounces.py +++ b/test/test_delete_hardbounces.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_email_campaigns_api.py b/test/test_email_campaigns_api.py index 2a87388..4a5d106 100644 --- a/test/test_email_campaigns_api.py +++ b/test/test_email_campaigns_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -50,6 +50,13 @@ def test_email_export_recipients(self): """ pass + def test_get_ab_test_campaign_result(self): + """Test case for get_ab_test_campaign_result + + Get A/B test email campaign result # noqa: E501 + """ + pass + def test_get_email_campaign(self): """Test case for get_email_campaign @@ -64,10 +71,17 @@ def test_get_email_campaigns(self): """ pass + def test_get_shared_template_url(self): + """Test case for get_shared_template_url + + Get a shared template url # noqa: E501 + """ + pass + def test_send_email_campaign_now(self): """Test case for send_email_campaign_now - Send an email campaign id of the campaign immediately # noqa: E501 + Send an email campaign immediately, based on campaignId # noqa: E501 """ pass diff --git a/test/test_email_export_recipients.py b/test/test_email_export_recipients.py index aa50506..2165510 100644 --- a/test/test_email_export_recipients.py +++ b/test/test_email_export_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_error_model.py b/test/test_error_model.py index 719be9f..c0832df 100644 --- a/test/test_error_model.py +++ b/test/test_error_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_folders_api.py b/test/test_folders_api.py index 8e89383..1bc1888 100644 --- a/test/test_folders_api.py +++ b/test/test_folders_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_account.py b/test/test_get_account.py index 5397754..425ab60 100644 --- a/test/test_get_account.py +++ b/test/test_get_account.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_account_marketing_automation.py b/test/test_get_account_marketing_automation.py index bfcbe17..ec913ae 100644 --- a/test/test_get_account_marketing_automation.py +++ b/test/test_get_account_marketing_automation.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_account_plan.py b/test/test_get_account_plan.py index f702a49..8fbc0cc 100644 --- a/test/test_get_account_plan.py +++ b/test/test_get_account_plan.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_account_relay.py b/test/test_get_account_relay.py index 9422aea..9b31545 100644 --- a/test/test_get_account_relay.py +++ b/test/test_get_account_relay.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_account_relay_data.py b/test/test_get_account_relay_data.py index 8f80cd4..79c9421 100644 --- a/test/test_get_account_relay_data.py +++ b/test/test_get_account_relay_data.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_aggregated_report.py b/test/test_get_aggregated_report.py index d13f991..3f87cb0 100644 --- a/test/test_get_aggregated_report.py +++ b/test/test_get_aggregated_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_attributes.py b/test/test_get_attributes.py index b17f531..ae890f7 100644 --- a/test/test_get_attributes.py +++ b/test/test_get_attributes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_attributes_attributes.py b/test/test_get_attributes_attributes.py index c047192..4a9aecd 100644 --- a/test/test_get_attributes_attributes.py +++ b/test/test_get_attributes_attributes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_attributes_enumeration.py b/test/test_get_attributes_enumeration.py index df6a29a..9801600 100644 --- a/test/test_get_attributes_enumeration.py +++ b/test/test_get_attributes_enumeration.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_campaign_overview.py b/test/test_get_campaign_overview.py index a302896..97ddb6d 100644 --- a/test/test_get_campaign_overview.py +++ b/test/test_get_campaign_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_campaign_recipients.py b/test/test_get_campaign_recipients.py index ae52a46..ee517ce 100644 --- a/test/test_get_campaign_recipients.py +++ b/test/test_get_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_campaign_stats.py b/test/test_get_campaign_stats.py index b5edc43..218ecd0 100644 --- a/test/test_get_campaign_stats.py +++ b/test/test_get_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py b/test/test_get_child_account_creation_status.py similarity index 64% rename from test/test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py rename to test/test_get_child_account_creation_status.py index 6e759c3..d2b15fc 100644 --- a/test/test_get_contact_campaign_stats_unsubscriptions_user_unsubscription.py +++ b/test/test_get_child_account_creation_status.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,12 +16,12 @@ import unittest import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription import GetContactCampaignStatsUnsubscriptionsUserUnsubscription # noqa: E501 +from sib_api_v3_sdk.models.get_child_account_creation_status import GetChildAccountCreationStatus # noqa: E501 from sib_api_v3_sdk.rest import ApiException -class TestGetContactCampaignStatsUnsubscriptionsUserUnsubscription(unittest.TestCase): - """GetContactCampaignStatsUnsubscriptionsUserUnsubscription unit test stubs""" +class TestGetChildAccountCreationStatus(unittest.TestCase): + """GetChildAccountCreationStatus unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testGetContactCampaignStatsUnsubscriptionsUserUnsubscription(self): - """Test GetContactCampaignStatsUnsubscriptionsUserUnsubscription""" + def testGetChildAccountCreationStatus(self): + """Test GetChildAccountCreationStatus""" # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_user_unsubscription.GetContactCampaignStatsUnsubscriptionsUserUnsubscription() # noqa: E501 + # model = sib_api_v3_sdk.models.get_child_account_creation_status.GetChildAccountCreationStatus() # noqa: E501 pass diff --git a/test/test_get_child_domain.py b/test/test_get_child_domain.py index 8aa5878..2f9fd7b 100644 --- a/test/test_get_child_domain.py +++ b/test/test_get_child_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_child_domains.py b/test/test_get_child_domains.py index 906887f..10203a0 100644 --- a/test/test_get_child_domains.py +++ b/test/test_get_child_domains.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_child_info.py b/test/test_get_child_info.py index 268869d..84d896e 100644 --- a/test/test_get_child_info.py +++ b/test/test_get_child_info.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_child_info_api_keys.py b/test/test_get_child_info_api_keys.py index f1a5896..225a7a0 100644 --- a/test/test_get_child_info_api_keys.py +++ b/test/test_get_child_info_api_keys.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_child_info_api_keys_v2.py b/test/test_get_child_info_api_keys_v2.py index 43eddab..555a8d1 100644 --- a/test/test_get_child_info_api_keys_v2.py +++ b/test/test_get_child_info_api_keys_v2.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_child_info_api_keys_v3.py b/test/test_get_child_info_api_keys_v3.py index 1710e11..62c12a1 100644 --- a/test/test_get_child_info_api_keys_v3.py +++ b/test/test_get_child_info_api_keys_v3.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_child_info_credits.py b/test/test_get_child_info_credits.py index a9d4449..22baa81 100644 --- a/test/test_get_child_info_credits.py +++ b/test/test_get_child_info_credits.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_child_info_statistics.py b/test/test_get_child_info_statistics.py index 2cd3754..5245c2c 100644 --- a/test/test_get_child_info_statistics.py +++ b/test/test_get_child_info_statistics.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_children_list.py b/test/test_get_children_list.py index c05c219..b8fa610 100644 --- a/test/test_get_children_list.py +++ b/test/test_get_children_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_client.py b/test/test_get_client.py index 35d968a..d100d7f 100644 --- a/test/test_get_client.py +++ b/test/test_get_client.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats.py b/test/test_get_contact_campaign_stats.py index e5e7762..65a90c5 100644 --- a/test/test_get_contact_campaign_stats.py +++ b/test/test_get_contact_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats_clicked.py b/test/test_get_contact_campaign_stats_clicked.py index 613d6ed..809d6bb 100644 --- a/test/test_get_contact_campaign_stats_clicked.py +++ b/test/test_get_contact_campaign_stats_clicked.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats_opened.py b/test/test_get_contact_campaign_stats_opened.py index 2690e34..272c6b4 100644 --- a/test/test_get_contact_campaign_stats_opened.py +++ b/test/test_get_contact_campaign_stats_opened.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats_transac_attributes.py b/test/test_get_contact_campaign_stats_transac_attributes.py index f9ed2bc..2b1cbd8 100644 --- a/test/test_get_contact_campaign_stats_transac_attributes.py +++ b/test/test_get_contact_campaign_stats_transac_attributes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats_unsubscriptions.py b/test/test_get_contact_campaign_stats_unsubscriptions.py index 417b14a..e0d73c0 100644 --- a/test/test_get_contact_campaign_stats_unsubscriptions.py +++ b/test/test_get_contact_campaign_stats_unsubscriptions.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_details.py b/test/test_get_contact_details.py index d35f769..1f90111 100644 --- a/test/test_get_contact_details.py +++ b/test/test_get_contact_details.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contacts.py b/test/test_get_contacts.py index 8392d9e..ccbc765 100644 --- a/test/test_get_contacts.py +++ b/test/test_get_contacts.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py b/test/test_get_device_browser_stats.py similarity index 64% rename from test/test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py rename to test/test_get_device_browser_stats.py index cb0b464..83a07f9 100644 --- a/test/test_get_contact_campaign_stats_unsubscriptions_admin_unsubscription.py +++ b/test/test_get_device_browser_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -16,12 +16,12 @@ import unittest import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription import GetContactCampaignStatsUnsubscriptionsAdminUnsubscription # noqa: E501 +from sib_api_v3_sdk.models.get_device_browser_stats import GetDeviceBrowserStats # noqa: E501 from sib_api_v3_sdk.rest import ApiException -class TestGetContactCampaignStatsUnsubscriptionsAdminUnsubscription(unittest.TestCase): - """GetContactCampaignStatsUnsubscriptionsAdminUnsubscription unit test stubs""" +class TestGetDeviceBrowserStats(unittest.TestCase): + """GetDeviceBrowserStats unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testGetContactCampaignStatsUnsubscriptionsAdminUnsubscription(self): - """Test GetContactCampaignStatsUnsubscriptionsAdminUnsubscription""" + def testGetDeviceBrowserStats(self): + """Test GetDeviceBrowserStats""" # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_contact_campaign_stats_unsubscriptions_admin_unsubscription.GetContactCampaignStatsUnsubscriptionsAdminUnsubscription() # noqa: E501 + # model = sib_api_v3_sdk.models.get_device_browser_stats.GetDeviceBrowserStats() # noqa: E501 pass diff --git a/test/test_get_email_campaign.py b/test/test_get_email_campaign.py index 658dfbd..90e3f01 100644 --- a/test/test_get_email_campaign.py +++ b/test/test_get_email_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_email_campaigns.py b/test/test_get_email_campaigns.py index dd552b7..88d95cc 100644 --- a/test/test_get_email_campaigns.py +++ b/test/test_get_email_campaigns.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_email_event_report.py b/test/test_get_email_event_report.py index a91ec2a..5621f6f 100644 --- a/test/test_get_email_event_report.py +++ b/test/test_get_email_event_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_email_event_report_events.py b/test/test_get_email_event_report_events.py index 579d2c4..5be5ffa 100644 --- a/test/test_get_email_event_report_events.py +++ b/test/test_get_email_event_report_events.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_campaign_overview.py b/test/test_get_extended_campaign_overview.py index 84c742b..30a3e17 100644 --- a/test/test_get_extended_campaign_overview.py +++ b/test/test_get_extended_campaign_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_campaign_overview_sender.py b/test/test_get_extended_campaign_overview_sender.py index 808a550..9787c34 100644 --- a/test/test_get_extended_campaign_overview_sender.py +++ b/test/test_get_extended_campaign_overview_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_campaign_stats.py b/test/test_get_extended_campaign_stats.py index d5101f5..24d922a 100644 --- a/test/test_get_extended_campaign_stats.py +++ b/test/test_get_extended_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_client.py b/test/test_get_extended_client.py index c044d78..63ccc59 100644 --- a/test/test_get_extended_client.py +++ b/test/test_get_extended_client.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_client_address.py b/test/test_get_extended_client_address.py index 7554630..36a1c8c 100644 --- a/test/test_get_extended_client_address.py +++ b/test/test_get_extended_client_address.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details.py b/test/test_get_extended_contact_details.py index e1c633a..a38b10a 100644 --- a/test/test_get_extended_contact_details.py +++ b/test/test_get_extended_contact_details.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics.py b/test/test_get_extended_contact_details_statistics.py index 790e2c0..f579729 100644 --- a/test/test_get_extended_contact_details_statistics.py +++ b/test/test_get_extended_contact_details_statistics.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics_clicked.py b/test/test_get_extended_contact_details_statistics_clicked.py index 17e7e69..968c680 100644 --- a/test/test_get_extended_contact_details_statistics_clicked.py +++ b/test/test_get_extended_contact_details_statistics_clicked.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics_links.py b/test/test_get_extended_contact_details_statistics_links.py index c8903ed..0818df0 100644 --- a/test/test_get_extended_contact_details_statistics_links.py +++ b/test/test_get_extended_contact_details_statistics_links.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics_messages_sent.py b/test/test_get_extended_contact_details_statistics_messages_sent.py index 68a77bc..2da27b4 100644 --- a/test/test_get_extended_contact_details_statistics_messages_sent.py +++ b/test/test_get_extended_contact_details_statistics_messages_sent.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics_opened.py b/test/test_get_extended_contact_details_statistics_opened.py index fcff491..f095096 100644 --- a/test/test_get_extended_contact_details_statistics_opened.py +++ b/test/test_get_extended_contact_details_statistics_opened.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics_unsubscriptions.py b/test/test_get_extended_contact_details_statistics_unsubscriptions.py index c0a1c01..d0969e8 100644 --- a/test/test_get_extended_contact_details_statistics_unsubscriptions.py +++ b/test/test_get_extended_contact_details_statistics_unsubscriptions.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py b/test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py index 591b34e..f1ad5d2 100644 --- a/test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py +++ b/test/test_get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py b/test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py index 812b384..fef4eaa 100644 --- a/test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py +++ b/test/test_get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_list.py b/test/test_get_extended_list.py index 953ffd8..ceb9004 100644 --- a/test/test_get_extended_list.py +++ b/test/test_get_extended_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_extended_list_campaign_stats.py b/test/test_get_extended_list_campaign_stats.py index 6260c39..a627f8e 100644 --- a/test/test_get_extended_list_campaign_stats.py +++ b/test/test_get_extended_list_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_folder.py b/test/test_get_folder.py index c6a46d2..d54e7a4 100644 --- a/test/test_get_folder.py +++ b/test/test_get_folder.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_folder_lists.py b/test/test_get_folder_lists.py index 4b08a07..806ed57 100644 --- a/test/test_get_folder_lists.py +++ b/test/test_get_folder_lists.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_folders.py b/test/test_get_folders.py index 5bd922a..cf52319 100644 --- a/test/test_get_folders.py +++ b/test/test_get_folders.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_ip.py b/test/test_get_ip.py index ffe3c3b..495a968 100644 --- a/test/test_get_ip.py +++ b/test/test_get_ip.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_ip_from_sender.py b/test/test_get_ip_from_sender.py index 7a98138..821a9d7 100644 --- a/test/test_get_ip_from_sender.py +++ b/test/test_get_ip_from_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_ips.py b/test/test_get_ips.py index 39d9b22..4e523dd 100644 --- a/test/test_get_ips.py +++ b/test/test_get_ips.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_ips_from_sender.py b/test/test_get_ips_from_sender.py index 8eda139..a368277 100644 --- a/test/test_get_ips_from_sender.py +++ b/test/test_get_ips_from_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_list.py b/test/test_get_list.py index 562a008..a6b0c23 100644 --- a/test/test_get_list.py +++ b/test/test_get_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_lists.py b/test/test_get_lists.py index eb37bb7..2de4a9d 100644 --- a/test/test_get_lists.py +++ b/test/test_get_lists.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_process.py b/test/test_get_process.py index 824accf..1244a15 100644 --- a/test/test_get_process.py +++ b/test/test_get_process.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_processes.py b/test/test_get_processes.py index 16fd96c..9afd895 100644 --- a/test/test_get_processes.py +++ b/test/test_get_processes.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_reports.py b/test/test_get_reports.py index 7abbc6e..bbc8dcc 100644 --- a/test/test_get_reports.py +++ b/test/test_get_reports.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_reports_reports.py b/test/test_get_reports_reports.py index 18fab7e..0e63841 100644 --- a/test/test_get_reports_reports.py +++ b/test/test_get_reports_reports.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_senders_list.py b/test/test_get_senders_list.py index 38c11b7..dcd8511 100644 --- a/test/test_get_senders_list.py +++ b/test/test_get_senders_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_senders_list_ips.py b/test/test_get_senders_list_ips.py index 89d8988..93e261d 100644 --- a/test/test_get_senders_list_ips.py +++ b/test/test_get_senders_list_ips.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_senders_list_senders.py b/test/test_get_senders_list_senders.py index 139deef..dc0c1e5 100644 --- a/test/test_get_senders_list_senders.py +++ b/test/test_get_senders_list_senders.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_shared_template_url.py b/test/test_get_shared_template_url.py new file mode 100644 index 0000000..a89937e --- /dev/null +++ b/test/test_get_shared_template_url.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_shared_template_url import GetSharedTemplateUrl # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetSharedTemplateUrl(unittest.TestCase): + """GetSharedTemplateUrl unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetSharedTemplateUrl(self): + """Test GetSharedTemplateUrl""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_shared_template_url.GetSharedTemplateUrl() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_sms_campaign.py b/test/test_get_sms_campaign.py index 68527d1..c8e9db9 100644 --- a/test/test_get_sms_campaign.py +++ b/test/test_get_sms_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_sms_campaign_overview.py b/test/test_get_sms_campaign_overview.py index e84f9e8..13a45f0 100644 --- a/test/test_get_sms_campaign_overview.py +++ b/test/test_get_sms_campaign_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_sms_campaign_stats.py b/test/test_get_sms_campaign_stats.py index 52c1380..7bf2a6c 100644 --- a/test/test_get_sms_campaign_stats.py +++ b/test/test_get_sms_campaign_stats.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_sms_campaigns.py b/test/test_get_sms_campaigns.py index 02f28e2..4cba813 100644 --- a/test/test_get_sms_campaigns.py +++ b/test/test_get_sms_campaigns.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_sms_event_report.py b/test/test_get_sms_event_report.py index 961a7ca..26e300f 100644 --- a/test/test_get_sms_event_report.py +++ b/test/test_get_sms_event_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_sms_event_report_events.py b/test/test_get_sms_event_report_events.py index cefa972..efbc185 100644 --- a/test/test_get_sms_event_report_events.py +++ b/test/test_get_sms_event_report_events.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_smtp_template_overview.py b/test/test_get_smtp_template_overview.py index 8a4919c..76bd057 100644 --- a/test/test_get_smtp_template_overview.py +++ b/test/test_get_smtp_template_overview.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_smtp_template_overview_sender.py b/test/test_get_smtp_template_overview_sender.py index 6837c43..0e0f992 100644 --- a/test/test_get_smtp_template_overview_sender.py +++ b/test/test_get_smtp_template_overview_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_smtp_templates.py b/test/test_get_smtp_templates.py index dc40ef5..8ee90a0 100644 --- a/test/test_get_smtp_templates.py +++ b/test/test_get_smtp_templates.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_sso_token.py b/test/test_get_sso_token.py index 2ce820a..9b553a6 100644 --- a/test/test_get_sso_token.py +++ b/test/test_get_sso_token.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_stats_by_browser.py b/test/test_get_stats_by_browser.py new file mode 100644 index 0000000..8d18218 --- /dev/null +++ b/test/test_get_stats_by_browser.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_stats_by_browser import GetStatsByBrowser # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetStatsByBrowser(unittest.TestCase): + """GetStatsByBrowser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetStatsByBrowser(self): + """Test GetStatsByBrowser""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_stats_by_browser.GetStatsByBrowser() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_stats_by_device.py b/test/test_get_stats_by_device.py new file mode 100644 index 0000000..4ea4236 --- /dev/null +++ b/test/test_get_stats_by_device.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_stats_by_device import GetStatsByDevice # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetStatsByDevice(unittest.TestCase): + """GetStatsByDevice unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetStatsByDevice(self): + """Test GetStatsByDevice""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_stats_by_device.GetStatsByDevice() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_stats_by_domain.py b/test/test_get_stats_by_domain.py index e129e07..b017dc3 100644 --- a/test/test_get_stats_by_domain.py +++ b/test/test_get_stats_by_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_transac_aggregated_sms_report.py b/test/test_get_transac_aggregated_sms_report.py index 2c04782..b341a11 100644 --- a/test/test_get_transac_aggregated_sms_report.py +++ b/test/test_get_transac_aggregated_sms_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_transac_blocked_contacts.py b/test/test_get_transac_blocked_contacts.py new file mode 100644 index 0000000..dce8b83 --- /dev/null +++ b/test/test_get_transac_blocked_contacts.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_transac_blocked_contacts import GetTransacBlockedContacts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetTransacBlockedContacts(unittest.TestCase): + """GetTransacBlockedContacts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetTransacBlockedContacts(self): + """Test GetTransacBlockedContacts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_transac_blocked_contacts.GetTransacBlockedContacts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_transac_blocked_contacts_contacts.py b/test/test_get_transac_blocked_contacts_contacts.py new file mode 100644 index 0000000..c16a2d2 --- /dev/null +++ b/test/test_get_transac_blocked_contacts_contacts.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts import GetTransacBlockedContactsContacts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetTransacBlockedContactsContacts(unittest.TestCase): + """GetTransacBlockedContactsContacts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetTransacBlockedContactsContacts(self): + """Test GetTransacBlockedContactsContacts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_transac_blocked_contacts_contacts.GetTransacBlockedContactsContacts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_transac_blocked_contacts_reason.py b/test/test_get_transac_blocked_contacts_reason.py new file mode 100644 index 0000000..6b134fa --- /dev/null +++ b/test/test_get_transac_blocked_contacts_reason.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_transac_blocked_contacts_reason import GetTransacBlockedContactsReason # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetTransacBlockedContactsReason(unittest.TestCase): + """GetTransacBlockedContactsReason unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetTransacBlockedContactsReason(self): + """Test GetTransacBlockedContactsReason""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_transac_blocked_contacts_reason.GetTransacBlockedContactsReason() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_transac_email_content.py b/test/test_get_transac_email_content.py index 708f024..e327ffd 100644 --- a/test/test_get_transac_email_content.py +++ b/test/test_get_transac_email_content.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_transac_email_content_events.py b/test/test_get_transac_email_content_events.py index 3c5bc96..3b9af5e 100644 --- a/test/test_get_transac_email_content_events.py +++ b/test/test_get_transac_email_content_events.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_transac_emails_list.py b/test/test_get_transac_emails_list.py index ffb6a61..a4d5453 100644 --- a/test/test_get_transac_emails_list.py +++ b/test/test_get_transac_emails_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_transac_emails_list_transactional_emails.py b/test/test_get_transac_emails_list_transactional_emails.py index af6566e..4971fbe 100644 --- a/test/test_get_transac_emails_list_transactional_emails.py +++ b/test/test_get_transac_emails_list_transactional_emails.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_transac_sms_report.py b/test/test_get_transac_sms_report.py index abd88a8..0a609a1 100644 --- a/test/test_get_transac_sms_report.py +++ b/test/test_get_transac_sms_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_transac_sms_report_reports.py b/test/test_get_transac_sms_report_reports.py index 70c9791..f1b00dd 100644 --- a/test/test_get_transac_sms_report_reports.py +++ b/test/test_get_transac_sms_report_reports.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_webhook.py b/test/test_get_webhook.py index efcc194..88b9242 100644 --- a/test/test_get_webhook.py +++ b/test/test_get_webhook.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_get_webhooks.py b/test/test_get_webhooks.py index 84447bb..8bc1695 100644 --- a/test/test_get_webhooks.py +++ b/test/test_get_webhooks.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_lists_api.py b/test/test_lists_api.py index d058b66..0634ea7 100644 --- a/test/test_lists_api.py +++ b/test/test_lists_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_manage_ip.py b/test/test_manage_ip.py index e907b70..e57ca37 100644 --- a/test/test_manage_ip.py +++ b/test/test_manage_ip.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_post_contact_info.py b/test/test_post_contact_info.py index d0d29b5..c463ba6 100644 --- a/test/test_post_contact_info.py +++ b/test/test_post_contact_info.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_post_contact_info_contacts.py b/test/test_post_contact_info_contacts.py index 5558666..580e7e7 100644 --- a/test/test_post_contact_info_contacts.py +++ b/test/test_post_contact_info_contacts.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_post_send_failed.py b/test/test_post_send_failed.py index e5a74cf..c0de737 100644 --- a/test/test_post_send_failed.py +++ b/test/test_post_send_failed.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_post_send_sms_test_failed.py b/test/test_post_send_sms_test_failed.py index 3360faa..70d99d2 100644 --- a/test/test_post_send_sms_test_failed.py +++ b/test/test_post_send_sms_test_failed.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_process_api.py b/test/test_process_api.py index e1de5d2..6e6c1ae 100644 --- a/test/test_process_api.py +++ b/test/test_process_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_remaining_credit_model.py b/test/test_remaining_credit_model.py index a878f61..31a52e4 100644 --- a/test/test_remaining_credit_model.py +++ b/test/test_remaining_credit_model.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_remaining_credit_model_child.py b/test/test_remaining_credit_model_child.py index 9f3a6e0..f994bd6 100644 --- a/test/test_remaining_credit_model_child.py +++ b/test/test_remaining_credit_model_child.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_remaining_credit_model_reseller.py b/test/test_remaining_credit_model_reseller.py index b083d72..d1e68a0 100644 --- a/test/test_remaining_credit_model_reseller.py +++ b/test/test_remaining_credit_model_reseller.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_remove_contact_from_list.py b/test/test_remove_contact_from_list.py index 637c10a..ad6dd45 100644 --- a/test/test_remove_contact_from_list.py +++ b/test/test_remove_contact_from_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_remove_credits.py b/test/test_remove_credits.py index abf22fa..7ebe3a0 100644 --- a/test/test_remove_credits.py +++ b/test/test_remove_credits.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_request_contact_export.py b/test/test_request_contact_export.py index 2c18734..0497dbc 100644 --- a/test/test_request_contact_export.py +++ b/test/test_request_contact_export.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_request_contact_export_custom_contact_filter.py b/test/test_request_contact_export_custom_contact_filter.py new file mode 100644 index 0000000..6a80040 --- /dev/null +++ b/test/test_request_contact_export_custom_contact_filter.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.request_contact_export_custom_contact_filter import RequestContactExportCustomContactFilter # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestRequestContactExportCustomContactFilter(unittest.TestCase): + """RequestContactExportCustomContactFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRequestContactExportCustomContactFilter(self): + """Test RequestContactExportCustomContactFilter""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.request_contact_export_custom_contact_filter.RequestContactExportCustomContactFilter() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_request_contact_import.py b/test/test_request_contact_import.py index ec7941d..cbadaec 100644 --- a/test/test_request_contact_import.py +++ b/test/test_request_contact_import.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_request_contact_import_new_list.py b/test/test_request_contact_import_new_list.py index 0b2119d..7a9b65f 100644 --- a/test/test_request_contact_import_new_list.py +++ b/test/test_request_contact_import_new_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_request_sms_recipient_export.py b/test/test_request_sms_recipient_export.py index f3d65eb..dd0cfa0 100644 --- a/test/test_request_sms_recipient_export.py +++ b/test/test_request_sms_recipient_export.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_reseller_api.py b/test/test_reseller_api.py index c7149f3..eb571e5 100644 --- a/test/test_reseller_api.py +++ b/test/test_reseller_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -78,6 +78,13 @@ def test_dissociate_ip_from_child(self): """ pass + def test_get_child_account_creation_status(self): + """Test case for get_child_account_creation_status + + Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied # noqa: E501 + """ + pass + def test_get_child_domains(self): """Test case for get_child_domains diff --git a/test/test_send_email.py b/test/test_send_email.py index 4f36fa8..2ad3446 100644 --- a/test/test_send_email.py +++ b/test/test_send_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_email_attachment.py b/test/test_send_email_attachment.py index b9db774..be2e660 100644 --- a/test/test_send_email_attachment.py +++ b/test/test_send_email_attachment.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_report.py b/test/test_send_report.py index 9cf290c..92528da 100644 --- a/test/test_send_report.py +++ b/test/test_send_report.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_report_email.py b/test/test_send_report_email.py index 7945422..e69c5f0 100644 --- a/test/test_send_report_email.py +++ b/test/test_send_report_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_sms.py b/test/test_send_sms.py index c213b9a..9ea1c84 100644 --- a/test/test_send_sms.py +++ b/test/test_send_sms.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_smtp_email.py b/test/test_send_smtp_email.py index e04b8d1..5279d95 100644 --- a/test/test_send_smtp_email.py +++ b/test/test_send_smtp_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_smtp_email_attachment.py b/test/test_send_smtp_email_attachment.py index ef88804..dd1c13c 100644 --- a/test/test_send_smtp_email_attachment.py +++ b/test/test_send_smtp_email_attachment.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_smtp_email_bcc.py b/test/test_send_smtp_email_bcc.py index ea4cd01..86fb2d4 100644 --- a/test/test_send_smtp_email_bcc.py +++ b/test/test_send_smtp_email_bcc.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_smtp_email_cc.py b/test/test_send_smtp_email_cc.py index ad50c07..0e700c2 100644 --- a/test/test_send_smtp_email_cc.py +++ b/test/test_send_smtp_email_cc.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_smtp_email_reply_to.py b/test/test_send_smtp_email_reply_to.py index f2a29af..378fd97 100644 --- a/test/test_send_smtp_email_reply_to.py +++ b/test/test_send_smtp_email_reply_to.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_smtp_email_sender.py b/test/test_send_smtp_email_sender.py index b76d655..429ef65 100644 --- a/test/test_send_smtp_email_sender.py +++ b/test/test_send_smtp_email_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_smtp_email_to.py b/test/test_send_smtp_email_to.py index 1950f52..1b1d98f 100644 --- a/test/test_send_smtp_email_to.py +++ b/test/test_send_smtp_email_to.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_template_email.py b/test/test_send_template_email.py index 6f9a5b8..3a4e7f8 100644 --- a/test/test_send_template_email.py +++ b/test/test_send_template_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_test_email.py b/test/test_send_test_email.py index ed335b3..4823225 100644 --- a/test/test_send_test_email.py +++ b/test/test_send_test_email.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_test_sms.py b/test/test_send_test_sms.py index df232e5..9fb4756 100644 --- a/test/test_send_test_sms.py +++ b/test/test_send_test_sms.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_send_transac_sms.py b/test/test_send_transac_sms.py index e23ea60..0b50079 100644 --- a/test/test_send_transac_sms.py +++ b/test/test_send_transac_sms.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_senders_api.py b/test/test_senders_api.py index 28c1093..94afa05 100644 --- a/test/test_senders_api.py +++ b/test/test_senders_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_sms_campaigns_api.py b/test/test_sms_campaigns_api.py index 262751e..87ba56d 100644 --- a/test/test_sms_campaigns_api.py +++ b/test/test_sms_campaigns_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_smtp_api.py b/test/test_smtp_api.py index 4a86529..2543bab 100644 --- a/test/test_smtp_api.py +++ b/test/test_smtp_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com @@ -85,6 +85,13 @@ def test_get_smtp_templates(self): """ pass + def test_get_transac_blocked_contacts(self): + """Test case for get_transac_blocked_contacts + + Get the list of blocked or unsubscribed transactional contacts # noqa: E501 + """ + pass + def test_get_transac_email_content(self): """Test case for get_transac_email_content @@ -120,6 +127,20 @@ def test_send_transac_email(self): """ pass + def test_smtp_blocked_contacts_email_delete(self): + """Test case for smtp_blocked_contacts_email_delete + + Unblock or resubscribe a transactional contact # noqa: E501 + """ + pass + + def test_smtp_log_message_id_delete(self): + """Test case for smtp_log_message_id_delete + + Delete an SMTP transactional log # noqa: E501 + """ + pass + def test_update_smtp_template(self): """Test case for update_smtp_template diff --git a/test/test_transactional_sms_api.py b/test/test_transactional_sms_api.py index 6e3f43f..2a0534f 100644 --- a/test/test_transactional_sms_api.py +++ b/test/test_transactional_sms_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_attribute.py b/test/test_update_attribute.py index e3f304a..91f92cf 100644 --- a/test/test_update_attribute.py +++ b/test/test_update_attribute.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_attribute_enumeration.py b/test/test_update_attribute_enumeration.py index e059f33..3099591 100644 --- a/test/test_update_attribute_enumeration.py +++ b/test/test_update_attribute_enumeration.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_campaign_status.py b/test/test_update_campaign_status.py index e5ae1a0..85b6b2f 100644 --- a/test/test_update_campaign_status.py +++ b/test/test_update_campaign_status.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_child.py b/test/test_update_child.py index 1734a55..5403582 100644 --- a/test/test_update_child.py +++ b/test/test_update_child.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_child_account_status.py b/test/test_update_child_account_status.py index 22a5d3a..18bc64b 100644 --- a/test/test_update_child_account_status.py +++ b/test/test_update_child_account_status.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_child_domain.py b/test/test_update_child_domain.py index 846c75f..b5c98f8 100644 --- a/test/test_update_child_domain.py +++ b/test/test_update_child_domain.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_contact.py b/test/test_update_contact.py index 60301d1..d5b4db4 100644 --- a/test/test_update_contact.py +++ b/test/test_update_contact.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_email_campaign.py b/test/test_update_email_campaign.py index d36080d..90a2b7f 100644 --- a/test/test_update_email_campaign.py +++ b/test/test_update_email_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_email_campaign_recipients.py b/test/test_update_email_campaign_recipients.py index a75d056..6242356 100644 --- a/test/test_update_email_campaign_recipients.py +++ b/test/test_update_email_campaign_recipients.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_email_campaign_sender.py b/test/test_update_email_campaign_sender.py index 37550db..4ca2cb3 100644 --- a/test/test_update_email_campaign_sender.py +++ b/test/test_update_email_campaign_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_list.py b/test/test_update_list.py index 1420036..a063d29 100644 --- a/test/test_update_list.py +++ b/test/test_update_list.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_sender.py b/test/test_update_sender.py index dfe9f17..ba13404 100644 --- a/test/test_update_sender.py +++ b/test/test_update_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_sms_campaign.py b/test/test_update_sms_campaign.py index 1f621b3..ebf9ac2 100644 --- a/test/test_update_sms_campaign.py +++ b/test/test_update_sms_campaign.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_smtp_template.py b/test/test_update_smtp_template.py index b0c3274..b90c938 100644 --- a/test/test_update_smtp_template.py +++ b/test/test_update_smtp_template.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_smtp_template_sender.py b/test/test_update_smtp_template_sender.py index 9c474fe..dfea19d 100644 --- a/test/test_update_smtp_template_sender.py +++ b/test/test_update_smtp_template_sender.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_update_webhook.py b/test/test_update_webhook.py index 850dcf8..458582c 100644 --- a/test/test_update_webhook.py +++ b/test/test_update_webhook.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/test/test_webhooks_api.py b/test/test_webhooks_api.py index c50b243..e32b5ac 100644 --- a/test/test_webhooks_api.py +++ b/test/test_webhooks_api.py @@ -3,7 +3,7 @@ """ SendinBlue API - 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 | # noqa: E501 + 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 | # noqa: E501 OpenAPI spec version: 3.0.0 Contact: contact@sendinblue.com diff --git a/tox.ini b/tox.ini index 1cf0829..3d0be61 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = py27, py3 [testenv] deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt - + commands= nosetests \ - [] \ No newline at end of file + [] From 6a95085d685496dec6ee2aa9ff2cf7349c3fc7e3 Mon Sep 17 00:00:00 2001 From: aakanksha-sib Date: Fri, 20 Mar 2020 14:49:27 +0530 Subject: [PATCH 2/2] Updated wrapper version to 6.1.0 --- README.md | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1db636..9abc4ba 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -**Latest stable version is: https://github.com/sendinblue/APIv3-python-library/tree/v4.2.2** +**Our library is now compatible with python 3.7 . Please use: https://github.com/sendinblue/APIv3-python-library/tree/v6.1.0** # SendinBlue's API v3 Python Library @@ -16,7 +16,7 @@ For more information, please visit [https://account.sendinblue.com/support](http ## Requirements. -Compatible from Python version 2.7 to 3.5 +Compatible from Python version 2.7 to 3.5+ ## Installation & Usage ### pip install diff --git a/setup.py b/setup.py index 9131ba8..ec7faad 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "sib-api-v3-sdk" -VERSION = "7.0.0" +VERSION = "6.1.0" # To install the library, run the following # # python setup.py install