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,812 @@
|
|
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 EmailReportingApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# GET an Email Bounces Report
|
23
|
+
# Use this method to get a report listing contact bounce data for the specified email campaign activity. This report lists the most recent bounce data first and includes contact information, such as the contact's email address, unique ID, and the email bounce date and time. Use the <code>bounce_code</code> query parameter to limit the type of bounce data to return. For more use case information, see [Get a Bounces Report for an Email Campaign Activity](/api_guide/email_summary_bounces_report.html) in the API guide.
|
24
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :bounce_code To return results for a specific bounce code, select the `bounce_code` from the drop-down list. To return results for multiple codes, repeat the bounce code parameter for each. For example, to return results for bounce codes `B` and `D` use `bounce_code=B&bounce_code=D`.
|
27
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
28
|
+
# @return [GetBouncesReport200Response]
|
29
|
+
def get_bounces_report(campaign_activity_id, opts = {})
|
30
|
+
data, _status_code, _headers = get_bounces_report_with_http_info(campaign_activity_id, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# GET an Email Bounces Report
|
35
|
+
# Use this method to get a report listing contact bounce data for the specified email campaign activity. This report lists the most recent bounce data first and includes contact information, such as the contact's email address, unique ID, and the email bounce date and time. Use the <code>bounce_code</code> query parameter to limit the type of bounce data to return. For more use case information, see [Get a Bounces Report for an Email Campaign Activity](/api_guide/email_summary_bounces_report.html) in the API guide.
|
36
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [Array<String>] :bounce_code To return results for a specific bounce code, select the `bounce_code` from the drop-down list. To return results for multiple codes, repeat the bounce code parameter for each. For example, to return results for bounce codes `B` and `D` use `bounce_code=B&bounce_code=D`.
|
39
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
40
|
+
# @return [Array<(GetBouncesReport200Response, Integer, Hash)>] GetBouncesReport200Response data, response status code and response headers
|
41
|
+
def get_bounces_report_with_http_info(campaign_activity_id, opts = {})
|
42
|
+
if @api_client.config.debugging
|
43
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_bounces_report ...'
|
44
|
+
end
|
45
|
+
# verify the required parameter 'campaign_activity_id' is set
|
46
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_bounces_report"
|
48
|
+
end
|
49
|
+
allowable_values = ["B", "D", "F", "S", "V", "X", "Z"]
|
50
|
+
if @api_client.config.client_side_validation && opts[:'bounce_code'] && !opts[:'bounce_code'].all? { |item| allowable_values.include?(item) }
|
51
|
+
fail ArgumentError, "invalid value for \"bounce_code\", must include one of #{allowable_values}"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/bounces'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = opts[:query_params] || {}
|
58
|
+
query_params[:'bounce_code'] = @api_client.build_collection_param(opts[:'bounce_code'], :multi) if !opts[:'bounce_code'].nil?
|
59
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = opts[:form_params] || {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = opts[:debug_body]
|
71
|
+
|
72
|
+
# return_type
|
73
|
+
return_type = opts[:debug_return_type] || 'GetBouncesReport200Response'
|
74
|
+
|
75
|
+
# auth_names
|
76
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
77
|
+
|
78
|
+
new_options = opts.merge(
|
79
|
+
:operation => :"EmailReportingApi.get_bounces_report",
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names,
|
85
|
+
:return_type => return_type
|
86
|
+
)
|
87
|
+
|
88
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_bounces_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
return data, status_code, headers
|
93
|
+
end
|
94
|
+
|
95
|
+
# GET an Email Links Report
|
96
|
+
# Use this method to return link details, including the number of unique contacts that clicked each link in an email campaign activity, and the type of action associated with clicking each link. To include link details for links that were not clicked, set the `no_clicks` query parameter to `true`. You can return reporting data for `primary_email` and `resend` role email campaign activities. For more use case information, see [Get an Email Links Report](/api_guide/email_links_report.html) in the API guide.
|
97
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [Boolean] :no_clicks Set this query parameter to `true` to return details for links that were not clicked in the response results. (default to false)
|
100
|
+
# @return [GetCampaignActivityLinkReport200Response]
|
101
|
+
def get_campaign_activity_link_report(campaign_activity_id, opts = {})
|
102
|
+
data, _status_code, _headers = get_campaign_activity_link_report_with_http_info(campaign_activity_id, opts)
|
103
|
+
data
|
104
|
+
end
|
105
|
+
|
106
|
+
# GET an Email Links Report
|
107
|
+
# Use this method to return link details, including the number of unique contacts that clicked each link in an email campaign activity, and the type of action associated with clicking each link. To include link details for links that were not clicked, set the `no_clicks` query parameter to `true`. You can return reporting data for `primary_email` and `resend` role email campaign activities. For more use case information, see [Get an Email Links Report](/api_guide/email_links_report.html) in the API guide.
|
108
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity.
|
109
|
+
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [Boolean] :no_clicks Set this query parameter to `true` to return details for links that were not clicked in the response results. (default to false)
|
111
|
+
# @return [Array<(GetCampaignActivityLinkReport200Response, Integer, Hash)>] GetCampaignActivityLinkReport200Response data, response status code and response headers
|
112
|
+
def get_campaign_activity_link_report_with_http_info(campaign_activity_id, opts = {})
|
113
|
+
if @api_client.config.debugging
|
114
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_campaign_activity_link_report ...'
|
115
|
+
end
|
116
|
+
# verify the required parameter 'campaign_activity_id' is set
|
117
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
118
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_campaign_activity_link_report"
|
119
|
+
end
|
120
|
+
# resource path
|
121
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/links'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
122
|
+
|
123
|
+
# query parameters
|
124
|
+
query_params = opts[:query_params] || {}
|
125
|
+
query_params[:'no_clicks'] = opts[:'no_clicks'] if !opts[:'no_clicks'].nil?
|
126
|
+
|
127
|
+
# header parameters
|
128
|
+
header_params = opts[:header_params] || {}
|
129
|
+
# HTTP header 'Accept' (if needed)
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = opts[:form_params] || {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = opts[:debug_body]
|
137
|
+
|
138
|
+
# return_type
|
139
|
+
return_type = opts[:debug_return_type] || 'GetCampaignActivityLinkReport200Response'
|
140
|
+
|
141
|
+
# auth_names
|
142
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
143
|
+
|
144
|
+
new_options = opts.merge(
|
145
|
+
:operation => :"EmailReportingApi.get_campaign_activity_link_report",
|
146
|
+
:header_params => header_params,
|
147
|
+
:query_params => query_params,
|
148
|
+
:form_params => form_params,
|
149
|
+
:body => post_body,
|
150
|
+
:auth_names => auth_names,
|
151
|
+
:return_type => return_type
|
152
|
+
)
|
153
|
+
|
154
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_campaign_activity_link_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
157
|
+
end
|
158
|
+
return data, status_code, headers
|
159
|
+
end
|
160
|
+
|
161
|
+
# GET an Email Clicks Report
|
162
|
+
# Use this method to get each time a contact clicked a link, the click date and time, and the device type they used. Use the `url_id` query parameter to get a clicks report for a specific link URL. Clicks report data is sorted with most recent activity listed first.
|
163
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @option opts [Integer] :url_id The ID that uniquely identifies a single link URL for which you want to get a clicks report.
|
166
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
167
|
+
# @return [GetClicksReport200Response]
|
168
|
+
def get_clicks_report(campaign_activity_id, opts = {})
|
169
|
+
data, _status_code, _headers = get_clicks_report_with_http_info(campaign_activity_id, opts)
|
170
|
+
data
|
171
|
+
end
|
172
|
+
|
173
|
+
# GET an Email Clicks Report
|
174
|
+
# Use this method to get each time a contact clicked a link, the click date and time, and the device type they used. Use the `url_id` query parameter to get a clicks report for a specific link URL. Clicks report data is sorted with most recent activity listed first.
|
175
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [Integer] :url_id The ID that uniquely identifies a single link URL for which you want to get a clicks report.
|
178
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
179
|
+
# @return [Array<(GetClicksReport200Response, Integer, Hash)>] GetClicksReport200Response data, response status code and response headers
|
180
|
+
def get_clicks_report_with_http_info(campaign_activity_id, opts = {})
|
181
|
+
if @api_client.config.debugging
|
182
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_clicks_report ...'
|
183
|
+
end
|
184
|
+
# verify the required parameter 'campaign_activity_id' is set
|
185
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
186
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_clicks_report"
|
187
|
+
end
|
188
|
+
# resource path
|
189
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/clicks'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
190
|
+
|
191
|
+
# query parameters
|
192
|
+
query_params = opts[:query_params] || {}
|
193
|
+
query_params[:'url_id'] = opts[:'url_id'] if !opts[:'url_id'].nil?
|
194
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
195
|
+
|
196
|
+
# header parameters
|
197
|
+
header_params = opts[:header_params] || {}
|
198
|
+
# HTTP header 'Accept' (if needed)
|
199
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
200
|
+
|
201
|
+
# form parameters
|
202
|
+
form_params = opts[:form_params] || {}
|
203
|
+
|
204
|
+
# http body (model)
|
205
|
+
post_body = opts[:debug_body]
|
206
|
+
|
207
|
+
# return_type
|
208
|
+
return_type = opts[:debug_return_type] || 'GetClicksReport200Response'
|
209
|
+
|
210
|
+
# auth_names
|
211
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
212
|
+
|
213
|
+
new_options = opts.merge(
|
214
|
+
:operation => :"EmailReportingApi.get_clicks_report",
|
215
|
+
:header_params => header_params,
|
216
|
+
:query_params => query_params,
|
217
|
+
:form_params => form_params,
|
218
|
+
:body => post_body,
|
219
|
+
:auth_names => auth_names,
|
220
|
+
:return_type => return_type
|
221
|
+
)
|
222
|
+
|
223
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_clicks_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
|
+
end
|
227
|
+
return data, status_code, headers
|
228
|
+
end
|
229
|
+
|
230
|
+
# GET an Email Did Not Opens Report
|
231
|
+
# Use this method to get a report listing each contact that was sent, but did not open the specified email campaign activity. This report lists contact information such as the contact's email address and unique ID, and the date and time that the email campaign activity was sent. This report lists the most recent activity first. For more use case information, see [Get a Did Not Opens Report for an Email Campaign Activity](/api_guide/email_summary_non_opens_report.html) in the API guide.
|
232
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
235
|
+
# @return [GetDidNotOpensReport200Response]
|
236
|
+
def get_did_not_opens_report(campaign_activity_id, opts = {})
|
237
|
+
data, _status_code, _headers = get_did_not_opens_report_with_http_info(campaign_activity_id, opts)
|
238
|
+
data
|
239
|
+
end
|
240
|
+
|
241
|
+
# GET an Email Did Not Opens Report
|
242
|
+
# Use this method to get a report listing each contact that was sent, but did not open the specified email campaign activity. This report lists contact information such as the contact's email address and unique ID, and the date and time that the email campaign activity was sent. This report lists the most recent activity first. For more use case information, see [Get a Did Not Opens Report for an Email Campaign Activity](/api_guide/email_summary_non_opens_report.html) in the API guide.
|
243
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
246
|
+
# @return [Array<(GetDidNotOpensReport200Response, Integer, Hash)>] GetDidNotOpensReport200Response data, response status code and response headers
|
247
|
+
def get_did_not_opens_report_with_http_info(campaign_activity_id, opts = {})
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_did_not_opens_report ...'
|
250
|
+
end
|
251
|
+
# verify the required parameter 'campaign_activity_id' is set
|
252
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
253
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_did_not_opens_report"
|
254
|
+
end
|
255
|
+
# resource path
|
256
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/didnotopens'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
257
|
+
|
258
|
+
# query parameters
|
259
|
+
query_params = opts[:query_params] || {}
|
260
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
261
|
+
|
262
|
+
# header parameters
|
263
|
+
header_params = opts[:header_params] || {}
|
264
|
+
# HTTP header 'Accept' (if needed)
|
265
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
266
|
+
|
267
|
+
# form parameters
|
268
|
+
form_params = opts[:form_params] || {}
|
269
|
+
|
270
|
+
# http body (model)
|
271
|
+
post_body = opts[:debug_body]
|
272
|
+
|
273
|
+
# return_type
|
274
|
+
return_type = opts[:debug_return_type] || 'GetDidNotOpensReport200Response'
|
275
|
+
|
276
|
+
# auth_names
|
277
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
278
|
+
|
279
|
+
new_options = opts.merge(
|
280
|
+
:operation => :"EmailReportingApi.get_did_not_opens_report",
|
281
|
+
:header_params => header_params,
|
282
|
+
:query_params => query_params,
|
283
|
+
:form_params => form_params,
|
284
|
+
:body => post_body,
|
285
|
+
:auth_names => auth_names,
|
286
|
+
:return_type => return_type
|
287
|
+
)
|
288
|
+
|
289
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
290
|
+
if @api_client.config.debugging
|
291
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_did_not_opens_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
292
|
+
end
|
293
|
+
return data, status_code, headers
|
294
|
+
end
|
295
|
+
|
296
|
+
# GET an Email Campaign Activity Stats Report
|
297
|
+
# Use this method to get performance tracking statistics for up to ten email campaign activities. Statistics include the total number of times contacts interacted with your campaigns and how. For each `campaign_activity_id`, this method returns the `campaign_id`, the total counts (`stats`) for each type of tracked email activity, and the date and time that Constant Contact last refreshed (`last_refresh_time`) the `stats`. When requesting statistics for multiple email campaign activities, if one or more of the `campaign_activity_ids` do not exist, were deleted, or do not have any stats associated with it, the `campaign_activity_ids` and error details display under `errors`. If any single specified `campaign_activity_id` is invalid (malformed), a 404 error response is returned for all campaign activities.
|
298
|
+
# @param campaign_activity_ids [String] A comma-separated list of `campaign_activity_id`s (UUID's).
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [GetEmailCampaignActivityReport200Response]
|
301
|
+
def get_email_campaign_activity_report(campaign_activity_ids, opts = {})
|
302
|
+
data, _status_code, _headers = get_email_campaign_activity_report_with_http_info(campaign_activity_ids, opts)
|
303
|
+
data
|
304
|
+
end
|
305
|
+
|
306
|
+
# GET an Email Campaign Activity Stats Report
|
307
|
+
# Use this method to get performance tracking statistics for up to ten email campaign activities. Statistics include the total number of times contacts interacted with your campaigns and how. For each `campaign_activity_id`, this method returns the `campaign_id`, the total counts (`stats`) for each type of tracked email activity, and the date and time that Constant Contact last refreshed (`last_refresh_time`) the `stats`. When requesting statistics for multiple email campaign activities, if one or more of the `campaign_activity_ids` do not exist, were deleted, or do not have any stats associated with it, the `campaign_activity_ids` and error details display under `errors`. If any single specified `campaign_activity_id` is invalid (malformed), a 404 error response is returned for all campaign activities.
|
308
|
+
# @param campaign_activity_ids [String] A comma-separated list of `campaign_activity_id`s (UUID's).
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @return [Array<(GetEmailCampaignActivityReport200Response, Integer, Hash)>] GetEmailCampaignActivityReport200Response data, response status code and response headers
|
311
|
+
def get_email_campaign_activity_report_with_http_info(campaign_activity_ids, opts = {})
|
312
|
+
if @api_client.config.debugging
|
313
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_email_campaign_activity_report ...'
|
314
|
+
end
|
315
|
+
# verify the required parameter 'campaign_activity_ids' is set
|
316
|
+
if @api_client.config.client_side_validation && campaign_activity_ids.nil?
|
317
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_ids' when calling EmailReportingApi.get_email_campaign_activity_report"
|
318
|
+
end
|
319
|
+
# resource path
|
320
|
+
local_var_path = '/reports/stats/email_campaign_activities/{campaign_activity_ids}'.sub('{' + 'campaign_activity_ids' + '}', CGI.escape(campaign_activity_ids.to_s))
|
321
|
+
|
322
|
+
# query parameters
|
323
|
+
query_params = opts[:query_params] || {}
|
324
|
+
|
325
|
+
# header parameters
|
326
|
+
header_params = opts[:header_params] || {}
|
327
|
+
# HTTP header 'Accept' (if needed)
|
328
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
329
|
+
|
330
|
+
# form parameters
|
331
|
+
form_params = opts[:form_params] || {}
|
332
|
+
|
333
|
+
# http body (model)
|
334
|
+
post_body = opts[:debug_body]
|
335
|
+
|
336
|
+
# return_type
|
337
|
+
return_type = opts[:debug_return_type] || 'GetEmailCampaignActivityReport200Response'
|
338
|
+
|
339
|
+
# auth_names
|
340
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
341
|
+
|
342
|
+
new_options = opts.merge(
|
343
|
+
:operation => :"EmailReportingApi.get_email_campaign_activity_report",
|
344
|
+
:header_params => header_params,
|
345
|
+
:query_params => query_params,
|
346
|
+
:form_params => form_params,
|
347
|
+
:body => post_body,
|
348
|
+
:auth_names => auth_names,
|
349
|
+
:return_type => return_type
|
350
|
+
)
|
351
|
+
|
352
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
353
|
+
if @api_client.config.debugging
|
354
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_email_campaign_activity_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
355
|
+
end
|
356
|
+
return data, status_code, headers
|
357
|
+
end
|
358
|
+
|
359
|
+
# GET an Email Campaigns Summary Report
|
360
|
+
# Use this method to get aggregate email campaign statistics for up to five hundred email campaigns. The response results include the total number of times that each contact uniquely interacted with each tracked campaign activity. Results are sorted in descending order by the date that the email was last sent (<code>last_sent_date</code>). Use the <code>limit</code> query parameter to limit the number of email campaign summary reports listed on each page. For more use case information, see \"[Get an Email Campaign Summary Report](/api_guide/email_bulk_campaign_summary_report.html)\"
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @option opts [String] :limit Use the `limit` query parameter to limit the number of email campaign summaries to return on a single page. The default is `50` and the maximum is `500` per page. (default to '50')
|
363
|
+
# @return [GetEmailCampaignReport200Response]
|
364
|
+
def get_email_campaign_report(opts = {})
|
365
|
+
data, _status_code, _headers = get_email_campaign_report_with_http_info(opts)
|
366
|
+
data
|
367
|
+
end
|
368
|
+
|
369
|
+
# GET an Email Campaigns Summary Report
|
370
|
+
# Use this method to get aggregate email campaign statistics for up to five hundred email campaigns. The response results include the total number of times that each contact uniquely interacted with each tracked campaign activity. Results are sorted in descending order by the date that the email was last sent (<code>last_sent_date</code>). Use the <code>limit</code> query parameter to limit the number of email campaign summary reports listed on each page. For more use case information, see \"[Get an Email Campaign Summary Report](/api_guide/email_bulk_campaign_summary_report.html)\"
|
371
|
+
# @param [Hash] opts the optional parameters
|
372
|
+
# @option opts [String] :limit Use the `limit` query parameter to limit the number of email campaign summaries to return on a single page. The default is `50` and the maximum is `500` per page. (default to '50')
|
373
|
+
# @return [Array<(GetEmailCampaignReport200Response, Integer, Hash)>] GetEmailCampaignReport200Response data, response status code and response headers
|
374
|
+
def get_email_campaign_report_with_http_info(opts = {})
|
375
|
+
if @api_client.config.debugging
|
376
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_email_campaign_report ...'
|
377
|
+
end
|
378
|
+
# resource path
|
379
|
+
local_var_path = '/reports/summary_reports/email_campaign_summaries'
|
380
|
+
|
381
|
+
# query parameters
|
382
|
+
query_params = opts[:query_params] || {}
|
383
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
384
|
+
|
385
|
+
# header parameters
|
386
|
+
header_params = opts[:header_params] || {}
|
387
|
+
# HTTP header 'Accept' (if needed)
|
388
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
389
|
+
|
390
|
+
# form parameters
|
391
|
+
form_params = opts[:form_params] || {}
|
392
|
+
|
393
|
+
# http body (model)
|
394
|
+
post_body = opts[:debug_body]
|
395
|
+
|
396
|
+
# return_type
|
397
|
+
return_type = opts[:debug_return_type] || 'GetEmailCampaignReport200Response'
|
398
|
+
|
399
|
+
# auth_names
|
400
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
401
|
+
|
402
|
+
new_options = opts.merge(
|
403
|
+
:operation => :"EmailReportingApi.get_email_campaign_report",
|
404
|
+
:header_params => header_params,
|
405
|
+
:query_params => query_params,
|
406
|
+
:form_params => form_params,
|
407
|
+
:body => post_body,
|
408
|
+
:auth_names => auth_names,
|
409
|
+
:return_type => return_type
|
410
|
+
)
|
411
|
+
|
412
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
413
|
+
if @api_client.config.debugging
|
414
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_email_campaign_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
415
|
+
end
|
416
|
+
return data, status_code, headers
|
417
|
+
end
|
418
|
+
|
419
|
+
# GET an Email Opens Report
|
420
|
+
# Use this method to get each time a contact opened a specific email campaign activity. This report includes general contact information such as the contact's email address and unique ID, the date and time they opened the email campaign activity, and the type of device they used to open it. This report lists the most recent activity first. For more use case information, see [Get an Opens report for an Email Campaign Activity](/api_guide/email_summary_opens_report.html) in the API guide.
|
421
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity to use for this report.
|
422
|
+
# @param [Hash] opts the optional parameters
|
423
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
424
|
+
# @return [GetEmailOpensReport200Response]
|
425
|
+
def get_email_opens_report(campaign_activity_id, opts = {})
|
426
|
+
data, _status_code, _headers = get_email_opens_report_with_http_info(campaign_activity_id, opts)
|
427
|
+
data
|
428
|
+
end
|
429
|
+
|
430
|
+
# GET an Email Opens Report
|
431
|
+
# Use this method to get each time a contact opened a specific email campaign activity. This report includes general contact information such as the contact's email address and unique ID, the date and time they opened the email campaign activity, and the type of device they used to open it. This report lists the most recent activity first. For more use case information, see [Get an Opens report for an Email Campaign Activity](/api_guide/email_summary_opens_report.html) in the API guide.
|
432
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity to use for this report.
|
433
|
+
# @param [Hash] opts the optional parameters
|
434
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
435
|
+
# @return [Array<(GetEmailOpensReport200Response, Integer, Hash)>] GetEmailOpensReport200Response data, response status code and response headers
|
436
|
+
def get_email_opens_report_with_http_info(campaign_activity_id, opts = {})
|
437
|
+
if @api_client.config.debugging
|
438
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_email_opens_report ...'
|
439
|
+
end
|
440
|
+
# verify the required parameter 'campaign_activity_id' is set
|
441
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
442
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_email_opens_report"
|
443
|
+
end
|
444
|
+
# resource path
|
445
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/opens'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
446
|
+
|
447
|
+
# query parameters
|
448
|
+
query_params = opts[:query_params] || {}
|
449
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
450
|
+
|
451
|
+
# header parameters
|
452
|
+
header_params = opts[:header_params] || {}
|
453
|
+
# HTTP header 'Accept' (if needed)
|
454
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
455
|
+
|
456
|
+
# form parameters
|
457
|
+
form_params = opts[:form_params] || {}
|
458
|
+
|
459
|
+
# http body (model)
|
460
|
+
post_body = opts[:debug_body]
|
461
|
+
|
462
|
+
# return_type
|
463
|
+
return_type = opts[:debug_return_type] || 'GetEmailOpensReport200Response'
|
464
|
+
|
465
|
+
# auth_names
|
466
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
467
|
+
|
468
|
+
new_options = opts.merge(
|
469
|
+
:operation => :"EmailReportingApi.get_email_opens_report",
|
470
|
+
:header_params => header_params,
|
471
|
+
:query_params => query_params,
|
472
|
+
:form_params => form_params,
|
473
|
+
:body => post_body,
|
474
|
+
:auth_names => auth_names,
|
475
|
+
:return_type => return_type
|
476
|
+
)
|
477
|
+
|
478
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
479
|
+
if @api_client.config.debugging
|
480
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_email_opens_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
481
|
+
end
|
482
|
+
return data, status_code, headers
|
483
|
+
end
|
484
|
+
|
485
|
+
# GET an Email Sends Report
|
486
|
+
# Use this method to get each contact that was sent a specific email campaign activity. This sends report includes general contact data such as the date and time that the email campaign activity was sent to a contact's email address, the contact's first and last name, and unique ID. This report lists the most recent activity first. For more use case information, see [Get an Sends report for an Email Campaign Activity](/api_guide/email_summary_sends_report.html) in the API guide.
|
487
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity to use for this report.
|
488
|
+
# @param [Hash] opts the optional parameters
|
489
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
490
|
+
# @return [GetEmailSendsReport200Response]
|
491
|
+
def get_email_sends_report(campaign_activity_id, opts = {})
|
492
|
+
data, _status_code, _headers = get_email_sends_report_with_http_info(campaign_activity_id, opts)
|
493
|
+
data
|
494
|
+
end
|
495
|
+
|
496
|
+
# GET an Email Sends Report
|
497
|
+
# Use this method to get each contact that was sent a specific email campaign activity. This sends report includes general contact data such as the date and time that the email campaign activity was sent to a contact's email address, the contact's first and last name, and unique ID. This report lists the most recent activity first. For more use case information, see [Get an Sends report for an Email Campaign Activity](/api_guide/email_summary_sends_report.html) in the API guide.
|
498
|
+
# @param campaign_activity_id [String] The unique ID for an email campaign activity to use for this report.
|
499
|
+
# @param [Hash] opts the optional parameters
|
500
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
501
|
+
# @return [Array<(GetEmailSendsReport200Response, Integer, Hash)>] GetEmailSendsReport200Response data, response status code and response headers
|
502
|
+
def get_email_sends_report_with_http_info(campaign_activity_id, opts = {})
|
503
|
+
if @api_client.config.debugging
|
504
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_email_sends_report ...'
|
505
|
+
end
|
506
|
+
# verify the required parameter 'campaign_activity_id' is set
|
507
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
508
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_email_sends_report"
|
509
|
+
end
|
510
|
+
# resource path
|
511
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/sends'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
512
|
+
|
513
|
+
# query parameters
|
514
|
+
query_params = opts[:query_params] || {}
|
515
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
516
|
+
|
517
|
+
# header parameters
|
518
|
+
header_params = opts[:header_params] || {}
|
519
|
+
# HTTP header 'Accept' (if needed)
|
520
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
521
|
+
|
522
|
+
# form parameters
|
523
|
+
form_params = opts[:form_params] || {}
|
524
|
+
|
525
|
+
# http body (model)
|
526
|
+
post_body = opts[:debug_body]
|
527
|
+
|
528
|
+
# return_type
|
529
|
+
return_type = opts[:debug_return_type] || 'GetEmailSendsReport200Response'
|
530
|
+
|
531
|
+
# auth_names
|
532
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
533
|
+
|
534
|
+
new_options = opts.merge(
|
535
|
+
:operation => :"EmailReportingApi.get_email_sends_report",
|
536
|
+
:header_params => header_params,
|
537
|
+
:query_params => query_params,
|
538
|
+
:form_params => form_params,
|
539
|
+
:body => post_body,
|
540
|
+
:auth_names => auth_names,
|
541
|
+
:return_type => return_type
|
542
|
+
)
|
543
|
+
|
544
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
545
|
+
if @api_client.config.debugging
|
546
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_email_sends_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
547
|
+
end
|
548
|
+
return data, status_code, headers
|
549
|
+
end
|
550
|
+
|
551
|
+
# GET an Email Campaign Stats Report
|
552
|
+
# Use this method to get email campaign performance tracking statistics for one or more campaigns, including the total number of times contacts interacted with your campaigns and how. For each `campaign_id`, this method returns lists that include total counts (`stats`) for each type of tracked email and relevant campaign-related percentages (`percents`). It also returns the date and time at which the campaign stats were last refreshed. If any specified `campaign_id` is invalid, a 404 error response is returned for all campaigns.
|
553
|
+
# @param campaign_ids [String] A comma-separated list of `campaign_id`s (UUID's).
|
554
|
+
# @param [Hash] opts the optional parameters
|
555
|
+
# @return [GetEmailStatsReport200Response]
|
556
|
+
def get_email_stats_report(campaign_ids, opts = {})
|
557
|
+
data, _status_code, _headers = get_email_stats_report_with_http_info(campaign_ids, opts)
|
558
|
+
data
|
559
|
+
end
|
560
|
+
|
561
|
+
# GET an Email Campaign Stats Report
|
562
|
+
# Use this method to get email campaign performance tracking statistics for one or more campaigns, including the total number of times contacts interacted with your campaigns and how. For each `campaign_id`, this method returns lists that include total counts (`stats`) for each type of tracked email and relevant campaign-related percentages (`percents`). It also returns the date and time at which the campaign stats were last refreshed. If any specified `campaign_id` is invalid, a 404 error response is returned for all campaigns.
|
563
|
+
# @param campaign_ids [String] A comma-separated list of `campaign_id`s (UUID's).
|
564
|
+
# @param [Hash] opts the optional parameters
|
565
|
+
# @return [Array<(GetEmailStatsReport200Response, Integer, Hash)>] GetEmailStatsReport200Response data, response status code and response headers
|
566
|
+
def get_email_stats_report_with_http_info(campaign_ids, opts = {})
|
567
|
+
if @api_client.config.debugging
|
568
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_email_stats_report ...'
|
569
|
+
end
|
570
|
+
# verify the required parameter 'campaign_ids' is set
|
571
|
+
if @api_client.config.client_side_validation && campaign_ids.nil?
|
572
|
+
fail ArgumentError, "Missing the required parameter 'campaign_ids' when calling EmailReportingApi.get_email_stats_report"
|
573
|
+
end
|
574
|
+
# resource path
|
575
|
+
local_var_path = '/reports/stats/email_campaigns/{campaign_ids}'.sub('{' + 'campaign_ids' + '}', CGI.escape(campaign_ids.to_s))
|
576
|
+
|
577
|
+
# query parameters
|
578
|
+
query_params = opts[:query_params] || {}
|
579
|
+
|
580
|
+
# header parameters
|
581
|
+
header_params = opts[:header_params] || {}
|
582
|
+
# HTTP header 'Accept' (if needed)
|
583
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
584
|
+
|
585
|
+
# form parameters
|
586
|
+
form_params = opts[:form_params] || {}
|
587
|
+
|
588
|
+
# http body (model)
|
589
|
+
post_body = opts[:debug_body]
|
590
|
+
|
591
|
+
# return_type
|
592
|
+
return_type = opts[:debug_return_type] || 'GetEmailStatsReport200Response'
|
593
|
+
|
594
|
+
# auth_names
|
595
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
596
|
+
|
597
|
+
new_options = opts.merge(
|
598
|
+
:operation => :"EmailReportingApi.get_email_stats_report",
|
599
|
+
:header_params => header_params,
|
600
|
+
:query_params => query_params,
|
601
|
+
:form_params => form_params,
|
602
|
+
:body => post_body,
|
603
|
+
:auth_names => auth_names,
|
604
|
+
:return_type => return_type
|
605
|
+
)
|
606
|
+
|
607
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
608
|
+
if @api_client.config.debugging
|
609
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_email_stats_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
610
|
+
end
|
611
|
+
return data, status_code, headers
|
612
|
+
end
|
613
|
+
|
614
|
+
# GET an Email Forwards Report
|
615
|
+
# Use this method to get a report listing each time a contact forwarded the email campaign activity using the forwarding link in the email footer. The report includes general contact information, such as the contact's email address and unique ID, and the date and time that the email campaign activity was forwarded. Forwards report data is sorted with the most recent activity listed first. For more use case information, see [Get an Email Forwards Report](/api_guide/email_summary_forwards_report.html) in the API guide.
|
616
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
617
|
+
# @param [Hash] opts the optional parameters
|
618
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
619
|
+
# @return [GetForwardsReport200Response]
|
620
|
+
def get_forwards_report(campaign_activity_id, opts = {})
|
621
|
+
data, _status_code, _headers = get_forwards_report_with_http_info(campaign_activity_id, opts)
|
622
|
+
data
|
623
|
+
end
|
624
|
+
|
625
|
+
# GET an Email Forwards Report
|
626
|
+
# Use this method to get a report listing each time a contact forwarded the email campaign activity using the forwarding link in the email footer. The report includes general contact information, such as the contact's email address and unique ID, and the date and time that the email campaign activity was forwarded. Forwards report data is sorted with the most recent activity listed first. For more use case information, see [Get an Email Forwards Report](/api_guide/email_summary_forwards_report.html) in the API guide.
|
627
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
628
|
+
# @param [Hash] opts the optional parameters
|
629
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
630
|
+
# @return [Array<(GetForwardsReport200Response, Integer, Hash)>] GetForwardsReport200Response data, response status code and response headers
|
631
|
+
def get_forwards_report_with_http_info(campaign_activity_id, opts = {})
|
632
|
+
if @api_client.config.debugging
|
633
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_forwards_report ...'
|
634
|
+
end
|
635
|
+
# verify the required parameter 'campaign_activity_id' is set
|
636
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
637
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_forwards_report"
|
638
|
+
end
|
639
|
+
# resource path
|
640
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/forwards'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
641
|
+
|
642
|
+
# query parameters
|
643
|
+
query_params = opts[:query_params] || {}
|
644
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
645
|
+
|
646
|
+
# header parameters
|
647
|
+
header_params = opts[:header_params] || {}
|
648
|
+
# HTTP header 'Accept' (if needed)
|
649
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
650
|
+
|
651
|
+
# form parameters
|
652
|
+
form_params = opts[:form_params] || {}
|
653
|
+
|
654
|
+
# http body (model)
|
655
|
+
post_body = opts[:debug_body]
|
656
|
+
|
657
|
+
# return_type
|
658
|
+
return_type = opts[:debug_return_type] || 'GetForwardsReport200Response'
|
659
|
+
|
660
|
+
# auth_names
|
661
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
662
|
+
|
663
|
+
new_options = opts.merge(
|
664
|
+
:operation => :"EmailReportingApi.get_forwards_report",
|
665
|
+
:header_params => header_params,
|
666
|
+
:query_params => query_params,
|
667
|
+
:form_params => form_params,
|
668
|
+
:body => post_body,
|
669
|
+
:auth_names => auth_names,
|
670
|
+
:return_type => return_type
|
671
|
+
)
|
672
|
+
|
673
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
674
|
+
if @api_client.config.debugging
|
675
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_forwards_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
676
|
+
end
|
677
|
+
return data, status_code, headers
|
678
|
+
end
|
679
|
+
|
680
|
+
# GET an Email Opt-outs Report
|
681
|
+
# Use this method to get a report listing each contact that clicked the unsubscribe link in the email campaign activity to opt-out from receiving emails sent from your Constant Contact account. This report includes contact information, such as the contact's email address, unique ID, and the opt-out date and time. Opt-out report data is sorted with the most recent activity listed first. For more use case information, see [Get an Email Opt-outs Report](/api_guide/email_summary_optouts_report.html) in the API guide.
|
682
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
683
|
+
# @param [Hash] opts the optional parameters
|
684
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
685
|
+
# @return [GetOptoutsReport200Response]
|
686
|
+
def get_optouts_report(campaign_activity_id, opts = {})
|
687
|
+
data, _status_code, _headers = get_optouts_report_with_http_info(campaign_activity_id, opts)
|
688
|
+
data
|
689
|
+
end
|
690
|
+
|
691
|
+
# GET an Email Opt-outs Report
|
692
|
+
# Use this method to get a report listing each contact that clicked the unsubscribe link in the email campaign activity to opt-out from receiving emails sent from your Constant Contact account. This report includes contact information, such as the contact's email address, unique ID, and the opt-out date and time. Opt-out report data is sorted with the most recent activity listed first. For more use case information, see [Get an Email Opt-outs Report](/api_guide/email_summary_optouts_report.html) in the API guide.
|
693
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
694
|
+
# @param [Hash] opts the optional parameters
|
695
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
696
|
+
# @return [Array<(GetOptoutsReport200Response, Integer, Hash)>] GetOptoutsReport200Response data, response status code and response headers
|
697
|
+
def get_optouts_report_with_http_info(campaign_activity_id, opts = {})
|
698
|
+
if @api_client.config.debugging
|
699
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_optouts_report ...'
|
700
|
+
end
|
701
|
+
# verify the required parameter 'campaign_activity_id' is set
|
702
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
703
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_optouts_report"
|
704
|
+
end
|
705
|
+
# resource path
|
706
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/optouts'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
707
|
+
|
708
|
+
# query parameters
|
709
|
+
query_params = opts[:query_params] || {}
|
710
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
711
|
+
|
712
|
+
# header parameters
|
713
|
+
header_params = opts[:header_params] || {}
|
714
|
+
# HTTP header 'Accept' (if needed)
|
715
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
716
|
+
|
717
|
+
# form parameters
|
718
|
+
form_params = opts[:form_params] || {}
|
719
|
+
|
720
|
+
# http body (model)
|
721
|
+
post_body = opts[:debug_body]
|
722
|
+
|
723
|
+
# return_type
|
724
|
+
return_type = opts[:debug_return_type] || 'GetOptoutsReport200Response'
|
725
|
+
|
726
|
+
# auth_names
|
727
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
728
|
+
|
729
|
+
new_options = opts.merge(
|
730
|
+
:operation => :"EmailReportingApi.get_optouts_report",
|
731
|
+
:header_params => header_params,
|
732
|
+
:query_params => query_params,
|
733
|
+
:form_params => form_params,
|
734
|
+
:body => post_body,
|
735
|
+
:auth_names => auth_names,
|
736
|
+
:return_type => return_type
|
737
|
+
)
|
738
|
+
|
739
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
740
|
+
if @api_client.config.debugging
|
741
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_optouts_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
742
|
+
end
|
743
|
+
return data, status_code, headers
|
744
|
+
end
|
745
|
+
|
746
|
+
# GET an Email Unique Opens Report
|
747
|
+
# Use this method to get a unique opens report that provides details about the last time that each contact opened the specified email campaign activity. This report includes general contact information such as the contact's email address and unique ID, the date and time they opened the email campaign activity, and the type of device they used to open it. This report lists the most recent activity first. For more use case information, see [Get an Unique Opens Report for an Email Campaign Activity](/api_guide/email_summary_unique_opens_report.html) in the API guide.
|
748
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
749
|
+
# @param [Hash] opts the optional parameters
|
750
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
751
|
+
# @return [GetEmailOpensReport200Response]
|
752
|
+
def get_unique_opens_report(campaign_activity_id, opts = {})
|
753
|
+
data, _status_code, _headers = get_unique_opens_report_with_http_info(campaign_activity_id, opts)
|
754
|
+
data
|
755
|
+
end
|
756
|
+
|
757
|
+
# GET an Email Unique Opens Report
|
758
|
+
# Use this method to get a unique opens report that provides details about the last time that each contact opened the specified email campaign activity. This report includes general contact information such as the contact's email address and unique ID, the date and time they opened the email campaign activity, and the type of device they used to open it. This report lists the most recent activity first. For more use case information, see [Get an Unique Opens Report for an Email Campaign Activity](/api_guide/email_summary_unique_opens_report.html) in the API guide.
|
759
|
+
# @param campaign_activity_id [String] The ID that uniquely identifies the email campaign activity to use for this report.
|
760
|
+
# @param [Hash] opts the optional parameters
|
761
|
+
# @option opts [String] :limit The number of tracking activities to return on a page. (default to '500')
|
762
|
+
# @return [Array<(GetEmailOpensReport200Response, Integer, Hash)>] GetEmailOpensReport200Response data, response status code and response headers
|
763
|
+
def get_unique_opens_report_with_http_info(campaign_activity_id, opts = {})
|
764
|
+
if @api_client.config.debugging
|
765
|
+
@api_client.config.logger.debug 'Calling API: EmailReportingApi.get_unique_opens_report ...'
|
766
|
+
end
|
767
|
+
# verify the required parameter 'campaign_activity_id' is set
|
768
|
+
if @api_client.config.client_side_validation && campaign_activity_id.nil?
|
769
|
+
fail ArgumentError, "Missing the required parameter 'campaign_activity_id' when calling EmailReportingApi.get_unique_opens_report"
|
770
|
+
end
|
771
|
+
# resource path
|
772
|
+
local_var_path = '/reports/email_reports/{campaign_activity_id}/tracking/unique_opens'.sub('{' + 'campaign_activity_id' + '}', CGI.escape(campaign_activity_id.to_s))
|
773
|
+
|
774
|
+
# query parameters
|
775
|
+
query_params = opts[:query_params] || {}
|
776
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
777
|
+
|
778
|
+
# header parameters
|
779
|
+
header_params = opts[:header_params] || {}
|
780
|
+
# HTTP header 'Accept' (if needed)
|
781
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
782
|
+
|
783
|
+
# form parameters
|
784
|
+
form_params = opts[:form_params] || {}
|
785
|
+
|
786
|
+
# http body (model)
|
787
|
+
post_body = opts[:debug_body]
|
788
|
+
|
789
|
+
# return_type
|
790
|
+
return_type = opts[:debug_return_type] || 'GetEmailOpensReport200Response'
|
791
|
+
|
792
|
+
# auth_names
|
793
|
+
auth_names = opts[:debug_auth_names] || ['oauth2_access_code', 'oauth2_implicit']
|
794
|
+
|
795
|
+
new_options = opts.merge(
|
796
|
+
:operation => :"EmailReportingApi.get_unique_opens_report",
|
797
|
+
:header_params => header_params,
|
798
|
+
:query_params => query_params,
|
799
|
+
:form_params => form_params,
|
800
|
+
:body => post_body,
|
801
|
+
:auth_names => auth_names,
|
802
|
+
:return_type => return_type
|
803
|
+
)
|
804
|
+
|
805
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
806
|
+
if @api_client.config.debugging
|
807
|
+
@api_client.config.logger.debug "API called: EmailReportingApi#get_unique_opens_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
808
|
+
end
|
809
|
+
return data, status_code, headers
|
810
|
+
end
|
811
|
+
end
|
812
|
+
end
|