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,1035 @@
|
|
1
|
+
# ConstantContactClient::BulkActivitiesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cc.email/v3*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_csv_import_activity**](BulkActivitiesApi.md#create_csv_import_activity) | **POST** /activities/contacts_file_import | Import Contacts using a CSV File |
|
8
|
+
| [**create_delete_activity**](BulkActivitiesApi.md#create_delete_activity) | **POST** /activities/contact_delete | Delete Contacts in Bulk |
|
9
|
+
| [**create_export_activity**](BulkActivitiesApi.md#create_export_activity) | **POST** /activities/contact_exports | Export Contacts to a File |
|
10
|
+
| [**create_import_json_activity**](BulkActivitiesApi.md#create_import_json_activity) | **POST** /activities/contacts_json_import | Import Contacts using a JSON Payload |
|
11
|
+
| [**create_list_add_activity**](BulkActivitiesApi.md#create_list_add_activity) | **POST** /activities/add_list_memberships | Add Contacts to Lists |
|
12
|
+
| [**create_list_delete_activity**](BulkActivitiesApi.md#create_list_delete_activity) | **POST** /activities/list_delete | Delete Contact Lists |
|
13
|
+
| [**create_list_remove_activity**](BulkActivitiesApi.md#create_list_remove_activity) | **POST** /activities/remove_list_memberships | Remove Contacts from Lists |
|
14
|
+
| [**create_tag_add_contact_activity**](BulkActivitiesApi.md#create_tag_add_contact_activity) | **POST** /activities/contacts_taggings_add | Add Tags to Contacts |
|
15
|
+
| [**create_tag_delete_activity**](BulkActivitiesApi.md#create_tag_delete_activity) | **POST** /activities/contacts_tags_delete | Delete Tags |
|
16
|
+
| [**create_tag_remove_activity**](BulkActivitiesApi.md#create_tag_remove_activity) | **POST** /activities/contacts_taggings_remove | Remove Tags from Contacts |
|
17
|
+
| [**get_activity_by_id**](BulkActivitiesApi.md#get_activity_by_id) | **GET** /activities/{activity_id} | GET an Activity Status |
|
18
|
+
| [**get_all_activities**](BulkActivitiesApi.md#get_all_activities) | **GET** /activities | GET Activity Status Collection |
|
19
|
+
| [**get_csv_export_file**](BulkActivitiesApi.md#get_csv_export_file) | **GET** /contact_exports/{file_export_id} | Retrieve Exported Contacts File |
|
20
|
+
| [**post_custom_field_delete**](BulkActivitiesApi.md#post_custom_field_delete) | **POST** /activities/custom_fields_delete | Delete Custom Fields |
|
21
|
+
|
22
|
+
|
23
|
+
## create_csv_import_activity
|
24
|
+
|
25
|
+
> <CreateCSVImportActivity201Response> create_csv_import_activity(file, list_ids)
|
26
|
+
|
27
|
+
Import Contacts using a CSV File
|
28
|
+
|
29
|
+
This multipart method creates an asynchronous background job that adds or updates contacts by importing a CSV file containing contact information. Do not use a Content-Type header value with this method. Importing a new contact automatically sets the contact's `permission_to_send` property as `implicit` and the `opt_in_source` property as `Account`. Importing an existing contact only updates the contact properties you include in the request. The CSV file has a maximum of 40,000 lines including the header row (39,999 contacts) and a maximum file size of 4 megabytes (MB). Lines above the 40,000 line maximum are not processed. If the request body exceeds 4 MB, only the contacts contained in the first 4 MB are imported and the remaining data is dropped.
|
30
|
+
|
31
|
+
### Examples
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
require 'time'
|
35
|
+
require 'constant_contact_client'
|
36
|
+
# setup authorization
|
37
|
+
ConstantContactClient.configure do |config|
|
38
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
39
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
40
|
+
|
41
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
42
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
43
|
+
end
|
44
|
+
|
45
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
46
|
+
file = File.new('/path/to/some/file') # File | The CSV file you are importing. The column headings that you can use in the file are: `first_name`, `last_name`, `email`, `phone`, `job_title`, `anniversary`, `birthday_day`, `birthday_month`, `company_name`, `street`, `street2`, `city`, `state`, `zip`, and `country`. The only required column heading is `email`. You can also use custom fields as column headings. Enter the custom field name prefixed with `cf:` as the column heading. For example, use `cf:first_name` as the header name if you have a custom field named \\\"first_name\\\". The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
|
47
|
+
list_ids = ['inner_example'] # Array<String> | Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact `list_id` values.
|
48
|
+
|
49
|
+
begin
|
50
|
+
# Import Contacts using a CSV File
|
51
|
+
result = api_instance.create_csv_import_activity(file, list_ids)
|
52
|
+
p result
|
53
|
+
rescue ConstantContactClient::ApiError => e
|
54
|
+
puts "Error when calling BulkActivitiesApi->create_csv_import_activity: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
#### Using the create_csv_import_activity_with_http_info variant
|
59
|
+
|
60
|
+
This returns an Array which contains the response data, status code and headers.
|
61
|
+
|
62
|
+
> <Array(<CreateCSVImportActivity201Response>, Integer, Hash)> create_csv_import_activity_with_http_info(file, list_ids)
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
begin
|
66
|
+
# Import Contacts using a CSV File
|
67
|
+
data, status_code, headers = api_instance.create_csv_import_activity_with_http_info(file, list_ids)
|
68
|
+
p status_code # => 2xx
|
69
|
+
p headers # => { ... }
|
70
|
+
p data # => <CreateCSVImportActivity201Response>
|
71
|
+
rescue ConstantContactClient::ApiError => e
|
72
|
+
puts "Error when calling BulkActivitiesApi->create_csv_import_activity_with_http_info: #{e}"
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
| Name | Type | Description | Notes |
|
79
|
+
| ---- | ---- | ----------- | ----- |
|
80
|
+
| **file** | **File** | The CSV file you are importing. The column headings that you can use in the file are: `first_name`, `last_name`, `email`, `phone`, `job_title`, `anniversary`, `birthday_day`, `birthday_month`, `company_name`, `street`, `street2`, `city`, `state`, `zip`, and `country`. The only required column heading is `email`. You can also use custom fields as column headings. Enter the custom field name prefixed with `cf:` as the column heading. For example, use `cf:first_name` as the header name if you have a custom field named \\\"first_name\\\". The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields. | |
|
81
|
+
| **list_ids** | [**Array<String>**](String.md) | Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact `list_id` values. | |
|
82
|
+
|
83
|
+
### Return type
|
84
|
+
|
85
|
+
[**CreateCSVImportActivity201Response**](CreateCSVImportActivity201Response.md)
|
86
|
+
|
87
|
+
### Authorization
|
88
|
+
|
89
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
90
|
+
|
91
|
+
### HTTP request headers
|
92
|
+
|
93
|
+
- **Content-Type**: multipart/form-data
|
94
|
+
- **Accept**: application/json
|
95
|
+
|
96
|
+
|
97
|
+
## create_delete_activity
|
98
|
+
|
99
|
+
> <CreateDeleteActivity201Response> create_delete_activity(create_delete_activity_request)
|
100
|
+
|
101
|
+
Delete Contacts in Bulk
|
102
|
+
|
103
|
+
Use this endpoint to bulk delete contacts in an account. Contacts to delete are specified by contact_id (up to 500), or by list_id (up to 50 lists); all contacts that are members of the list_ids are deleted. Deleted contacts won’t receive email from you, and they don’t count as active contacts. Unlike unsubscribed contacts, deleted contacts can be added back to an account. [Learn how to revive deleted contacts](/api_guide/contacts_delete.html#revive).
|
104
|
+
|
105
|
+
### Examples
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
require 'time'
|
109
|
+
require 'constant_contact_client'
|
110
|
+
# setup authorization
|
111
|
+
ConstantContactClient.configure do |config|
|
112
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
113
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
114
|
+
|
115
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
116
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
117
|
+
end
|
118
|
+
|
119
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
120
|
+
create_delete_activity_request = ConstantContactClient::CreateDeleteActivityRequest.new # CreateDeleteActivityRequest | The request body contains an array of contact_ids <em>or</em> list_ids. All contact_ids provided are deleted, or all members of each specified list_id are deleted.
|
121
|
+
|
122
|
+
begin
|
123
|
+
# Delete Contacts in Bulk
|
124
|
+
result = api_instance.create_delete_activity(create_delete_activity_request)
|
125
|
+
p result
|
126
|
+
rescue ConstantContactClient::ApiError => e
|
127
|
+
puts "Error when calling BulkActivitiesApi->create_delete_activity: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
#### Using the create_delete_activity_with_http_info variant
|
132
|
+
|
133
|
+
This returns an Array which contains the response data, status code and headers.
|
134
|
+
|
135
|
+
> <Array(<CreateDeleteActivity201Response>, Integer, Hash)> create_delete_activity_with_http_info(create_delete_activity_request)
|
136
|
+
|
137
|
+
```ruby
|
138
|
+
begin
|
139
|
+
# Delete Contacts in Bulk
|
140
|
+
data, status_code, headers = api_instance.create_delete_activity_with_http_info(create_delete_activity_request)
|
141
|
+
p status_code # => 2xx
|
142
|
+
p headers # => { ... }
|
143
|
+
p data # => <CreateDeleteActivity201Response>
|
144
|
+
rescue ConstantContactClient::ApiError => e
|
145
|
+
puts "Error when calling BulkActivitiesApi->create_delete_activity_with_http_info: #{e}"
|
146
|
+
end
|
147
|
+
```
|
148
|
+
|
149
|
+
### Parameters
|
150
|
+
|
151
|
+
| Name | Type | Description | Notes |
|
152
|
+
| ---- | ---- | ----------- | ----- |
|
153
|
+
| **create_delete_activity_request** | [**CreateDeleteActivityRequest**](CreateDeleteActivityRequest.md) | The request body contains an array of contact_ids <em>or</em> list_ids. All contact_ids provided are deleted, or all members of each specified list_id are deleted. | |
|
154
|
+
|
155
|
+
### Return type
|
156
|
+
|
157
|
+
[**CreateDeleteActivity201Response**](CreateDeleteActivity201Response.md)
|
158
|
+
|
159
|
+
### Authorization
|
160
|
+
|
161
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
162
|
+
|
163
|
+
### HTTP request headers
|
164
|
+
|
165
|
+
- **Content-Type**: application/json
|
166
|
+
- **Accept**: application/json
|
167
|
+
|
168
|
+
|
169
|
+
## create_export_activity
|
170
|
+
|
171
|
+
> <CreateExportActivity201Response> create_export_activity(create_export_activity_request)
|
172
|
+
|
173
|
+
Export Contacts to a File
|
174
|
+
|
175
|
+
Use this method to create an activity that exports contacts and contact details to a CSV file. By default, all contacts are exported. To filter contacts to export, specify the source to use, `contact_id`, `list_id`, or `segment_id` (all mutually exclusive). By default, all contact related fields are exported. Use the fields array to only export specific contact fields. You must export `email_address` to successfully export `email_optin_source`, `email_optin_date`, `email_optout_source`, `email_optout_date`, or `email_optout_reason`. After Constant Contact finishes processing the activity, use the `results` link in the response body to retrieve the CSV file.
|
176
|
+
|
177
|
+
### Examples
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
require 'time'
|
181
|
+
require 'constant_contact_client'
|
182
|
+
# setup authorization
|
183
|
+
ConstantContactClient.configure do |config|
|
184
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
185
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
186
|
+
|
187
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
188
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
189
|
+
end
|
190
|
+
|
191
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
192
|
+
create_export_activity_request = ConstantContactClient::CreateExportActivityRequest.new # CreateExportActivityRequest | A JSON payload that specifies the contacts (rows in the CSV file) and contact properties (columns in the CSV file) you want to export.
|
193
|
+
|
194
|
+
begin
|
195
|
+
# Export Contacts to a File
|
196
|
+
result = api_instance.create_export_activity(create_export_activity_request)
|
197
|
+
p result
|
198
|
+
rescue ConstantContactClient::ApiError => e
|
199
|
+
puts "Error when calling BulkActivitiesApi->create_export_activity: #{e}"
|
200
|
+
end
|
201
|
+
```
|
202
|
+
|
203
|
+
#### Using the create_export_activity_with_http_info variant
|
204
|
+
|
205
|
+
This returns an Array which contains the response data, status code and headers.
|
206
|
+
|
207
|
+
> <Array(<CreateExportActivity201Response>, Integer, Hash)> create_export_activity_with_http_info(create_export_activity_request)
|
208
|
+
|
209
|
+
```ruby
|
210
|
+
begin
|
211
|
+
# Export Contacts to a File
|
212
|
+
data, status_code, headers = api_instance.create_export_activity_with_http_info(create_export_activity_request)
|
213
|
+
p status_code # => 2xx
|
214
|
+
p headers # => { ... }
|
215
|
+
p data # => <CreateExportActivity201Response>
|
216
|
+
rescue ConstantContactClient::ApiError => e
|
217
|
+
puts "Error when calling BulkActivitiesApi->create_export_activity_with_http_info: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
| Name | Type | Description | Notes |
|
224
|
+
| ---- | ---- | ----------- | ----- |
|
225
|
+
| **create_export_activity_request** | [**CreateExportActivityRequest**](CreateExportActivityRequest.md) | A JSON payload that specifies the contacts (rows in the CSV file) and contact properties (columns in the CSV file) you want to export. | |
|
226
|
+
|
227
|
+
### Return type
|
228
|
+
|
229
|
+
[**CreateExportActivity201Response**](CreateExportActivity201Response.md)
|
230
|
+
|
231
|
+
### Authorization
|
232
|
+
|
233
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
234
|
+
|
235
|
+
### HTTP request headers
|
236
|
+
|
237
|
+
- **Content-Type**: application/json
|
238
|
+
- **Accept**: application/json
|
239
|
+
|
240
|
+
|
241
|
+
## create_import_json_activity
|
242
|
+
|
243
|
+
> <CreateCSVImportActivity201Response> create_import_json_activity(create_import_json_activity_request)
|
244
|
+
|
245
|
+
Import Contacts using a JSON Payload
|
246
|
+
|
247
|
+
Use this method to create an asynchronous background job that adds new contacts or updates existing contacts by importing a JSON payload. This method requires a request body that contains the contact data you are importing and the contact lists to which you want to add the imported contacts. Importing a new contact automatically sets the contact's `permission_to_send` property as `implicit` and the `opt_in_source` property as `Account`. Importing an existing contact only updates the contact properties you include in the request. For each contact, you can import up to three addresses and three phone numbers. International phone numbers are currently not supported. To import custom fields, prefix the custom field name with `cf:` and add it as a contact property. For example, use the property name `cf:first_name` if you have a custom field named first_name. The custom field must already exist in the Constant Contact account you are using. Each contact can contain up to 25 custom fields. The request body payload has a maximum size of 4 megabytes (MB). If the request body exceeds 4 MB, this method only imports the first 4 MB and drops the remaining data. Use the activity URL to check the status of the import activity request.
|
248
|
+
|
249
|
+
### Examples
|
250
|
+
|
251
|
+
```ruby
|
252
|
+
require 'time'
|
253
|
+
require 'constant_contact_client'
|
254
|
+
# setup authorization
|
255
|
+
ConstantContactClient.configure do |config|
|
256
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
257
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
258
|
+
|
259
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
260
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
261
|
+
end
|
262
|
+
|
263
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
264
|
+
create_import_json_activity_request = ConstantContactClient::CreateImportJSONActivityRequest.new({import_data: [ConstantContactClient::CreateImportJSONActivityRequestImportDataInner.new({email: 'joe.jones@example.com'})], list_ids: ['04fe9a97-a579-43c5-bb1a-58ed29bf0a6a']}) # CreateImportJSONActivityRequest | The JSON request payload that contains the contact data and contact lists for the import.
|
265
|
+
|
266
|
+
begin
|
267
|
+
# Import Contacts using a JSON Payload
|
268
|
+
result = api_instance.create_import_json_activity(create_import_json_activity_request)
|
269
|
+
p result
|
270
|
+
rescue ConstantContactClient::ApiError => e
|
271
|
+
puts "Error when calling BulkActivitiesApi->create_import_json_activity: #{e}"
|
272
|
+
end
|
273
|
+
```
|
274
|
+
|
275
|
+
#### Using the create_import_json_activity_with_http_info variant
|
276
|
+
|
277
|
+
This returns an Array which contains the response data, status code and headers.
|
278
|
+
|
279
|
+
> <Array(<CreateCSVImportActivity201Response>, Integer, Hash)> create_import_json_activity_with_http_info(create_import_json_activity_request)
|
280
|
+
|
281
|
+
```ruby
|
282
|
+
begin
|
283
|
+
# Import Contacts using a JSON Payload
|
284
|
+
data, status_code, headers = api_instance.create_import_json_activity_with_http_info(create_import_json_activity_request)
|
285
|
+
p status_code # => 2xx
|
286
|
+
p headers # => { ... }
|
287
|
+
p data # => <CreateCSVImportActivity201Response>
|
288
|
+
rescue ConstantContactClient::ApiError => e
|
289
|
+
puts "Error when calling BulkActivitiesApi->create_import_json_activity_with_http_info: #{e}"
|
290
|
+
end
|
291
|
+
```
|
292
|
+
|
293
|
+
### Parameters
|
294
|
+
|
295
|
+
| Name | Type | Description | Notes |
|
296
|
+
| ---- | ---- | ----------- | ----- |
|
297
|
+
| **create_import_json_activity_request** | [**CreateImportJSONActivityRequest**](CreateImportJSONActivityRequest.md) | The JSON request payload that contains the contact data and contact lists for the import. | |
|
298
|
+
|
299
|
+
### Return type
|
300
|
+
|
301
|
+
[**CreateCSVImportActivity201Response**](CreateCSVImportActivity201Response.md)
|
302
|
+
|
303
|
+
### Authorization
|
304
|
+
|
305
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
306
|
+
|
307
|
+
### HTTP request headers
|
308
|
+
|
309
|
+
- **Content-Type**: application/json
|
310
|
+
- **Accept**: application/json
|
311
|
+
|
312
|
+
|
313
|
+
## create_list_add_activity
|
314
|
+
|
315
|
+
> <CreateListRemoveActivity201Response> create_list_add_activity(create_list_add_activity_request)
|
316
|
+
|
317
|
+
Add Contacts to Lists
|
318
|
+
|
319
|
+
Use this method to create an activity that adds contacts to one or more lists. Each contact can be a member of up to 50 lists. Use the properties in the `source` object to specify the contacts you want to add to lists. Use the `list_ids` array to specify which lists you want to add your source contacts to.
|
320
|
+
|
321
|
+
### Examples
|
322
|
+
|
323
|
+
```ruby
|
324
|
+
require 'time'
|
325
|
+
require 'constant_contact_client'
|
326
|
+
# setup authorization
|
327
|
+
ConstantContactClient.configure do |config|
|
328
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
329
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
330
|
+
|
331
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
332
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
333
|
+
end
|
334
|
+
|
335
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
336
|
+
create_list_add_activity_request = ConstantContactClient::CreateListAddActivityRequest.new({source: ConstantContactClient::CreateListAddActivityRequestSource.new, list_ids: ['04fe9a97-a579-43c5-bb1a-58ed29bf0a6a']}) # CreateListAddActivityRequest | The JSON payload used to create the 'add contacts to lists' activity
|
337
|
+
|
338
|
+
begin
|
339
|
+
# Add Contacts to Lists
|
340
|
+
result = api_instance.create_list_add_activity(create_list_add_activity_request)
|
341
|
+
p result
|
342
|
+
rescue ConstantContactClient::ApiError => e
|
343
|
+
puts "Error when calling BulkActivitiesApi->create_list_add_activity: #{e}"
|
344
|
+
end
|
345
|
+
```
|
346
|
+
|
347
|
+
#### Using the create_list_add_activity_with_http_info variant
|
348
|
+
|
349
|
+
This returns an Array which contains the response data, status code and headers.
|
350
|
+
|
351
|
+
> <Array(<CreateListRemoveActivity201Response>, Integer, Hash)> create_list_add_activity_with_http_info(create_list_add_activity_request)
|
352
|
+
|
353
|
+
```ruby
|
354
|
+
begin
|
355
|
+
# Add Contacts to Lists
|
356
|
+
data, status_code, headers = api_instance.create_list_add_activity_with_http_info(create_list_add_activity_request)
|
357
|
+
p status_code # => 2xx
|
358
|
+
p headers # => { ... }
|
359
|
+
p data # => <CreateListRemoveActivity201Response>
|
360
|
+
rescue ConstantContactClient::ApiError => e
|
361
|
+
puts "Error when calling BulkActivitiesApi->create_list_add_activity_with_http_info: #{e}"
|
362
|
+
end
|
363
|
+
```
|
364
|
+
|
365
|
+
### Parameters
|
366
|
+
|
367
|
+
| Name | Type | Description | Notes |
|
368
|
+
| ---- | ---- | ----------- | ----- |
|
369
|
+
| **create_list_add_activity_request** | [**CreateListAddActivityRequest**](CreateListAddActivityRequest.md) | The JSON payload used to create the 'add contacts to lists' activity | |
|
370
|
+
|
371
|
+
### Return type
|
372
|
+
|
373
|
+
[**CreateListRemoveActivity201Response**](CreateListRemoveActivity201Response.md)
|
374
|
+
|
375
|
+
### Authorization
|
376
|
+
|
377
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
378
|
+
|
379
|
+
### HTTP request headers
|
380
|
+
|
381
|
+
- **Content-Type**: application/json
|
382
|
+
- **Accept**: application/json
|
383
|
+
|
384
|
+
|
385
|
+
## create_list_delete_activity
|
386
|
+
|
387
|
+
> <CreateListDeleteActivity201Response> create_list_delete_activity(create_list_delete_activity_request)
|
388
|
+
|
389
|
+
Delete Contact Lists
|
390
|
+
|
391
|
+
Use this endpoint to delete up to 100 contact lists in an account.
|
392
|
+
|
393
|
+
### Examples
|
394
|
+
|
395
|
+
```ruby
|
396
|
+
require 'time'
|
397
|
+
require 'constant_contact_client'
|
398
|
+
# setup authorization
|
399
|
+
ConstantContactClient.configure do |config|
|
400
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
401
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
402
|
+
|
403
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
404
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
405
|
+
end
|
406
|
+
|
407
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
408
|
+
create_list_delete_activity_request = ConstantContactClient::CreateListDeleteActivityRequest.new({list_ids: ['04fe9a97-a579-43c5-bb1a-58ed29bf0a6a']}) # CreateListDeleteActivityRequest | An array of `list_id`'s to delete.
|
409
|
+
|
410
|
+
begin
|
411
|
+
# Delete Contact Lists
|
412
|
+
result = api_instance.create_list_delete_activity(create_list_delete_activity_request)
|
413
|
+
p result
|
414
|
+
rescue ConstantContactClient::ApiError => e
|
415
|
+
puts "Error when calling BulkActivitiesApi->create_list_delete_activity: #{e}"
|
416
|
+
end
|
417
|
+
```
|
418
|
+
|
419
|
+
#### Using the create_list_delete_activity_with_http_info variant
|
420
|
+
|
421
|
+
This returns an Array which contains the response data, status code and headers.
|
422
|
+
|
423
|
+
> <Array(<CreateListDeleteActivity201Response>, Integer, Hash)> create_list_delete_activity_with_http_info(create_list_delete_activity_request)
|
424
|
+
|
425
|
+
```ruby
|
426
|
+
begin
|
427
|
+
# Delete Contact Lists
|
428
|
+
data, status_code, headers = api_instance.create_list_delete_activity_with_http_info(create_list_delete_activity_request)
|
429
|
+
p status_code # => 2xx
|
430
|
+
p headers # => { ... }
|
431
|
+
p data # => <CreateListDeleteActivity201Response>
|
432
|
+
rescue ConstantContactClient::ApiError => e
|
433
|
+
puts "Error when calling BulkActivitiesApi->create_list_delete_activity_with_http_info: #{e}"
|
434
|
+
end
|
435
|
+
```
|
436
|
+
|
437
|
+
### Parameters
|
438
|
+
|
439
|
+
| Name | Type | Description | Notes |
|
440
|
+
| ---- | ---- | ----------- | ----- |
|
441
|
+
| **create_list_delete_activity_request** | [**CreateListDeleteActivityRequest**](CreateListDeleteActivityRequest.md) | An array of `list_id`'s to delete. | |
|
442
|
+
|
443
|
+
### Return type
|
444
|
+
|
445
|
+
[**CreateListDeleteActivity201Response**](CreateListDeleteActivity201Response.md)
|
446
|
+
|
447
|
+
### Authorization
|
448
|
+
|
449
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
450
|
+
|
451
|
+
### HTTP request headers
|
452
|
+
|
453
|
+
- **Content-Type**: application/json
|
454
|
+
- **Accept**: application/json
|
455
|
+
|
456
|
+
|
457
|
+
## create_list_remove_activity
|
458
|
+
|
459
|
+
> <CreateListRemoveActivity201Response> create_list_remove_activity(create_list_remove_activity_request)
|
460
|
+
|
461
|
+
Remove Contacts from Lists
|
462
|
+
|
463
|
+
Use this method to create an activity that removes contacts from one or more contact lists. Use the properties in the `source` object to remove specific contacts from your lists. Use the `list_ids` array to specify the target lists from which contacts are removed. Optionally, if the source is `all_active_contacts` (billable) or `list_ids`, use the `exclude` object to exclude specific contacts from being removed from the destination lists.
|
464
|
+
|
465
|
+
### Examples
|
466
|
+
|
467
|
+
```ruby
|
468
|
+
require 'time'
|
469
|
+
require 'constant_contact_client'
|
470
|
+
# setup authorization
|
471
|
+
ConstantContactClient.configure do |config|
|
472
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
473
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
474
|
+
|
475
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
476
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
477
|
+
end
|
478
|
+
|
479
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
480
|
+
create_list_remove_activity_request = ConstantContactClient::CreateListRemoveActivityRequest.new({source: ConstantContactClient::CreateListRemoveActivityRequestSource.new, list_ids: ['04fe9a97-a579-43c5-bb1a-58ed29bf0a6a']}) # CreateListRemoveActivityRequest | The JSON payload used to create the Remove Contacts from Lists' activity
|
481
|
+
|
482
|
+
begin
|
483
|
+
# Remove Contacts from Lists
|
484
|
+
result = api_instance.create_list_remove_activity(create_list_remove_activity_request)
|
485
|
+
p result
|
486
|
+
rescue ConstantContactClient::ApiError => e
|
487
|
+
puts "Error when calling BulkActivitiesApi->create_list_remove_activity: #{e}"
|
488
|
+
end
|
489
|
+
```
|
490
|
+
|
491
|
+
#### Using the create_list_remove_activity_with_http_info variant
|
492
|
+
|
493
|
+
This returns an Array which contains the response data, status code and headers.
|
494
|
+
|
495
|
+
> <Array(<CreateListRemoveActivity201Response>, Integer, Hash)> create_list_remove_activity_with_http_info(create_list_remove_activity_request)
|
496
|
+
|
497
|
+
```ruby
|
498
|
+
begin
|
499
|
+
# Remove Contacts from Lists
|
500
|
+
data, status_code, headers = api_instance.create_list_remove_activity_with_http_info(create_list_remove_activity_request)
|
501
|
+
p status_code # => 2xx
|
502
|
+
p headers # => { ... }
|
503
|
+
p data # => <CreateListRemoveActivity201Response>
|
504
|
+
rescue ConstantContactClient::ApiError => e
|
505
|
+
puts "Error when calling BulkActivitiesApi->create_list_remove_activity_with_http_info: #{e}"
|
506
|
+
end
|
507
|
+
```
|
508
|
+
|
509
|
+
### Parameters
|
510
|
+
|
511
|
+
| Name | Type | Description | Notes |
|
512
|
+
| ---- | ---- | ----------- | ----- |
|
513
|
+
| **create_list_remove_activity_request** | [**CreateListRemoveActivityRequest**](CreateListRemoveActivityRequest.md) | The JSON payload used to create the Remove Contacts from Lists' activity | |
|
514
|
+
|
515
|
+
### Return type
|
516
|
+
|
517
|
+
[**CreateListRemoveActivity201Response**](CreateListRemoveActivity201Response.md)
|
518
|
+
|
519
|
+
### Authorization
|
520
|
+
|
521
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
522
|
+
|
523
|
+
### HTTP request headers
|
524
|
+
|
525
|
+
- **Content-Type**: application/json
|
526
|
+
- **Accept**: application/json
|
527
|
+
|
528
|
+
|
529
|
+
## create_tag_add_contact_activity
|
530
|
+
|
531
|
+
> <CreateTagRemoveActivity201Response> create_tag_add_contact_activity(create_tag_remove_activity_request)
|
532
|
+
|
533
|
+
Add Tags to Contacts
|
534
|
+
|
535
|
+
Use this method to create an asynchronous activity that adds one or more tags to all contacts meeting your contact filtering criteria. Use the `source` type to identify contacts from which the specified tags (`tag_id`) are added. Source criteria are mutually exclusive. If the source is `all_active_contacts` or `list_ids`, you can optionally choose to `exclude` contacts by `contact_id`. Use the activity link in the results to check the status of your request. For more use case information, see \"[Add Tags to Contacts](/api_guide/add_tagging_activity.html)
|
536
|
+
|
537
|
+
### Examples
|
538
|
+
|
539
|
+
```ruby
|
540
|
+
require 'time'
|
541
|
+
require 'constant_contact_client'
|
542
|
+
# setup authorization
|
543
|
+
ConstantContactClient.configure do |config|
|
544
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
545
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
546
|
+
|
547
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
548
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
549
|
+
end
|
550
|
+
|
551
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
552
|
+
create_tag_remove_activity_request = ConstantContactClient::CreateTagRemoveActivityRequest.new({source: ConstantContactClient::CreateTagRemoveActivityRequestSource.new, tag_ids: ['5bbf758c-d8ce-11e9-8d3a-fa163e56c9b0']}) # CreateTagRemoveActivityRequest | The JSON payload used to create an asynchronous activity that adds tags to contacts that meet your specified contact filtering criteria.
|
553
|
+
|
554
|
+
begin
|
555
|
+
# Add Tags to Contacts
|
556
|
+
result = api_instance.create_tag_add_contact_activity(create_tag_remove_activity_request)
|
557
|
+
p result
|
558
|
+
rescue ConstantContactClient::ApiError => e
|
559
|
+
puts "Error when calling BulkActivitiesApi->create_tag_add_contact_activity: #{e}"
|
560
|
+
end
|
561
|
+
```
|
562
|
+
|
563
|
+
#### Using the create_tag_add_contact_activity_with_http_info variant
|
564
|
+
|
565
|
+
This returns an Array which contains the response data, status code and headers.
|
566
|
+
|
567
|
+
> <Array(<CreateTagRemoveActivity201Response>, Integer, Hash)> create_tag_add_contact_activity_with_http_info(create_tag_remove_activity_request)
|
568
|
+
|
569
|
+
```ruby
|
570
|
+
begin
|
571
|
+
# Add Tags to Contacts
|
572
|
+
data, status_code, headers = api_instance.create_tag_add_contact_activity_with_http_info(create_tag_remove_activity_request)
|
573
|
+
p status_code # => 2xx
|
574
|
+
p headers # => { ... }
|
575
|
+
p data # => <CreateTagRemoveActivity201Response>
|
576
|
+
rescue ConstantContactClient::ApiError => e
|
577
|
+
puts "Error when calling BulkActivitiesApi->create_tag_add_contact_activity_with_http_info: #{e}"
|
578
|
+
end
|
579
|
+
```
|
580
|
+
|
581
|
+
### Parameters
|
582
|
+
|
583
|
+
| Name | Type | Description | Notes |
|
584
|
+
| ---- | ---- | ----------- | ----- |
|
585
|
+
| **create_tag_remove_activity_request** | [**CreateTagRemoveActivityRequest**](CreateTagRemoveActivityRequest.md) | The JSON payload used to create an asynchronous activity that adds tags to contacts that meet your specified contact filtering criteria. | |
|
586
|
+
|
587
|
+
### Return type
|
588
|
+
|
589
|
+
[**CreateTagRemoveActivity201Response**](CreateTagRemoveActivity201Response.md)
|
590
|
+
|
591
|
+
### Authorization
|
592
|
+
|
593
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
594
|
+
|
595
|
+
### HTTP request headers
|
596
|
+
|
597
|
+
- **Content-Type**: application/json
|
598
|
+
- **Accept**: application/json
|
599
|
+
|
600
|
+
|
601
|
+
## create_tag_delete_activity
|
602
|
+
|
603
|
+
> <CreateTagRemoveActivity201Response> create_tag_delete_activity(create_tag_delete_activity_request)
|
604
|
+
|
605
|
+
Delete Tags
|
606
|
+
|
607
|
+
Use this method to create an asynchronous activity that deletes up to 500 tags. Deleted tags are automatically removed from tagged contacts. Use the `tag_ids` array of string values in the request body to specify which tags to delete.
|
608
|
+
|
609
|
+
### Examples
|
610
|
+
|
611
|
+
```ruby
|
612
|
+
require 'time'
|
613
|
+
require 'constant_contact_client'
|
614
|
+
# setup authorization
|
615
|
+
ConstantContactClient.configure do |config|
|
616
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
617
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
618
|
+
|
619
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
620
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
621
|
+
end
|
622
|
+
|
623
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
624
|
+
create_tag_delete_activity_request = ConstantContactClient::CreateTagDeleteActivityRequest.new({tag_ids: ['00e4429c-3beb-11eb-9f34-fa163e56c9b9']}) # CreateTagDeleteActivityRequest | An array of string values (`tag_id`s) to delete.
|
625
|
+
|
626
|
+
begin
|
627
|
+
# Delete Tags
|
628
|
+
result = api_instance.create_tag_delete_activity(create_tag_delete_activity_request)
|
629
|
+
p result
|
630
|
+
rescue ConstantContactClient::ApiError => e
|
631
|
+
puts "Error when calling BulkActivitiesApi->create_tag_delete_activity: #{e}"
|
632
|
+
end
|
633
|
+
```
|
634
|
+
|
635
|
+
#### Using the create_tag_delete_activity_with_http_info variant
|
636
|
+
|
637
|
+
This returns an Array which contains the response data, status code and headers.
|
638
|
+
|
639
|
+
> <Array(<CreateTagRemoveActivity201Response>, Integer, Hash)> create_tag_delete_activity_with_http_info(create_tag_delete_activity_request)
|
640
|
+
|
641
|
+
```ruby
|
642
|
+
begin
|
643
|
+
# Delete Tags
|
644
|
+
data, status_code, headers = api_instance.create_tag_delete_activity_with_http_info(create_tag_delete_activity_request)
|
645
|
+
p status_code # => 2xx
|
646
|
+
p headers # => { ... }
|
647
|
+
p data # => <CreateTagRemoveActivity201Response>
|
648
|
+
rescue ConstantContactClient::ApiError => e
|
649
|
+
puts "Error when calling BulkActivitiesApi->create_tag_delete_activity_with_http_info: #{e}"
|
650
|
+
end
|
651
|
+
```
|
652
|
+
|
653
|
+
### Parameters
|
654
|
+
|
655
|
+
| Name | Type | Description | Notes |
|
656
|
+
| ---- | ---- | ----------- | ----- |
|
657
|
+
| **create_tag_delete_activity_request** | [**CreateTagDeleteActivityRequest**](CreateTagDeleteActivityRequest.md) | An array of string values (`tag_id`s) to delete. | |
|
658
|
+
|
659
|
+
### Return type
|
660
|
+
|
661
|
+
[**CreateTagRemoveActivity201Response**](CreateTagRemoveActivity201Response.md)
|
662
|
+
|
663
|
+
### Authorization
|
664
|
+
|
665
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
666
|
+
|
667
|
+
### HTTP request headers
|
668
|
+
|
669
|
+
- **Content-Type**: application/json
|
670
|
+
- **Accept**: application/json
|
671
|
+
|
672
|
+
|
673
|
+
## create_tag_remove_activity
|
674
|
+
|
675
|
+
> <CreateTagRemoveActivity201Response> create_tag_remove_activity(create_tag_remove_activity_request)
|
676
|
+
|
677
|
+
Remove Tags from Contacts
|
678
|
+
|
679
|
+
Use this method to create an asynchronous activity that removes one or more tags from all contacts meeting your contact filtering criteria. Filtering criteria must include the `source` type used to identify contacts from which the specified tags (`tag_id`) are removed. Source types are mutually exclusive. If the specified source is either `all_active_contacts` or `list_ids`, you can optionally choose to `exclude` specified contacts by `contact_id`. Use the activity link in the results to check the status of your request.\" For more use case information, see \"[Remove Tags from Contacts](/api_guide/remove_tagging_activity.html)
|
680
|
+
|
681
|
+
### Examples
|
682
|
+
|
683
|
+
```ruby
|
684
|
+
require 'time'
|
685
|
+
require 'constant_contact_client'
|
686
|
+
# setup authorization
|
687
|
+
ConstantContactClient.configure do |config|
|
688
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
689
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
690
|
+
|
691
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
692
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
693
|
+
end
|
694
|
+
|
695
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
696
|
+
create_tag_remove_activity_request = ConstantContactClient::CreateTagRemoveActivityRequest.new({source: ConstantContactClient::CreateTagRemoveActivityRequestSource.new, tag_ids: ['5bbf758c-d8ce-11e9-8d3a-fa163e56c9b0']}) # CreateTagRemoveActivityRequest | The JSON payload used to create an asynchronous activity that removes tags from contacts meeting your specified contact filtering criteria.
|
697
|
+
|
698
|
+
begin
|
699
|
+
# Remove Tags from Contacts
|
700
|
+
result = api_instance.create_tag_remove_activity(create_tag_remove_activity_request)
|
701
|
+
p result
|
702
|
+
rescue ConstantContactClient::ApiError => e
|
703
|
+
puts "Error when calling BulkActivitiesApi->create_tag_remove_activity: #{e}"
|
704
|
+
end
|
705
|
+
```
|
706
|
+
|
707
|
+
#### Using the create_tag_remove_activity_with_http_info variant
|
708
|
+
|
709
|
+
This returns an Array which contains the response data, status code and headers.
|
710
|
+
|
711
|
+
> <Array(<CreateTagRemoveActivity201Response>, Integer, Hash)> create_tag_remove_activity_with_http_info(create_tag_remove_activity_request)
|
712
|
+
|
713
|
+
```ruby
|
714
|
+
begin
|
715
|
+
# Remove Tags from Contacts
|
716
|
+
data, status_code, headers = api_instance.create_tag_remove_activity_with_http_info(create_tag_remove_activity_request)
|
717
|
+
p status_code # => 2xx
|
718
|
+
p headers # => { ... }
|
719
|
+
p data # => <CreateTagRemoveActivity201Response>
|
720
|
+
rescue ConstantContactClient::ApiError => e
|
721
|
+
puts "Error when calling BulkActivitiesApi->create_tag_remove_activity_with_http_info: #{e}"
|
722
|
+
end
|
723
|
+
```
|
724
|
+
|
725
|
+
### Parameters
|
726
|
+
|
727
|
+
| Name | Type | Description | Notes |
|
728
|
+
| ---- | ---- | ----------- | ----- |
|
729
|
+
| **create_tag_remove_activity_request** | [**CreateTagRemoveActivityRequest**](CreateTagRemoveActivityRequest.md) | The JSON payload used to create an asynchronous activity that removes tags from contacts meeting your specified contact filtering criteria. | |
|
730
|
+
|
731
|
+
### Return type
|
732
|
+
|
733
|
+
[**CreateTagRemoveActivity201Response**](CreateTagRemoveActivity201Response.md)
|
734
|
+
|
735
|
+
### Authorization
|
736
|
+
|
737
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
738
|
+
|
739
|
+
### HTTP request headers
|
740
|
+
|
741
|
+
- **Content-Type**: application/json
|
742
|
+
- **Accept**: application/json
|
743
|
+
|
744
|
+
|
745
|
+
## get_activity_by_id
|
746
|
+
|
747
|
+
> <GetActivityById200Response> get_activity_by_id(activity_id)
|
748
|
+
|
749
|
+
GET an Activity Status
|
750
|
+
|
751
|
+
This endpoint returns an activity status report.
|
752
|
+
|
753
|
+
### Examples
|
754
|
+
|
755
|
+
```ruby
|
756
|
+
require 'time'
|
757
|
+
require 'constant_contact_client'
|
758
|
+
# setup authorization
|
759
|
+
ConstantContactClient.configure do |config|
|
760
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
761
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
762
|
+
|
763
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
764
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
765
|
+
end
|
766
|
+
|
767
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
768
|
+
activity_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | The unique ID of the activity to GET
|
769
|
+
|
770
|
+
begin
|
771
|
+
# GET an Activity Status
|
772
|
+
result = api_instance.get_activity_by_id(activity_id)
|
773
|
+
p result
|
774
|
+
rescue ConstantContactClient::ApiError => e
|
775
|
+
puts "Error when calling BulkActivitiesApi->get_activity_by_id: #{e}"
|
776
|
+
end
|
777
|
+
```
|
778
|
+
|
779
|
+
#### Using the get_activity_by_id_with_http_info variant
|
780
|
+
|
781
|
+
This returns an Array which contains the response data, status code and headers.
|
782
|
+
|
783
|
+
> <Array(<GetActivityById200Response>, Integer, Hash)> get_activity_by_id_with_http_info(activity_id)
|
784
|
+
|
785
|
+
```ruby
|
786
|
+
begin
|
787
|
+
# GET an Activity Status
|
788
|
+
data, status_code, headers = api_instance.get_activity_by_id_with_http_info(activity_id)
|
789
|
+
p status_code # => 2xx
|
790
|
+
p headers # => { ... }
|
791
|
+
p data # => <GetActivityById200Response>
|
792
|
+
rescue ConstantContactClient::ApiError => e
|
793
|
+
puts "Error when calling BulkActivitiesApi->get_activity_by_id_with_http_info: #{e}"
|
794
|
+
end
|
795
|
+
```
|
796
|
+
|
797
|
+
### Parameters
|
798
|
+
|
799
|
+
| Name | Type | Description | Notes |
|
800
|
+
| ---- | ---- | ----------- | ----- |
|
801
|
+
| **activity_id** | **String** | The unique ID of the activity to GET | |
|
802
|
+
|
803
|
+
### Return type
|
804
|
+
|
805
|
+
[**GetActivityById200Response**](GetActivityById200Response.md)
|
806
|
+
|
807
|
+
### Authorization
|
808
|
+
|
809
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
810
|
+
|
811
|
+
### HTTP request headers
|
812
|
+
|
813
|
+
- **Content-Type**: Not defined
|
814
|
+
- **Accept**: application/json
|
815
|
+
|
816
|
+
|
817
|
+
## get_all_activities
|
818
|
+
|
819
|
+
> <GetAllActivities200Response> get_all_activities(opts)
|
820
|
+
|
821
|
+
GET Activity Status Collection
|
822
|
+
|
823
|
+
This endpoint returns a collection of activities. Use the state query parameter to include only activities with a specific status (processing, completed, cancelled, failed, or time_out). Use the limit query parameter to define the number of activities returned per page. Learn [more](/api_guide/activity_status.html).
|
824
|
+
|
825
|
+
### Examples
|
826
|
+
|
827
|
+
```ruby
|
828
|
+
require 'time'
|
829
|
+
require 'constant_contact_client'
|
830
|
+
# setup authorization
|
831
|
+
ConstantContactClient.configure do |config|
|
832
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
833
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
834
|
+
|
835
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
836
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
837
|
+
end
|
838
|
+
|
839
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
840
|
+
opts = {
|
841
|
+
limit: 25, # Integer | Specifies the number of results displayed per page of output, from 1 - 500, default = 50.
|
842
|
+
state: 'processing' # String | Use this parameter to filter the response to include only activities in one of the following states: cancelled, completed, failed, processing, or timed_out.
|
843
|
+
}
|
844
|
+
|
845
|
+
begin
|
846
|
+
# GET Activity Status Collection
|
847
|
+
result = api_instance.get_all_activities(opts)
|
848
|
+
p result
|
849
|
+
rescue ConstantContactClient::ApiError => e
|
850
|
+
puts "Error when calling BulkActivitiesApi->get_all_activities: #{e}"
|
851
|
+
end
|
852
|
+
```
|
853
|
+
|
854
|
+
#### Using the get_all_activities_with_http_info variant
|
855
|
+
|
856
|
+
This returns an Array which contains the response data, status code and headers.
|
857
|
+
|
858
|
+
> <Array(<GetAllActivities200Response>, Integer, Hash)> get_all_activities_with_http_info(opts)
|
859
|
+
|
860
|
+
```ruby
|
861
|
+
begin
|
862
|
+
# GET Activity Status Collection
|
863
|
+
data, status_code, headers = api_instance.get_all_activities_with_http_info(opts)
|
864
|
+
p status_code # => 2xx
|
865
|
+
p headers # => { ... }
|
866
|
+
p data # => <GetAllActivities200Response>
|
867
|
+
rescue ConstantContactClient::ApiError => e
|
868
|
+
puts "Error when calling BulkActivitiesApi->get_all_activities_with_http_info: #{e}"
|
869
|
+
end
|
870
|
+
```
|
871
|
+
|
872
|
+
### Parameters
|
873
|
+
|
874
|
+
| Name | Type | Description | Notes |
|
875
|
+
| ---- | ---- | ----------- | ----- |
|
876
|
+
| **limit** | **Integer** | Specifies the number of results displayed per page of output, from 1 - 500, default = 50. | [optional][default to 50] |
|
877
|
+
| **state** | **String** | Use this parameter to filter the response to include only activities in one of the following states: cancelled, completed, failed, processing, or timed_out. | [optional] |
|
878
|
+
|
879
|
+
### Return type
|
880
|
+
|
881
|
+
[**GetAllActivities200Response**](GetAllActivities200Response.md)
|
882
|
+
|
883
|
+
### Authorization
|
884
|
+
|
885
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
886
|
+
|
887
|
+
### HTTP request headers
|
888
|
+
|
889
|
+
- **Content-Type**: Not defined
|
890
|
+
- **Accept**: application/json
|
891
|
+
|
892
|
+
|
893
|
+
## get_csv_export_file
|
894
|
+
|
895
|
+
> String get_csv_export_file(file_export_id)
|
896
|
+
|
897
|
+
Retrieve Exported Contacts File
|
898
|
+
|
899
|
+
Use this endpoint to retrieve (GET) a CSV file containing exported contacts by providing the `activity_id` of a completed CSV export activity.
|
900
|
+
|
901
|
+
### Examples
|
902
|
+
|
903
|
+
```ruby
|
904
|
+
require 'time'
|
905
|
+
require 'constant_contact_client'
|
906
|
+
# setup authorization
|
907
|
+
ConstantContactClient.configure do |config|
|
908
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
909
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
910
|
+
|
911
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
912
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
913
|
+
end
|
914
|
+
|
915
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
916
|
+
file_export_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | The unique ID of the exported file provided in the results: section of the export contacts activity response.
|
917
|
+
|
918
|
+
begin
|
919
|
+
# Retrieve Exported Contacts File
|
920
|
+
result = api_instance.get_csv_export_file(file_export_id)
|
921
|
+
p result
|
922
|
+
rescue ConstantContactClient::ApiError => e
|
923
|
+
puts "Error when calling BulkActivitiesApi->get_csv_export_file: #{e}"
|
924
|
+
end
|
925
|
+
```
|
926
|
+
|
927
|
+
#### Using the get_csv_export_file_with_http_info variant
|
928
|
+
|
929
|
+
This returns an Array which contains the response data, status code and headers.
|
930
|
+
|
931
|
+
> <Array(String, Integer, Hash)> get_csv_export_file_with_http_info(file_export_id)
|
932
|
+
|
933
|
+
```ruby
|
934
|
+
begin
|
935
|
+
# Retrieve Exported Contacts File
|
936
|
+
data, status_code, headers = api_instance.get_csv_export_file_with_http_info(file_export_id)
|
937
|
+
p status_code # => 2xx
|
938
|
+
p headers # => { ... }
|
939
|
+
p data # => String
|
940
|
+
rescue ConstantContactClient::ApiError => e
|
941
|
+
puts "Error when calling BulkActivitiesApi->get_csv_export_file_with_http_info: #{e}"
|
942
|
+
end
|
943
|
+
```
|
944
|
+
|
945
|
+
### Parameters
|
946
|
+
|
947
|
+
| Name | Type | Description | Notes |
|
948
|
+
| ---- | ---- | ----------- | ----- |
|
949
|
+
| **file_export_id** | **String** | The unique ID of the exported file provided in the results: section of the export contacts activity response. | |
|
950
|
+
|
951
|
+
### Return type
|
952
|
+
|
953
|
+
**String**
|
954
|
+
|
955
|
+
### Authorization
|
956
|
+
|
957
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
958
|
+
|
959
|
+
### HTTP request headers
|
960
|
+
|
961
|
+
- **Content-Type**: Not defined
|
962
|
+
- **Accept**: text/csv
|
963
|
+
|
964
|
+
|
965
|
+
## post_custom_field_delete
|
966
|
+
|
967
|
+
> <PostCustomFieldDelete201Response> post_custom_field_delete(post_custom_field_delete_request)
|
968
|
+
|
969
|
+
Delete Custom Fields
|
970
|
+
|
971
|
+
Use this endpoint to delete up to 100 custom fields for an account.
|
972
|
+
|
973
|
+
### Examples
|
974
|
+
|
975
|
+
```ruby
|
976
|
+
require 'time'
|
977
|
+
require 'constant_contact_client'
|
978
|
+
# setup authorization
|
979
|
+
ConstantContactClient.configure do |config|
|
980
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
981
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
982
|
+
|
983
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
984
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
985
|
+
end
|
986
|
+
|
987
|
+
api_instance = ConstantContactClient::BulkActivitiesApi.new
|
988
|
+
post_custom_field_delete_request = ConstantContactClient::PostCustomFieldDeleteRequest.new({custom_field_ids: ['04fe9a97-a579-43c5-bb1a-58ed29bf0a6a']}) # PostCustomFieldDeleteRequest | An array of `custom_field_id`'s to delete.
|
989
|
+
|
990
|
+
begin
|
991
|
+
# Delete Custom Fields
|
992
|
+
result = api_instance.post_custom_field_delete(post_custom_field_delete_request)
|
993
|
+
p result
|
994
|
+
rescue ConstantContactClient::ApiError => e
|
995
|
+
puts "Error when calling BulkActivitiesApi->post_custom_field_delete: #{e}"
|
996
|
+
end
|
997
|
+
```
|
998
|
+
|
999
|
+
#### Using the post_custom_field_delete_with_http_info variant
|
1000
|
+
|
1001
|
+
This returns an Array which contains the response data, status code and headers.
|
1002
|
+
|
1003
|
+
> <Array(<PostCustomFieldDelete201Response>, Integer, Hash)> post_custom_field_delete_with_http_info(post_custom_field_delete_request)
|
1004
|
+
|
1005
|
+
```ruby
|
1006
|
+
begin
|
1007
|
+
# Delete Custom Fields
|
1008
|
+
data, status_code, headers = api_instance.post_custom_field_delete_with_http_info(post_custom_field_delete_request)
|
1009
|
+
p status_code # => 2xx
|
1010
|
+
p headers # => { ... }
|
1011
|
+
p data # => <PostCustomFieldDelete201Response>
|
1012
|
+
rescue ConstantContactClient::ApiError => e
|
1013
|
+
puts "Error when calling BulkActivitiesApi->post_custom_field_delete_with_http_info: #{e}"
|
1014
|
+
end
|
1015
|
+
```
|
1016
|
+
|
1017
|
+
### Parameters
|
1018
|
+
|
1019
|
+
| Name | Type | Description | Notes |
|
1020
|
+
| ---- | ---- | ----------- | ----- |
|
1021
|
+
| **post_custom_field_delete_request** | [**PostCustomFieldDeleteRequest**](PostCustomFieldDeleteRequest.md) | An array of `custom_field_id`'s to delete. | |
|
1022
|
+
|
1023
|
+
### Return type
|
1024
|
+
|
1025
|
+
[**PostCustomFieldDelete201Response**](PostCustomFieldDelete201Response.md)
|
1026
|
+
|
1027
|
+
### Authorization
|
1028
|
+
|
1029
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
1030
|
+
|
1031
|
+
### HTTP request headers
|
1032
|
+
|
1033
|
+
- **Content-Type**: application/json
|
1034
|
+
- **Accept**: application/json
|
1035
|
+
|