constant_contact_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +56 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +72 -0
- data/LICENSE +29 -0
- data/README.md +201 -0
- data/Rakefile +10 -0
- data/constant_contact_client.gemspec +39 -0
- data/docs/AccountServicesApi.md +593 -0
- data/docs/BulkActivitiesApi.md +1035 -0
- data/docs/ContactListsApi.md +461 -0
- data/docs/ContactTagsApi.md +382 -0
- data/docs/ContactsApi.md +701 -0
- data/docs/ContactsCustomFieldsApi.md +375 -0
- data/docs/ContactsReportingApi.md +244 -0
- data/docs/EmailCampaignsABTestsApi.md +227 -0
- data/docs/EmailCampaignsApi.md +826 -0
- data/docs/EmailReportingApi.md +925 -0
- data/docs/EmailSchedulingApi.md +447 -0
- data/docs/LandingPagesReportingApi.md +481 -0
- data/docs/SegmentsApi.md +452 -0
- data/lib/constant_contact_client/api/account_services_api.rb +546 -0
- data/lib/constant_contact_client/api/bulk_activities_api.rb +983 -0
- data/lib/constant_contact_client/api/contact_lists_api.rb +449 -0
- data/lib/constant_contact_client/api/contact_tags_api.rb +356 -0
- data/lib/constant_contact_client/api/contacts_api.rb +676 -0
- data/lib/constant_contact_client/api/contacts_custom_fields_api.rb +356 -0
- data/lib/constant_contact_client/api/contacts_reporting_api.rb +255 -0
- data/lib/constant_contact_client/api/email_campaigns_ab_tests_api.rb +220 -0
- data/lib/constant_contact_client/api/email_campaigns_api.rb +766 -0
- data/lib/constant_contact_client/api/email_reporting_api.rb +812 -0
- data/lib/constant_contact_client/api/email_scheduling_api.rb +418 -0
- data/lib/constant_contact_client/api/landing_pages_reporting_api.rb +436 -0
- data/lib/constant_contact_client/api/segments_api.rb +425 -0
- data/lib/constant_contact_client/api_client.rb +394 -0
- data/lib/constant_contact_client/api_error.rb +58 -0
- data/lib/constant_contact_client/configuration.rb +305 -0
- data/lib/constant_contact_client/models/ab_test_data.rb +256 -0
- data/lib/constant_contact_client/models/access_token_response.rb +265 -0
- data/lib/constant_contact_client/models/account_cancellation.rb +226 -0
- data/lib/constant_contact_client/models/account_email_create_response.rb +273 -0
- data/lib/constant_contact_client/models/account_email_input.rb +234 -0
- data/lib/constant_contact_client/models/account_physical_address.rb +409 -0
- data/lib/constant_contact_client/models/account_suspension.rb +289 -0
- data/lib/constant_contact_client/models/activities.rb +226 -0
- data/lib/constant_contact_client/models/activity.rb +316 -0
- data/lib/constant_contact_client/models/activity_delete_custom_fields.rb +297 -0
- data/lib/constant_contact_client/models/activity_delete_list_response.rb +276 -0
- data/lib/constant_contact_client/models/activity_delete_lists_response.rb +305 -0
- data/lib/constant_contact_client/models/activity_delete_status.rb +306 -0
- data/lib/constant_contact_client/models/activity_errors.rb +215 -0
- data/lib/constant_contact_client/models/activity_export_status.rb +306 -0
- data/lib/constant_contact_client/models/activity_generic.rb +299 -0
- data/lib/constant_contact_client/models/activity_generic_status.rb +225 -0
- data/lib/constant_contact_client/models/activity_import.rb +316 -0
- data/lib/constant_contact_client/models/activity_links.rb +223 -0
- data/lib/constant_contact_client/models/activity_lists_membership.rb +305 -0
- data/lib/constant_contact_client/models/activity_reference.rb +225 -0
- data/lib/constant_contact_client/models/activity_status.rb +275 -0
- data/lib/constant_contact_client/models/activity_status_export_link.rb +223 -0
- data/lib/constant_contact_client/models/activity_status_link.rb +214 -0
- data/lib/constant_contact_client/models/activity_tagging.rb +319 -0
- data/lib/constant_contact_client/models/activity_tagging_status.rb +226 -0
- data/lib/constant_contact_client/models/add_account_email_address201_response.rb +273 -0
- data/lib/constant_contact_client/models/add_account_email_address_request.rb +234 -0
- data/lib/constant_contact_client/models/api_error_schema_inner.rb +225 -0
- data/lib/constant_contact_client/models/authorization_error_schema.rb +225 -0
- data/lib/constant_contact_client/models/bounces_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/bounces_tracking_activity.rb +347 -0
- data/lib/constant_contact_client/models/bulk_email_campaign_summaries_page.rb +249 -0
- data/lib/constant_contact_client/models/bulk_email_campaign_summaries_percents.rb +255 -0
- data/lib/constant_contact_client/models/bulk_email_campaign_summary.rb +272 -0
- data/lib/constant_contact_client/models/campaign_activity_stats_query_result_email.rb +229 -0
- data/lib/constant_contact_client/models/campaign_activity_stats_result_generic_stats_email_activity.rb +244 -0
- data/lib/constant_contact_client/models/campaign_activity_summary.rb +341 -0
- data/lib/constant_contact_client/models/campaign_stats_query_result_email.rb +229 -0
- data/lib/constant_contact_client/models/campaign_stats_result_generic_stats_email_percents_email.rb +243 -0
- data/lib/constant_contact_client/models/clicks_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/clicks_tracking_activity.rb +364 -0
- data/lib/constant_contact_client/models/company_logo.rb +235 -0
- data/lib/constant_contact_client/models/contact_campaign_activities_summary.rb +250 -0
- data/lib/constant_contact_client/models/contact_create_or_update_input.rb +503 -0
- data/lib/constant_contact_client/models/contact_create_or_update_response.rb +225 -0
- data/lib/constant_contact_client/models/contact_custom_field.rb +259 -0
- data/lib/constant_contact_client/models/contact_delete.rb +267 -0
- data/lib/constant_contact_client/models/contact_list.rb +301 -0
- data/lib/constant_contact_client/models/contact_list_array.rb +235 -0
- data/lib/constant_contact_client/models/contact_list_put_post.rb +291 -0
- data/lib/constant_contact_client/models/contact_open_and_click_rates.rb +274 -0
- data/lib/constant_contact_client/models/contact_post_request.rb +575 -0
- data/lib/constant_contact_client/models/contact_put_request.rb +582 -0
- data/lib/constant_contact_client/models/contact_resource.rb +635 -0
- data/lib/constant_contact_client/models/contact_tracking_activities_page.rb +227 -0
- data/lib/constant_contact_client/models/contact_tracking_activity.rb +270 -0
- data/lib/constant_contact_client/models/contact_xref.rb +226 -0
- data/lib/constant_contact_client/models/contact_xrefs.rb +236 -0
- data/lib/constant_contact_client/models/contacts.rb +246 -0
- data/lib/constant_contact_client/models/contacts_counts.rb +265 -0
- data/lib/constant_contact_client/models/contacts_export.rb +300 -0
- data/lib/constant_contact_client/models/contacts_json_import.rb +281 -0
- data/lib/constant_contact_client/models/create_contact_request.rb +575 -0
- data/lib/constant_contact_client/models/create_contact_request_email_address.rb +252 -0
- data/lib/constant_contact_client/models/create_csv_import_activity201_response.rb +316 -0
- data/lib/constant_contact_client/models/create_csv_import_activity201_response_links.rb +214 -0
- data/lib/constant_contact_client/models/create_csv_import_activity201_response_status.rb +255 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response.rb +306 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response_links.rb +214 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response_links_self.rb +215 -0
- data/lib/constant_contact_client/models/create_delete_activity201_response_status.rb +235 -0
- data/lib/constant_contact_client/models/create_delete_activity_request.rb +267 -0
- data/lib/constant_contact_client/models/create_email_campaign200_response.rb +306 -0
- data/lib/constant_contact_client/models/create_email_campaign200_response_campaign_activities_inner.rb +225 -0
- data/lib/constant_contact_client/models/create_email_campaign_request.rb +260 -0
- data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner.rb +402 -0
- data/lib/constant_contact_client/models/create_email_campaign_request_email_campaign_activities_inner_physical_address_in_footer.rb +347 -0
- data/lib/constant_contact_client/models/create_export_activity201_response.rb +306 -0
- data/lib/constant_contact_client/models/create_export_activity201_response_status.rb +225 -0
- data/lib/constant_contact_client/models/create_export_activity_request.rb +300 -0
- data/lib/constant_contact_client/models/create_import_json_activity_request.rb +281 -0
- data/lib/constant_contact_client/models/create_import_json_activity_request_import_data_inner.rb +1315 -0
- data/lib/constant_contact_client/models/create_list_add_activity_request.rb +268 -0
- data/lib/constant_contact_client/models/create_list_add_activity_request_exclude.rb +217 -0
- data/lib/constant_contact_client/models/create_list_add_activity_request_source.rb +331 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response.rb +305 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_links.rb +214 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_links_self.rb +215 -0
- data/lib/constant_contact_client/models/create_list_delete_activity201_response_status.rb +215 -0
- data/lib/constant_contact_client/models/create_list_delete_activity_request.rb +243 -0
- data/lib/constant_contact_client/models/create_list_remove_activity201_response.rb +305 -0
- data/lib/constant_contact_client/models/create_list_remove_activity201_response_status.rb +235 -0
- data/lib/constant_contact_client/models/create_list_remove_activity_request.rb +268 -0
- data/lib/constant_contact_client/models/create_list_remove_activity_request_exclude.rb +217 -0
- data/lib/constant_contact_client/models/create_list_remove_activity_request_source.rb +321 -0
- data/lib/constant_contact_client/models/create_or_update_contact200_response.rb +225 -0
- data/lib/constant_contact_client/models/create_or_update_contact_custom_field.rb +244 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request.rb +503 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request_custom_fields_inner.rb +244 -0
- data/lib/constant_contact_client/models/create_or_update_contact_request_street_address.rb +367 -0
- data/lib/constant_contact_client/models/create_resend_email_campaign201_response.rb +255 -0
- data/lib/constant_contact_client/models/create_resend_email_campaign_request.rb +242 -0
- data/lib/constant_contact_client/models/create_segment201_response.rb +274 -0
- data/lib/constant_contact_client/models/create_segment_request.rb +258 -0
- data/lib/constant_contact_client/models/create_tag_delete_activity_request.rb +243 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response.rb +319 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links.rb +223 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_results.rb +215 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_links_self.rb +214 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity201_response_status.rb +226 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity_request.rb +268 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity_request_exclude.rb +218 -0
- data/lib/constant_contact_client/models/create_tag_remove_activity_request_source.rb +319 -0
- data/lib/constant_contact_client/models/cross_reference.rb +235 -0
- data/lib/constant_contact_client/models/cross_reference_response.rb +217 -0
- data/lib/constant_contact_client/models/custom_field_id100.rb +243 -0
- data/lib/constant_contact_client/models/custom_field_input.rb +258 -0
- data/lib/constant_contact_client/models/custom_field_resource.rb +318 -0
- data/lib/constant_contact_client/models/custom_fields.rb +245 -0
- data/lib/constant_contact_client/models/customer.rb +352 -0
- data/lib/constant_contact_client/models/customer_put.rb +334 -0
- data/lib/constant_contact_client/models/delete_list202_response.rb +276 -0
- data/lib/constant_contact_client/models/delete_tag202_response.rb +299 -0
- data/lib/constant_contact_client/models/delete_tag202_response_activity_errors_inner.rb +215 -0
- data/lib/constant_contact_client/models/delete_tag202_response_links.rb +214 -0
- data/lib/constant_contact_client/models/delete_tag202_response_links_self.rb +215 -0
- data/lib/constant_contact_client/models/delete_tag202_response_status.rb +225 -0
- data/lib/constant_contact_client/models/device_flow_response.rb +265 -0
- data/lib/constant_contact_client/models/did_not_opens_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/did_not_opens_tracking_activity.rb +320 -0
- data/lib/constant_contact_client/models/email_address.rb +351 -0
- data/lib/constant_contact_client/models/email_address_post.rb +252 -0
- data/lib/constant_contact_client/models/email_address_put.rb +341 -0
- data/lib/constant_contact_client/models/email_campaign.rb +306 -0
- data/lib/constant_contact_client/models/email_campaign_activity.rb +405 -0
- data/lib/constant_contact_client/models/email_campaign_activity_input.rb +402 -0
- data/lib/constant_contact_client/models/email_campaign_activity_preview.rb +285 -0
- data/lib/constant_contact_client/models/email_campaign_complete.rb +260 -0
- data/lib/constant_contact_client/models/email_campaign_name.rb +241 -0
- data/lib/constant_contact_client/models/email_campaigns.rb +294 -0
- data/lib/constant_contact_client/models/email_link_click_count.rb +265 -0
- data/lib/constant_contact_client/models/email_links.rb +227 -0
- data/lib/constant_contact_client/models/email_physical_address.rb +346 -0
- data/lib/constant_contact_client/models/email_schedule_input.rb +222 -0
- data/lib/constant_contact_client/models/email_test_send_input.rb +253 -0
- data/lib/constant_contact_client/models/emails_link.rb +214 -0
- data/lib/constant_contact_client/models/emails_paging_links.rb +214 -0
- data/lib/constant_contact_client/models/file_object.rb +384 -0
- data/lib/constant_contact_client/models/file_status_array_inner.rb +235 -0
- data/lib/constant_contact_client/models/forwards_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/forwards_tracking_activity.rb +320 -0
- data/lib/constant_contact_client/models/get_ab_test_email_campaign200_response.rb +256 -0
- data/lib/constant_contact_client/models/get_account_details200_response.rb +352 -0
- data/lib/constant_contact_client/models/get_account_details200_response_company_logo.rb +236 -0
- data/lib/constant_contact_client/models/get_account_details200_response_physical_address.rb +409 -0
- data/lib/constant_contact_client/models/get_activity_by_id200_response.rb +316 -0
- data/lib/constant_contact_client/models/get_all_account_email_addresses200_response_inner.rb +317 -0
- data/lib/constant_contact_client/models/get_all_activities200_response.rb +226 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner.rb +316 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links.rb +223 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_results.rb +215 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_links_self.rb +215 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_activities_inner_status.rb +275 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_links.rb +214 -0
- data/lib/constant_contact_client/models/get_all_activities200_response_links_next.rb +214 -0
- data/lib/constant_contact_client/models/get_all_contacts200_response.rb +246 -0
- data/lib/constant_contact_client/models/get_all_custom_fields200_response.rb +245 -0
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response.rb +225 -0
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response_campaigns_inner.rb +294 -0
- data/lib/constant_contact_client/models/get_all_email_campaigns200_response_links.rb +214 -0
- data/lib/constant_contact_client/models/get_all_lists200_response.rb +235 -0
- data/lib/constant_contact_client/models/get_all_segments200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_all_segments200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_all_segments200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_all_segments200_response_segments_inner.rb +245 -0
- data/lib/constant_contact_client/models/get_all_tags200_response.rb +226 -0
- data/lib/constant_contact_client/models/get_all_tags200_response_links.rb +215 -0
- data/lib/constant_contact_client/models/get_all_tags200_response_links_next.rb +224 -0
- data/lib/constant_contact_client/models/get_all_tags200_response_links_next_next.rb +223 -0
- data/lib/constant_contact_client/models/get_bounces_report200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_bounces_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_bounces_report200_response_tracking_activities_inner.rb +347 -0
- data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response.rb +227 -0
- data/lib/constant_contact_client/models/get_campaign_activity_link_report200_response_link_click_counts_inner.rb +265 -0
- data/lib/constant_contact_client/models/get_clicks_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_clicks_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_clicks_report200_response_tracking_activities_inner.rb +364 -0
- data/lib/constant_contact_client/models/get_contact_adds200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_contact_adds200_response_tracking_activities_inner.rb +329 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response.rb +635 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_custom_fields_inner.rb +259 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_email_address.rb +351 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_notes_inner.rb +255 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_phone_numbers_inner.rb +294 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel.rb +278 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_sms_channel_sms_channel_consents_inner.rb +285 -0
- data/lib/constant_contact_client/models/get_contact_by_id200_response_street_addresses_inner.rb +397 -0
- data/lib/constant_contact_client/models/get_contact_counts200_response.rb +265 -0
- data/lib/constant_contact_client/models/get_contact_id_xrefs200_response.rb +236 -0
- data/lib/constant_contact_client/models/get_contact_id_xrefs200_response_xrefs_inner.rb +226 -0
- data/lib/constant_contact_client/models/get_contact_open_click_rate_report200_response.rb +274 -0
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response.rb +250 -0
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_campaign_activities_inner.rb +341 -0
- data/lib/constant_contact_client/models/get_contact_tracking_count_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response.rb +227 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_contact_tracking_report200_response_tracking_activities_inner.rb +270 -0
- data/lib/constant_contact_client/models/get_custom_field200_response.rb +318 -0
- data/lib/constant_contact_client/models/get_did_not_opens_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_did_not_opens_report200_response_tracking_activities_inner.rb +320 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response.rb +405 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response_document_properties.rb +520 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity200_response_physical_address_in_footer.rb +347 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_preview200_response.rb +285 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response.rb +229 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner.rb +244 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_report200_response_results_inner_stats.rb +476 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_schedule200_response_inner.rb +215 -0
- data/lib/constant_contact_client/models/get_email_campaign_activity_send_history200_response_inner.rb +298 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response.rb +249 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_aggregate_percents.rb +256 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner.rb +272 -0
- data/lib/constant_contact_client/models/get_email_campaign_report200_response_bulk_email_campaign_summaries_inner_unique_counts.rb +342 -0
- data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response.rb +217 -0
- data/lib/constant_contact_client/models/get_email_campaign_xrefs200_response_xrefs_inner.rb +235 -0
- data/lib/constant_contact_client/models/get_email_opens_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_email_opens_report200_response_tracking_activities_inner.rb +330 -0
- data/lib/constant_contact_client/models/get_email_sends_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_email_sends_report200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_email_sends_report200_response_tracking_activities_inner.rb +320 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response.rb +229 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_errors_inner.rb +225 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner.rb +243 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_percents.rb +296 -0
- data/lib/constant_contact_client/models/get_email_stats_report200_response_results_inner_stats.rb +396 -0
- data/lib/constant_contact_client/models/get_forwards_report200_response.rb +233 -0
- data/lib/constant_contact_client/models/get_forwards_report200_response_tracking_activities_inner.rb +320 -0
- data/lib/constant_contact_client/models/get_list200_response.rb +301 -0
- data/lib/constant_contact_client/models/get_list_id_xrefs200_response.rb +236 -0
- data/lib/constant_contact_client/models/get_list_id_xrefs200_response_xrefs_inner.rb +226 -0
- data/lib/constant_contact_client/models/get_optouts_report200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_optouts_report200_response_tracking_activities_inner.rb +330 -0
- data/lib/constant_contact_client/models/get_resend_email_campaign200_response_inner.rb +265 -0
- data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner.rb +255 -0
- data/lib/constant_contact_client/models/get_sms_engagement_history200_response_inner_history_details.rb +316 -0
- data/lib/constant_contact_client/models/get_tag200_response.rb +265 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links.rb +222 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_links_next.rb +223 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner.rb +366 -0
- data/lib/constant_contact_client/models/get_unique_contact_clicks200_response_tracking_activities_inner_sms_channel.rb +246 -0
- data/lib/constant_contact_client/models/get_unique_contact_opens200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_opens200_response_tracking_activities_inner.rb +339 -0
- data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_sms_opt_ins200_response_tracking_activities_inner.rb +329 -0
- data/lib/constant_contact_client/models/get_unique_contact_updates200_response.rb +240 -0
- data/lib/constant_contact_client/models/get_unique_contact_updates200_response_tracking_activities_inner.rb +329 -0
- data/lib/constant_contact_client/models/get_user_privileges200_response_inner.rb +225 -0
- data/lib/constant_contact_client/models/headers_object.rb +225 -0
- data/lib/constant_contact_client/models/history_details.rb +316 -0
- data/lib/constant_contact_client/models/json_import_contact.rb +1315 -0
- data/lib/constant_contact_client/models/link.rb +214 -0
- data/lib/constant_contact_client/models/links.rb +221 -0
- data/lib/constant_contact_client/models/list_activity_add_contacts.rb +268 -0
- data/lib/constant_contact_client/models/list_activity_remove_contacts.rb +268 -0
- data/lib/constant_contact_client/models/list_id_list100.rb +243 -0
- data/lib/constant_contact_client/models/list_input.rb +263 -0
- data/lib/constant_contact_client/models/list_xref.rb +226 -0
- data/lib/constant_contact_client/models/list_xrefs.rb +236 -0
- data/lib/constant_contact_client/models/lpreporting_links.rb +221 -0
- data/lib/constant_contact_client/models/lpreporting_next.rb +222 -0
- data/lib/constant_contact_client/models/model_next.rb +222 -0
- data/lib/constant_contact_client/models/my_library_file_collection_inner.rb +384 -0
- data/lib/constant_contact_client/models/my_library_file_collection_inner_thumbnail.rb +235 -0
- data/lib/constant_contact_client/models/note.rb +255 -0
- data/lib/constant_contact_client/models/o_auth_error.rb +223 -0
- data/lib/constant_contact_client/models/opens_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/opens_tracking_activity.rb +330 -0
- data/lib/constant_contact_client/models/optouts_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/optouts_tracking_activity.rb +330 -0
- data/lib/constant_contact_client/models/p_contact_add_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_add_tracking_activity.rb +329 -0
- data/lib/constant_contact_client/models/p_contact_click_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_click_tracking_activity.rb +366 -0
- data/lib/constant_contact_client/models/p_contact_open_tracking_activity.rb +339 -0
- data/lib/constant_contact_client/models/p_contact_opens_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_sms_opt_in_tracking_activity.rb +329 -0
- data/lib/constant_contact_client/models/p_contact_update_tracking_activities_page.rb +240 -0
- data/lib/constant_contact_client/models/p_contact_update_tracking_activity.rb +329 -0
- data/lib/constant_contact_client/models/paged_email_campaign_response.rb +225 -0
- data/lib/constant_contact_client/models/pagination_links.rb +214 -0
- data/lib/constant_contact_client/models/pagination_links_next.rb +215 -0
- data/lib/constant_contact_client/models/paging_links.rb +214 -0
- data/lib/constant_contact_client/models/partner_account.rb +233 -0
- data/lib/constant_contact_client/models/partner_account_links.rb +215 -0
- data/lib/constant_contact_client/models/partner_account_operations_request.rb +286 -0
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_headers_inner.rb +225 -0
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_path_parameters_inner.rb +225 -0
- data/lib/constant_contact_client/models/partner_account_operations_request_account_operation_query_parameters_inner.rb +225 -0
- data/lib/constant_contact_client/models/partner_account_site_owner_list_inner.rb +265 -0
- data/lib/constant_contact_client/models/partners_link.rb +214 -0
- data/lib/constant_contact_client/models/patch_email_campaign_name_request.rb +241 -0
- data/lib/constant_contact_client/models/path_param_object.rb +225 -0
- data/lib/constant_contact_client/models/percents_email.rb +295 -0
- data/lib/constant_contact_client/models/phone_number.rb +294 -0
- data/lib/constant_contact_client/models/phone_number_put.rb +244 -0
- data/lib/constant_contact_client/models/plan_info.rb +236 -0
- data/lib/constant_contact_client/models/plan_tiers_object.rb +248 -0
- data/lib/constant_contact_client/models/plan_tiers_object_current_tiers_inner.rb +278 -0
- data/lib/constant_contact_client/models/post_custom_field_delete201_response.rb +297 -0
- data/lib/constant_contact_client/models/post_custom_field_delete_request.rb +243 -0
- data/lib/constant_contact_client/models/post_tag_request.rb +260 -0
- data/lib/constant_contact_client/models/provision.rb +723 -0
- data/lib/constant_contact_client/models/provision_response.rb +225 -0
- data/lib/constant_contact_client/models/put_tag_request.rb +250 -0
- data/lib/constant_contact_client/models/query_param_object.rb +225 -0
- data/lib/constant_contact_client/models/reporting_links.rb +221 -0
- data/lib/constant_contact_client/models/reporting_next.rb +222 -0
- data/lib/constant_contact_client/models/resend_to_non_openers_input.rb +242 -0
- data/lib/constant_contact_client/models/resend_to_non_openers_object.rb +255 -0
- data/lib/constant_contact_client/models/schedule_email_campaign_activity_request.rb +222 -0
- data/lib/constant_contact_client/models/segment_data.rb +258 -0
- data/lib/constant_contact_client/models/segment_detail.rb +274 -0
- data/lib/constant_contact_client/models/segment_master.rb +245 -0
- data/lib/constant_contact_client/models/segment_name.rb +222 -0
- data/lib/constant_contact_client/models/segments_dto.rb +233 -0
- data/lib/constant_contact_client/models/sends_tracking_activities_page.rb +233 -0
- data/lib/constant_contact_client/models/sends_tracking_activity.rb +320 -0
- data/lib/constant_contact_client/models/sms_channel_consent_details.rb +285 -0
- data/lib/constant_contact_client/models/sso_user.rb +439 -0
- data/lib/constant_contact_client/models/stats_email.rb +395 -0
- data/lib/constant_contact_client/models/stats_email_activity.rb +475 -0
- data/lib/constant_contact_client/models/stats_error.rb +225 -0
- data/lib/constant_contact_client/models/street_address.rb +397 -0
- data/lib/constant_contact_client/models/street_address_put.rb +367 -0
- data/lib/constant_contact_client/models/tag.rb +265 -0
- data/lib/constant_contact_client/models/tag_add_remove_contacts.rb +268 -0
- data/lib/constant_contact_client/models/tag_id_list500_limit.rb +243 -0
- data/lib/constant_contact_client/models/tag_post.rb +260 -0
- data/lib/constant_contact_client/models/tag_put.rb +250 -0
- data/lib/constant_contact_client/models/tags.rb +226 -0
- data/lib/constant_contact_client/models/tags_activity_links.rb +214 -0
- data/lib/constant_contact_client/models/tags_links.rb +223 -0
- data/lib/constant_contact_client/models/tags_paging_links.rb +214 -0
- data/lib/constant_contact_client/models/test_send_email_campaign_activity_request.rb +253 -0
- data/lib/constant_contact_client/models/tier_object.rb +278 -0
- data/lib/constant_contact_client/models/tracking_activity_sms_channel_dto.rb +245 -0
- data/lib/constant_contact_client/models/unique_email_counts.rb +341 -0
- data/lib/constant_contact_client/models/update_account_request.rb +334 -0
- data/lib/constant_contact_client/models/update_contact_request.rb +582 -0
- data/lib/constant_contact_client/models/update_contact_request_email_address.rb +341 -0
- data/lib/constant_contact_client/models/update_contact_request_phone_numbers_inner.rb +244 -0
- data/lib/constant_contact_client/models/update_contact_request_street_addresses_inner.rb +367 -0
- data/lib/constant_contact_client/models/update_custom_field_request.rb +258 -0
- data/lib/constant_contact_client/models/update_list200_response.rb +291 -0
- data/lib/constant_contact_client/models/update_list_request.rb +263 -0
- data/lib/constant_contact_client/models/update_segment_name_request.rb +222 -0
- data/lib/constant_contact_client/models/webhooks_subscription_body.rb +215 -0
- data/lib/constant_contact_client/models/webhooks_subscription_collection_inner.rb +245 -0
- data/lib/constant_contact_client/models/webhooks_subscription_put_resp.rb +225 -0
- data/lib/constant_contact_client/models/webhooks_subscription_response.rb +245 -0
- data/lib/constant_contact_client/models/webhooks_test_send.rb +245 -0
- data/lib/constant_contact_client/version.rb +15 -0
- data/lib/constant_contact_client.rb +417 -0
- data/spec/spec_helper.rb +111 -0
- metadata +488 -0
@@ -0,0 +1,766 @@
|
|
1
|
+
=begin
|
2
|
+
#Constant Contact API v3
|
3
|
+
|
4
|
+
#Swagger build version 3.0.2475
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.101
|
7
|
+
Contact: webservices@constantcontact.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module ConstantContactClient
|
16
|
+
class EmailCampaignsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# POST (Create) a New Email Campaign
|
23
|
+
# Use this method to create a new email campaign. This method also creates new `primary_email` and `permalink` email campaign activities and associates them with the new email campaign. The request body must contain the `name` property and the `email_campaign_activities` array. The `name` must be unique. The `email_campaign_activities` array contains the main content of your email campaign and must include `format_type`, `from_name`, `from_email`, `reply_to_email`, `subject`, and `html_content` properties. The `from_email` address you use must use a verified email address for your account. NOTE: If you create an email campaign using a legacy (V7) format, Constant Contact automatically converts it to the newer custom code format.
|
24
|
+
# @param create_email_campaign_request [CreateEmailCampaignRequest] A JSON request body that contains the email content.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [CreateEmailCampaign200Response]
|
27
|
+
def create_email_campaign(create_email_campaign_request, opts = {})
|
28
|
+
data, _status_code, _headers = create_email_campaign_with_http_info(create_email_campaign_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# POST (Create) a New Email Campaign
|
33
|
+
# Use this method to create a new email campaign. This method also creates new `primary_email` and `permalink` email campaign activities and associates them with the new email campaign. The request body must contain the `name` property and the `email_campaign_activities` array. The `name` must be unique. The `email_campaign_activities` array contains the main content of your email campaign and must include `format_type`, `from_name`, `from_email`, `reply_to_email`, `subject`, and `html_content` properties. The `from_email` address you use must use a verified email address for your account. NOTE: If you create an email campaign using a legacy (V7) format, Constant Contact automatically converts it to the newer custom code format.
|
34
|
+
# @param create_email_campaign_request [CreateEmailCampaignRequest] A JSON request body that contains the email content.
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(CreateEmailCampaign200Response, Integer, Hash)>] CreateEmailCampaign200Response data, response status code and response headers
|
37
|
+
def create_email_campaign_with_http_info(create_email_campaign_request, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.create_email_campaign ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'create_email_campaign_request' is set
|
42
|
+
if @api_client.config.client_side_validation && create_email_campaign_request.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'create_email_campaign_request' when calling EmailCampaignsApi.create_email_campaign"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/emails'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = opts[:form_params] || {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_email_campaign_request)
|
66
|
+
|
67
|
+
# return_type
|
68
|
+
return_type = opts[:debug_return_type] || 'CreateEmailCampaign200Response'
|
69
|
+
|
70
|
+
# auth_names
|
71
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
72
|
+
|
73
|
+
new_options = opts.merge(
|
74
|
+
:operation => :"EmailCampaignsApi.create_email_campaign",
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#create_email_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# POST a Resend to Non-openers Campaign Activity
|
91
|
+
# Use this POST method to resend a primary campaign activity to contacts that did not open a campaign activity that has a current `status` of `Draft`, `Scheduled`, or `Done`. You can only create one resend activity per email campaign. After an email campaign activity is sent to contacts, Constant Contact waits the specified number of `delay_days` or `delay_minutes` (properties are mutually exclusive) before resending to non-openers. If you set both `delay_days` or `delay_minutes`, `delay_minutes` is ignored in the request. You can resend to non-openers a minimum of twelve hours (720 minutes) and a maximum of up to 10 days (or 10 x 1440 minutes) after the initial send date.
|
92
|
+
# @param campaign_activity_id [String] The unique ID for the primary email campaign activity.
|
93
|
+
# @param create_resend_email_campaign_request [CreateResendEmailCampaignRequest] A JSON request body that specifies when to resend the campaign activity to non-openers.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [CreateResendEmailCampaign201Response]
|
96
|
+
def create_resend_email_campaign(campaign_activity_id, create_resend_email_campaign_request, opts = {})
|
97
|
+
data, _status_code, _headers = create_resend_email_campaign_with_http_info(campaign_activity_id, create_resend_email_campaign_request, opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# POST a Resend to Non-openers Campaign Activity
|
102
|
+
# Use this POST method to resend a primary campaign activity to contacts that did not open a campaign activity that has a current `status` of `Draft`, `Scheduled`, or `Done`. You can only create one resend activity per email campaign. After an email campaign activity is sent to contacts, Constant Contact waits the specified number of `delay_days` or `delay_minutes` (properties are mutually exclusive) before resending to non-openers. If you set both `delay_days` or `delay_minutes`, `delay_minutes` is ignored in the request. You can resend to non-openers a minimum of twelve hours (720 minutes) and a maximum of up to 10 days (or 10 x 1440 minutes) after the initial send date.
|
103
|
+
# @param campaign_activity_id [String] The unique ID for the primary email campaign activity.
|
104
|
+
# @param create_resend_email_campaign_request [CreateResendEmailCampaignRequest] A JSON request body that specifies when to resend the campaign activity to non-openers.
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(CreateResendEmailCampaign201Response, Integer, Hash)>] CreateResendEmailCampaign201Response data, response status code and response headers
|
107
|
+
def create_resend_email_campaign_with_http_info(campaign_activity_id, create_resend_email_campaign_request, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.create_resend_email_campaign ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'campaign_activity_id' is set
|
112
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailCampaignsApi.create_resend_email_campaign"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'create_resend_email_campaign_request' is set
|
116
|
+
if @api_client.config.client_side_validation && create_resend_email_campaign_request.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'create_resend_email_campaign_request' when calling EmailCampaignsApi.create_resend_email_campaign"
|
118
|
+
end
|
119
|
+
# resource path
|
120
|
+
local_var_path = '/emails/activities/{campaign_activity_id}/non_opener_resends'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
121
|
+
|
122
|
+
# query parameters
|
123
|
+
query_params = opts[:query_params] || {}
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = opts[:header_params] || {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
131
|
+
if !content_type.nil?
|
132
|
+
header_params['Content-Type'] = content_type
|
133
|
+
end
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = opts[:form_params] || {}
|
137
|
+
|
138
|
+
# http body (model)
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_resend_email_campaign_request)
|
140
|
+
|
141
|
+
# return_type
|
142
|
+
return_type = opts[:debug_return_type] || 'CreateResendEmailCampaign201Response'
|
143
|
+
|
144
|
+
# auth_names
|
145
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
146
|
+
|
147
|
+
new_options = opts.merge(
|
148
|
+
:operation => :"EmailCampaignsApi.create_resend_email_campaign",
|
149
|
+
:header_params => header_params,
|
150
|
+
:query_params => query_params,
|
151
|
+
:form_params => form_params,
|
152
|
+
:body => post_body,
|
153
|
+
:auth_names => auth_names,
|
154
|
+
:return_type => return_type
|
155
|
+
)
|
156
|
+
|
157
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#create_resend_email_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# DELETE an Email Campaign
|
165
|
+
# Use this method to delete an email campaign and the email campaign activities associated with the email campaign. You cannot delete an email campaign when it has a `Scheduled` status. Constant Contact users can restore deleted email campaigns using the UI.
|
166
|
+
# @param campaign_id [String] The unique ID for the email campaign you are deleting.
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @return [nil]
|
169
|
+
def delete_email_campaign(campaign_id, opts = {})
|
170
|
+
delete_email_campaign_with_http_info(campaign_id, opts)
|
171
|
+
nil
|
172
|
+
end
|
173
|
+
|
174
|
+
# DELETE an Email Campaign
|
175
|
+
# Use this method to delete an email campaign and the email campaign activities associated with the email campaign. You cannot delete an email campaign when it has a `Scheduled` status. Constant Contact users can restore deleted email campaigns using the UI.
|
176
|
+
# @param campaign_id [String] The unique ID for the email campaign you are deleting.
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
179
|
+
def delete_email_campaign_with_http_info(campaign_id, opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.delete_email_campaign ...'
|
182
|
+
end
|
183
|
+
# verify the required parameter 'campaign_id' is set
|
184
|
+
if @api_client.config.client_side_validation && campaign_id.nil?
|
185
|
+
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling EmailCampaignsApi.delete_email_campaign"
|
186
|
+
end
|
187
|
+
# resource path
|
188
|
+
local_var_path = '/emails/{campaign_id}'.sub('{' + 'campaign_id' + '}', CGI.escape(campaign_id.to_s))
|
189
|
+
|
190
|
+
# query parameters
|
191
|
+
query_params = opts[:query_params] || {}
|
192
|
+
|
193
|
+
# header parameters
|
194
|
+
header_params = opts[:header_params] || {}
|
195
|
+
|
196
|
+
# form parameters
|
197
|
+
form_params = opts[:form_params] || {}
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = opts[:debug_body]
|
201
|
+
|
202
|
+
# return_type
|
203
|
+
return_type = opts[:debug_return_type]
|
204
|
+
|
205
|
+
# auth_names
|
206
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
207
|
+
|
208
|
+
new_options = opts.merge(
|
209
|
+
:operation => :"EmailCampaignsApi.delete_email_campaign",
|
210
|
+
:header_params => header_params,
|
211
|
+
:query_params => query_params,
|
212
|
+
:form_params => form_params,
|
213
|
+
:body => post_body,
|
214
|
+
:auth_names => auth_names,
|
215
|
+
:return_type => return_type
|
216
|
+
)
|
217
|
+
|
218
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
219
|
+
if @api_client.config.debugging
|
220
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#delete_email_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
221
|
+
end
|
222
|
+
return data, status_code, headers
|
223
|
+
end
|
224
|
+
|
225
|
+
# DELETE a Resend to Non Openers Activity
|
226
|
+
# Use this `DELETE` method to delete (unschedule) a resend to non openers activity.
|
227
|
+
# @param campaign_activity_id [String] The unique ID for the primary email campaign activity.
|
228
|
+
# @param resend_request_id [String] The unique ID associated with the resend for the email campaign activity (for example: `389093`). If the email campaign activity is currently in draft status, specify `DRAFT` as the ID.
|
229
|
+
# @param [Hash] opts the optional parameters
|
230
|
+
# @return [nil]
|
231
|
+
def delete_resend_email_campaign(campaign_activity_id, resend_request_id, opts = {})
|
232
|
+
delete_resend_email_campaign_with_http_info(campaign_activity_id, resend_request_id, opts)
|
233
|
+
nil
|
234
|
+
end
|
235
|
+
|
236
|
+
# DELETE a Resend to Non Openers Activity
|
237
|
+
# Use this `DELETE` method to delete (unschedule) a resend to non openers activity.
|
238
|
+
# @param campaign_activity_id [String] The unique ID for the primary email campaign activity.
|
239
|
+
# @param resend_request_id [String] The unique ID associated with the resend for the email campaign activity (for example: `389093`). If the email campaign activity is currently in draft status, specify `DRAFT` as the ID.
|
240
|
+
# @param [Hash] opts the optional parameters
|
241
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
242
|
+
def delete_resend_email_campaign_with_http_info(campaign_activity_id, resend_request_id, opts = {})
|
243
|
+
if @api_client.config.debugging
|
244
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.delete_resend_email_campaign ...'
|
245
|
+
end
|
246
|
+
# verify the required parameter 'campaign_activity_id' is set
|
247
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
248
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailCampaignsApi.delete_resend_email_campaign"
|
249
|
+
end
|
250
|
+
# verify the required parameter 'resend_request_id' is set
|
251
|
+
if @api_client.config.client_side_validation && resend_request_id.nil?
|
252
|
+
fail ArgumentError, "Missing the required parameter 'resend_request_id' when calling EmailCampaignsApi.delete_resend_email_campaign"
|
253
|
+
end
|
254
|
+
# resource path
|
255
|
+
local_var_path = '/emails/activities/{campaign_activity_id}/non_opener_resends/{resend_request_id}'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s)).sub('{' + 'resend_request_id' + '}', CGI.escape(resend_request_id.to_s))
|
256
|
+
|
257
|
+
# query parameters
|
258
|
+
query_params = opts[:query_params] || {}
|
259
|
+
|
260
|
+
# header parameters
|
261
|
+
header_params = opts[:header_params] || {}
|
262
|
+
|
263
|
+
# form parameters
|
264
|
+
form_params = opts[:form_params] || {}
|
265
|
+
|
266
|
+
# http body (model)
|
267
|
+
post_body = opts[:debug_body]
|
268
|
+
|
269
|
+
# return_type
|
270
|
+
return_type = opts[:debug_return_type]
|
271
|
+
|
272
|
+
# auth_names
|
273
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
274
|
+
|
275
|
+
new_options = opts.merge(
|
276
|
+
:operation => :"EmailCampaignsApi.delete_resend_email_campaign",
|
277
|
+
:header_params => header_params,
|
278
|
+
:query_params => query_params,
|
279
|
+
:form_params => form_params,
|
280
|
+
:body => post_body,
|
281
|
+
:auth_names => auth_names,
|
282
|
+
:return_type => return_type
|
283
|
+
)
|
284
|
+
|
285
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#delete_resend_email_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
288
|
+
end
|
289
|
+
return data, status_code, headers
|
290
|
+
end
|
291
|
+
|
292
|
+
# GET a Collection of Email Campaigns
|
293
|
+
# Use this method to list and get details about your email campaigns. By default, this method returns all email campaigns for the user account including deleted email campaigns. To get email campaigns within a date-range, use the `after_date` and `before_date` query parameters. This endpoint does not return campaign activity details for each email campaign in the collection. To get email campaign activity details for a single email campaign, use the GET `/emails/{campaign_id}` endpoint.\" <div class=\"Msg\"><p class=\"note-text\">This method does not currently support filtering results using the email campaign creation date.</p></div>
|
294
|
+
# @param [Hash] opts the optional parameters
|
295
|
+
# @option opts [Integer] :limit Specifies the number of campaigns to display on each page of output that is returned (from return 1 - 500). The default returns 50 campaigns per page. (default to 50)
|
296
|
+
# @option opts [Time] :before_date Use to return email campaigns with `updated_at` timestamps that are before a specific date and time (in ISO-8601 format). Use with the `after_date` query parameter to get email campaigns sent within a specific date range.
|
297
|
+
# @option opts [Time] :after_date Use to return email campaigns with last `updated_at` timestamps that are after a specific date and time (in ISO-8601 format). Use with the `before_date` query parameter to get email campaigns sent within a specific date range.
|
298
|
+
# @return [GetAllEmailCampaigns200Response]
|
299
|
+
def get_all_email_campaigns(opts = {})
|
300
|
+
data, _status_code, _headers = get_all_email_campaigns_with_http_info(opts)
|
301
|
+
data
|
302
|
+
end
|
303
|
+
|
304
|
+
# GET a Collection of Email Campaigns
|
305
|
+
# Use this method to list and get details about your email campaigns. By default, this method returns all email campaigns for the user account including deleted email campaigns. To get email campaigns within a date-range, use the `after_date` and `before_date` query parameters. This endpoint does not return campaign activity details for each email campaign in the collection. To get email campaign activity details for a single email campaign, use the GET `/emails/{campaign_id}` endpoint.\" <div class=\"Msg\"><p class=\"note-text\">This method does not currently support filtering results using the email campaign creation date.</p></div>
|
306
|
+
# @param [Hash] opts the optional parameters
|
307
|
+
# @option opts [Integer] :limit Specifies the number of campaigns to display on each page of output that is returned (from return 1 - 500). The default returns 50 campaigns per page. (default to 50)
|
308
|
+
# @option opts [Time] :before_date Use to return email campaigns with `updated_at` timestamps that are before a specific date and time (in ISO-8601 format). Use with the `after_date` query parameter to get email campaigns sent within a specific date range.
|
309
|
+
# @option opts [Time] :after_date Use to return email campaigns with last `updated_at` timestamps that are after a specific date and time (in ISO-8601 format). Use with the `before_date` query parameter to get email campaigns sent within a specific date range.
|
310
|
+
# @return [Array<(GetAllEmailCampaigns200Response, Integer, Hash)>] GetAllEmailCampaigns200Response data, response status code and response headers
|
311
|
+
def get_all_email_campaigns_with_http_info(opts = {})
|
312
|
+
if @api_client.config.debugging
|
313
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.get_all_email_campaigns ...'
|
314
|
+
end
|
315
|
+
# resource path
|
316
|
+
local_var_path = '/emails'
|
317
|
+
|
318
|
+
# query parameters
|
319
|
+
query_params = opts[:query_params] || {}
|
320
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
321
|
+
query_params[:'before_date'] = opts[:'before_date'] if !opts[:'before_date'].nil?
|
322
|
+
query_params[:'after_date'] = opts[:'after_date'] if !opts[:'after_date'].nil?
|
323
|
+
|
324
|
+
# header parameters
|
325
|
+
header_params = opts[:header_params] || {}
|
326
|
+
# HTTP header 'Accept' (if needed)
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
328
|
+
|
329
|
+
# form parameters
|
330
|
+
form_params = opts[:form_params] || {}
|
331
|
+
|
332
|
+
# http body (model)
|
333
|
+
post_body = opts[:debug_body]
|
334
|
+
|
335
|
+
# return_type
|
336
|
+
return_type = opts[:debug_return_type] || 'GetAllEmailCampaigns200Response'
|
337
|
+
|
338
|
+
# auth_names
|
339
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
340
|
+
|
341
|
+
new_options = opts.merge(
|
342
|
+
:operation => :"EmailCampaignsApi.get_all_email_campaigns",
|
343
|
+
:header_params => header_params,
|
344
|
+
:query_params => query_params,
|
345
|
+
:form_params => form_params,
|
346
|
+
:body => post_body,
|
347
|
+
:auth_names => auth_names,
|
348
|
+
:return_type => return_type
|
349
|
+
)
|
350
|
+
|
351
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
352
|
+
if @api_client.config.debugging
|
353
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#get_all_email_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
end
|
355
|
+
return data, status_code, headers
|
356
|
+
end
|
357
|
+
|
358
|
+
# GET a Single Email Campaign Activity
|
359
|
+
# Use this method to return a specific email campaign activity. Each email campaign activity contains the email content, metadata, and styling information of an email. Email campaign activities can also contain either contact lists or segments. Constant Contact uses this information to determine who to send the email campaign activity to when you schedule it. You cannot get email campaign activities that have a `REMOVED` status.
|
360
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity.
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @option opts [String] :include Use the `include` query parameter to enter a comma separated list of additional email campaign activity properties for the V3 API to return. Valid values are `physical_address_in_footer`, `permalink_url`, `html_content`, and `document_properties`.
|
363
|
+
# @return [GetEmailCampaignActivity200Response]
|
364
|
+
def get_email_campaign_activity(campaign_activity_id, opts = {})
|
365
|
+
data, _status_code, _headers = get_email_campaign_activity_with_http_info(campaign_activity_id, opts)
|
366
|
+
data
|
367
|
+
end
|
368
|
+
|
369
|
+
# GET a Single Email Campaign Activity
|
370
|
+
# Use this method to return a specific email campaign activity. Each email campaign activity contains the email content, metadata, and styling information of an email. Email campaign activities can also contain either contact lists or segments. Constant Contact uses this information to determine who to send the email campaign activity to when you schedule it. You cannot get email campaign activities that have a `REMOVED` status.
|
371
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity.
|
372
|
+
# @param [Hash] opts the optional parameters
|
373
|
+
# @option opts [String] :include Use the `include` query parameter to enter a comma separated list of additional email campaign activity properties for the V3 API to return. Valid values are `physical_address_in_footer`, `permalink_url`, `html_content`, and `document_properties`.
|
374
|
+
# @return [Array<(GetEmailCampaignActivity200Response, Integer, Hash)>] GetEmailCampaignActivity200Response data, response status code and response headers
|
375
|
+
def get_email_campaign_activity_with_http_info(campaign_activity_id, opts = {})
|
376
|
+
if @api_client.config.debugging
|
377
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.get_email_campaign_activity ...'
|
378
|
+
end
|
379
|
+
# verify the required parameter 'campaign_activity_id' is set
|
380
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
381
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailCampaignsApi.get_email_campaign_activity"
|
382
|
+
end
|
383
|
+
allowable_values = ["physical_address_in_footer", "permalink_url", "html_content", "document_properties"]
|
384
|
+
if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include'])
|
385
|
+
fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}"
|
386
|
+
end
|
387
|
+
# resource path
|
388
|
+
local_var_path = '/emails/activities/{campaign_activity_id}'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
389
|
+
|
390
|
+
# query parameters
|
391
|
+
query_params = opts[:query_params] || {}
|
392
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
393
|
+
|
394
|
+
# header parameters
|
395
|
+
header_params = opts[:header_params] || {}
|
396
|
+
# HTTP header 'Accept' (if needed)
|
397
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
398
|
+
|
399
|
+
# form parameters
|
400
|
+
form_params = opts[:form_params] || {}
|
401
|
+
|
402
|
+
# http body (model)
|
403
|
+
post_body = opts[:debug_body]
|
404
|
+
|
405
|
+
# return_type
|
406
|
+
return_type = opts[:debug_return_type] || 'GetEmailCampaignActivity200Response'
|
407
|
+
|
408
|
+
# auth_names
|
409
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
410
|
+
|
411
|
+
new_options = opts.merge(
|
412
|
+
:operation => :"EmailCampaignsApi.get_email_campaign_activity",
|
413
|
+
:header_params => header_params,
|
414
|
+
:query_params => query_params,
|
415
|
+
:form_params => form_params,
|
416
|
+
:body => post_body,
|
417
|
+
:auth_names => auth_names,
|
418
|
+
:return_type => return_type
|
419
|
+
)
|
420
|
+
|
421
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
422
|
+
if @api_client.config.debugging
|
423
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#get_email_campaign_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
424
|
+
end
|
425
|
+
return data, status_code, headers
|
426
|
+
end
|
427
|
+
|
428
|
+
# GET Details About a Single Email Campaign
|
429
|
+
# Use this method to get details about a single email campaign and campaign related activities. Details include the email campaign name, current status, create date, last update date, and a list of campaign activities; including the `campaign_activity_id` and `role`.
|
430
|
+
# @param campaign_id [String] The ID (UUID format) that uniquely identifies this email campaign.
|
431
|
+
# @param [Hash] opts the optional parameters
|
432
|
+
# @return [CreateEmailCampaign200Response]
|
433
|
+
def get_email_campaign_by_id(campaign_id, opts = {})
|
434
|
+
data, _status_code, _headers = get_email_campaign_by_id_with_http_info(campaign_id, opts)
|
435
|
+
data
|
436
|
+
end
|
437
|
+
|
438
|
+
# GET Details About a Single Email Campaign
|
439
|
+
# Use this method to get details about a single email campaign and campaign related activities. Details include the email campaign name, current status, create date, last update date, and a list of campaign activities; including the `campaign_activity_id` and `role`.
|
440
|
+
# @param campaign_id [String] The ID (UUID format) that uniquely identifies this email campaign.
|
441
|
+
# @param [Hash] opts the optional parameters
|
442
|
+
# @return [Array<(CreateEmailCampaign200Response, Integer, Hash)>] CreateEmailCampaign200Response data, response status code and response headers
|
443
|
+
def get_email_campaign_by_id_with_http_info(campaign_id, opts = {})
|
444
|
+
if @api_client.config.debugging
|
445
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.get_email_campaign_by_id ...'
|
446
|
+
end
|
447
|
+
# verify the required parameter 'campaign_id' is set
|
448
|
+
if @api_client.config.client_side_validation && campaign_id.nil?
|
449
|
+
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling EmailCampaignsApi.get_email_campaign_by_id"
|
450
|
+
end
|
451
|
+
# resource path
|
452
|
+
local_var_path = '/emails/{campaign_id}'.sub('{' + 'campaign_id' + '}', CGI.escape(campaign_id.to_s))
|
453
|
+
|
454
|
+
# query parameters
|
455
|
+
query_params = opts[:query_params] || {}
|
456
|
+
|
457
|
+
# header parameters
|
458
|
+
header_params = opts[:header_params] || {}
|
459
|
+
# HTTP header 'Accept' (if needed)
|
460
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
461
|
+
|
462
|
+
# form parameters
|
463
|
+
form_params = opts[:form_params] || {}
|
464
|
+
|
465
|
+
# http body (model)
|
466
|
+
post_body = opts[:debug_body]
|
467
|
+
|
468
|
+
# return_type
|
469
|
+
return_type = opts[:debug_return_type] || 'CreateEmailCampaign200Response'
|
470
|
+
|
471
|
+
# auth_names
|
472
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
473
|
+
|
474
|
+
new_options = opts.merge(
|
475
|
+
:operation => :"EmailCampaignsApi.get_email_campaign_by_id",
|
476
|
+
:header_params => header_params,
|
477
|
+
:query_params => query_params,
|
478
|
+
:form_params => form_params,
|
479
|
+
:body => post_body,
|
480
|
+
:auth_names => auth_names,
|
481
|
+
:return_type => return_type
|
482
|
+
)
|
483
|
+
|
484
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
485
|
+
if @api_client.config.debugging
|
486
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#get_email_campaign_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
487
|
+
end
|
488
|
+
return data, status_code, headers
|
489
|
+
end
|
490
|
+
|
491
|
+
# GET a Collection of V2 and V3 API Email Campaign Identifiers
|
492
|
+
# <div class=\"Msg Msg--warning\"><p class=\"note-text\">Use this endpoint to migrate your locally stored V2 email campaign data to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.</p></div> Use this method to migrate your local V2 API email data to the V3 API format. For each value that you provide in the `v2_email_campaign_ids` query parameter, this method returns the corresponding V3 `campaign_id` and V3 `campaign_activity_id` UUID value. For more information on the changes to the email campaign resource model, see [V3 Email Campaign Resource Changes](/api_guide/v3_v2_email_campaign_deltas.html) in the API guide.
|
493
|
+
# @param v2_email_campaign_ids [String] Comma separated list of V2 API `campaignId` values. You can enter up to 50 V2 `campaignId` values in each request.
|
494
|
+
# @param [Hash] opts the optional parameters
|
495
|
+
# @return [GetEmailCampaignXrefs200Response]
|
496
|
+
def get_email_campaign_xrefs(v2_email_campaign_ids, opts = {})
|
497
|
+
data, _status_code, _headers = get_email_campaign_xrefs_with_http_info(v2_email_campaign_ids, opts)
|
498
|
+
data
|
499
|
+
end
|
500
|
+
|
501
|
+
# GET a Collection of V2 and V3 API Email Campaign Identifiers
|
502
|
+
# <div class=\"Msg Msg--warning\"><p class=\"note-text\">Use this endpoint to migrate your locally stored V2 email campaign data to the new V3 format. Developers are expected to use this endpoint sparingly. This endpoint is NOT intended for regular or repeated use. Constant Contact will eventually deprecate and remove this endpoint.</p></div> Use this method to migrate your local V2 API email data to the V3 API format. For each value that you provide in the `v2_email_campaign_ids` query parameter, this method returns the corresponding V3 `campaign_id` and V3 `campaign_activity_id` UUID value. For more information on the changes to the email campaign resource model, see [V3 Email Campaign Resource Changes](/api_guide/v3_v2_email_campaign_deltas.html) in the API guide.
|
503
|
+
# @param v2_email_campaign_ids [String] Comma separated list of V2 API `campaignId` values. You can enter up to 50 V2 `campaignId` values in each request.
|
504
|
+
# @param [Hash] opts the optional parameters
|
505
|
+
# @return [Array<(GetEmailCampaignXrefs200Response, Integer, Hash)>] GetEmailCampaignXrefs200Response data, response status code and response headers
|
506
|
+
def get_email_campaign_xrefs_with_http_info(v2_email_campaign_ids, opts = {})
|
507
|
+
if @api_client.config.debugging
|
508
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.get_email_campaign_xrefs ...'
|
509
|
+
end
|
510
|
+
# verify the required parameter 'v2_email_campaign_ids' is set
|
511
|
+
if @api_client.config.client_side_validation && v2_email_campaign_ids.nil?
|
512
|
+
fail ArgumentError, "Missing the required parameter 'v2_email_campaign_ids' when calling EmailCampaignsApi.get_email_campaign_xrefs"
|
513
|
+
end
|
514
|
+
# resource path
|
515
|
+
local_var_path = '/emails/campaign_id_xrefs'
|
516
|
+
|
517
|
+
# query parameters
|
518
|
+
query_params = opts[:query_params] || {}
|
519
|
+
query_params[:'v2_email_campaign_ids'] = v2_email_campaign_ids
|
520
|
+
|
521
|
+
# header parameters
|
522
|
+
header_params = opts[:header_params] || {}
|
523
|
+
# HTTP header 'Accept' (if needed)
|
524
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
525
|
+
|
526
|
+
# form parameters
|
527
|
+
form_params = opts[:form_params] || {}
|
528
|
+
|
529
|
+
# http body (model)
|
530
|
+
post_body = opts[:debug_body]
|
531
|
+
|
532
|
+
# return_type
|
533
|
+
return_type = opts[:debug_return_type] || 'GetEmailCampaignXrefs200Response'
|
534
|
+
|
535
|
+
# auth_names
|
536
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
537
|
+
|
538
|
+
new_options = opts.merge(
|
539
|
+
:operation => :"EmailCampaignsApi.get_email_campaign_xrefs",
|
540
|
+
:header_params => header_params,
|
541
|
+
:query_params => query_params,
|
542
|
+
:form_params => form_params,
|
543
|
+
:body => post_body,
|
544
|
+
:auth_names => auth_names,
|
545
|
+
:return_type => return_type
|
546
|
+
)
|
547
|
+
|
548
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
549
|
+
if @api_client.config.debugging
|
550
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#get_email_campaign_xrefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
551
|
+
end
|
552
|
+
return data, status_code, headers
|
553
|
+
end
|
554
|
+
|
555
|
+
# GET Details for a Resend to Non-openers Campaign Activity
|
556
|
+
# Get details about a resend to non-openers campaign activity. If resend activity does not exist for the specified `campaign_activity_id`, an empty list is returned in the results. You can only create one resend activity per email campaign.
|
557
|
+
# @param campaign_activity_id [String] The unique ID for the primary email campaign activity.
|
558
|
+
# @param [Hash] opts the optional parameters
|
559
|
+
# @return [Array<GetResendEmailCampaign200ResponseInner>]
|
560
|
+
def get_resend_email_campaign(campaign_activity_id, opts = {})
|
561
|
+
data, _status_code, _headers = get_resend_email_campaign_with_http_info(campaign_activity_id, opts)
|
562
|
+
data
|
563
|
+
end
|
564
|
+
|
565
|
+
# GET Details for a Resend to Non-openers Campaign Activity
|
566
|
+
# Get details about a resend to non-openers campaign activity. If resend activity does not exist for the specified `campaign_activity_id`, an empty list is returned in the results. You can only create one resend activity per email campaign.
|
567
|
+
# @param campaign_activity_id [String] The unique ID for the primary email campaign activity.
|
568
|
+
# @param [Hash] opts the optional parameters
|
569
|
+
# @return [Array<(Array<GetResendEmailCampaign200ResponseInner>, Integer, Hash)>] Array<GetResendEmailCampaign200ResponseInner> data, response status code and response headers
|
570
|
+
def get_resend_email_campaign_with_http_info(campaign_activity_id, opts = {})
|
571
|
+
if @api_client.config.debugging
|
572
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.get_resend_email_campaign ...'
|
573
|
+
end
|
574
|
+
# verify the required parameter 'campaign_activity_id' is set
|
575
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
576
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailCampaignsApi.get_resend_email_campaign"
|
577
|
+
end
|
578
|
+
# resource path
|
579
|
+
local_var_path = '/emails/activities/{campaign_activity_id}/non_opener_resends'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
580
|
+
|
581
|
+
# query parameters
|
582
|
+
query_params = opts[:query_params] || {}
|
583
|
+
|
584
|
+
# header parameters
|
585
|
+
header_params = opts[:header_params] || {}
|
586
|
+
# HTTP header 'Accept' (if needed)
|
587
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
588
|
+
|
589
|
+
# form parameters
|
590
|
+
form_params = opts[:form_params] || {}
|
591
|
+
|
592
|
+
# http body (model)
|
593
|
+
post_body = opts[:debug_body]
|
594
|
+
|
595
|
+
# return_type
|
596
|
+
return_type = opts[:debug_return_type] || 'Array<GetResendEmailCampaign200ResponseInner>'
|
597
|
+
|
598
|
+
# auth_names
|
599
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
600
|
+
|
601
|
+
new_options = opts.merge(
|
602
|
+
:operation => :"EmailCampaignsApi.get_resend_email_campaign",
|
603
|
+
:header_params => header_params,
|
604
|
+
:query_params => query_params,
|
605
|
+
:form_params => form_params,
|
606
|
+
:body => post_body,
|
607
|
+
:auth_names => auth_names,
|
608
|
+
:return_type => return_type
|
609
|
+
)
|
610
|
+
|
611
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
612
|
+
if @api_client.config.debugging
|
613
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#get_resend_email_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
614
|
+
end
|
615
|
+
return data, status_code, headers
|
616
|
+
end
|
617
|
+
|
618
|
+
# PATCH (Update) an Email Campaign Name
|
619
|
+
# Use this method to rename an email campaign. The name is not visible to contacts. The name must be unique and cannot exceed 80 characters. You cannot rename email campaigns that have a `Removed` status.
|
620
|
+
# @param campaign_id [String] The unique identifier for an email campaign.
|
621
|
+
# @param patch_email_campaign_name_request [PatchEmailCampaignNameRequest] A JSON payload that contains the new email campaign name.
|
622
|
+
# @param [Hash] opts the optional parameters
|
623
|
+
# @return [CreateEmailCampaign200Response]
|
624
|
+
def patch_email_campaign_name(campaign_id, patch_email_campaign_name_request, opts = {})
|
625
|
+
data, _status_code, _headers = patch_email_campaign_name_with_http_info(campaign_id, patch_email_campaign_name_request, opts)
|
626
|
+
data
|
627
|
+
end
|
628
|
+
|
629
|
+
# PATCH (Update) an Email Campaign Name
|
630
|
+
# Use this method to rename an email campaign. The name is not visible to contacts. The name must be unique and cannot exceed 80 characters. You cannot rename email campaigns that have a `Removed` status.
|
631
|
+
# @param campaign_id [String] The unique identifier for an email campaign.
|
632
|
+
# @param patch_email_campaign_name_request [PatchEmailCampaignNameRequest] A JSON payload that contains the new email campaign name.
|
633
|
+
# @param [Hash] opts the optional parameters
|
634
|
+
# @return [Array<(CreateEmailCampaign200Response, Integer, Hash)>] CreateEmailCampaign200Response data, response status code and response headers
|
635
|
+
def patch_email_campaign_name_with_http_info(campaign_id, patch_email_campaign_name_request, opts = {})
|
636
|
+
if @api_client.config.debugging
|
637
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.patch_email_campaign_name ...'
|
638
|
+
end
|
639
|
+
# verify the required parameter 'campaign_id' is set
|
640
|
+
if @api_client.config.client_side_validation && campaign_id.nil?
|
641
|
+
fail ArgumentError, "Missing the required parameter 'campaign_id' when calling EmailCampaignsApi.patch_email_campaign_name"
|
642
|
+
end
|
643
|
+
# verify the required parameter 'patch_email_campaign_name_request' is set
|
644
|
+
if @api_client.config.client_side_validation && patch_email_campaign_name_request.nil?
|
645
|
+
fail ArgumentError, "Missing the required parameter 'patch_email_campaign_name_request' when calling EmailCampaignsApi.patch_email_campaign_name"
|
646
|
+
end
|
647
|
+
# resource path
|
648
|
+
local_var_path = '/emails/{campaign_id}'.sub('{' + 'campaign_id' + '}', CGI.escape(campaign_id.to_s))
|
649
|
+
|
650
|
+
# query parameters
|
651
|
+
query_params = opts[:query_params] || {}
|
652
|
+
|
653
|
+
# header parameters
|
654
|
+
header_params = opts[:header_params] || {}
|
655
|
+
# HTTP header 'Accept' (if needed)
|
656
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
657
|
+
# HTTP header 'Content-Type'
|
658
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
659
|
+
if !content_type.nil?
|
660
|
+
header_params['Content-Type'] = content_type
|
661
|
+
end
|
662
|
+
|
663
|
+
# form parameters
|
664
|
+
form_params = opts[:form_params] || {}
|
665
|
+
|
666
|
+
# http body (model)
|
667
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_email_campaign_name_request)
|
668
|
+
|
669
|
+
# return_type
|
670
|
+
return_type = opts[:debug_return_type] || 'CreateEmailCampaign200Response'
|
671
|
+
|
672
|
+
# auth_names
|
673
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
674
|
+
|
675
|
+
new_options = opts.merge(
|
676
|
+
:operation => :"EmailCampaignsApi.patch_email_campaign_name",
|
677
|
+
:header_params => header_params,
|
678
|
+
:query_params => query_params,
|
679
|
+
:form_params => form_params,
|
680
|
+
:body => post_body,
|
681
|
+
:auth_names => auth_names,
|
682
|
+
:return_type => return_type
|
683
|
+
)
|
684
|
+
|
685
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
686
|
+
if @api_client.config.debugging
|
687
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#patch_email_campaign_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
688
|
+
end
|
689
|
+
return data, status_code, headers
|
690
|
+
end
|
691
|
+
|
692
|
+
# PUT (Update) An Email Campaign Activity
|
693
|
+
# Use this method to update an email campaign activity by including the complete email campaign activity with your changes in the request body. The request body requires the `from_name`, `from_email`, `reply_to_email`, and `subject` properties. You can only update email campaign activities that have the `primary_email` role and that are in `DRAFT` or `Done` status. When you use a PUT method to update a resource, the V3 API overwrites any properties that are missing in the request body. However, the V3 API does not overwrite subresources that you omit in the request body or missing properties in subresources. This method considers `physical_address_in_footer`, `document_properties`, `html_content`, and `permalink_url` subresources of the email campaign activity.
|
694
|
+
# @param campaign_activity_id [String] The unique ID for the email campaign activity you are updating.
|
695
|
+
# @param get_email_campaign_activity200_response [GetEmailCampaignActivity200Response] A request body payload that contains the complete email campaign activity with your changes.
|
696
|
+
# @param [Hash] opts the optional parameters
|
697
|
+
# @return [GetEmailCampaignActivity200Response]
|
698
|
+
def update_email_campaign_activity(campaign_activity_id, get_email_campaign_activity200_response, opts = {})
|
699
|
+
data, _status_code, _headers = update_email_campaign_activity_with_http_info(campaign_activity_id, get_email_campaign_activity200_response, opts)
|
700
|
+
data
|
701
|
+
end
|
702
|
+
|
703
|
+
# PUT (Update) An Email Campaign Activity
|
704
|
+
# Use this method to update an email campaign activity by including the complete email campaign activity with your changes in the request body. The request body requires the `from_name`, `from_email`, `reply_to_email`, and `subject` properties. You can only update email campaign activities that have the `primary_email` role and that are in `DRAFT` or `Done` status. When you use a PUT method to update a resource, the V3 API overwrites any properties that are missing in the request body. However, the V3 API does not overwrite subresources that you omit in the request body or missing properties in subresources. This method considers `physical_address_in_footer`, `document_properties`, `html_content`, and `permalink_url` subresources of the email campaign activity.
|
705
|
+
# @param campaign_activity_id [String] The unique ID for the email campaign activity you are updating.
|
706
|
+
# @param get_email_campaign_activity200_response [GetEmailCampaignActivity200Response] A request body payload that contains the complete email campaign activity with your changes.
|
707
|
+
# @param [Hash] opts the optional parameters
|
708
|
+
# @return [Array<(GetEmailCampaignActivity200Response, Integer, Hash)>] GetEmailCampaignActivity200Response data, response status code and response headers
|
709
|
+
def update_email_campaign_activity_with_http_info(campaign_activity_id, get_email_campaign_activity200_response, opts = {})
|
710
|
+
if @api_client.config.debugging
|
711
|
+
@api_client.config.logger.debug 'Calling API: EmailCampaignsApi.update_email_campaign_activity ...'
|
712
|
+
end
|
713
|
+
# verify the required parameter 'campaign_activity_id' is set
|
714
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
715
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailCampaignsApi.update_email_campaign_activity"
|
716
|
+
end
|
717
|
+
# verify the required parameter 'get_email_campaign_activity200_response' is set
|
718
|
+
if @api_client.config.client_side_validation && get_email_campaign_activity200_response.nil?
|
719
|
+
fail ArgumentError, "Missing the required parameter 'get_email_campaign_activity200_response' when calling EmailCampaignsApi.update_email_campaign_activity"
|
720
|
+
end
|
721
|
+
# resource path
|
722
|
+
local_var_path = '/emails/activities/{campaign_activity_id}'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
723
|
+
|
724
|
+
# query parameters
|
725
|
+
query_params = opts[:query_params] || {}
|
726
|
+
|
727
|
+
# header parameters
|
728
|
+
header_params = opts[:header_params] || {}
|
729
|
+
# HTTP header 'Accept' (if needed)
|
730
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
731
|
+
# HTTP header 'Content-Type'
|
732
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
733
|
+
if !content_type.nil?
|
734
|
+
header_params['Content-Type'] = content_type
|
735
|
+
end
|
736
|
+
|
737
|
+
# form parameters
|
738
|
+
form_params = opts[:form_params] || {}
|
739
|
+
|
740
|
+
# http body (model)
|
741
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_email_campaign_activity200_response)
|
742
|
+
|
743
|
+
# return_type
|
744
|
+
return_type = opts[:debug_return_type] || 'GetEmailCampaignActivity200Response'
|
745
|
+
|
746
|
+
# auth_names
|
747
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
748
|
+
|
749
|
+
new_options = opts.merge(
|
750
|
+
:operation => :"EmailCampaignsApi.update_email_campaign_activity",
|
751
|
+
:header_params => header_params,
|
752
|
+
:query_params => query_params,
|
753
|
+
:form_params => form_params,
|
754
|
+
:body => post_body,
|
755
|
+
:auth_names => auth_names,
|
756
|
+
:return_type => return_type
|
757
|
+
)
|
758
|
+
|
759
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
760
|
+
if @api_client.config.debugging
|
761
|
+
@api_client.config.logger.debug "API called: EmailCampaignsApi#update_email_campaign_activity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
762
|
+
end
|
763
|
+
return data, status_code, headers
|
764
|
+
end
|
765
|
+
end
|
766
|
+
end
|