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,375 @@
|
|
1
|
+
# ConstantContactClient::ContactsCustomFieldsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cc.email/v3*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_custom_fields**](ContactsCustomFieldsApi.md#create_custom_fields) | **POST** /contact_custom_fields | POST (create) a custom_field |
|
8
|
+
| [**delete_custom_field**](ContactsCustomFieldsApi.md#delete_custom_field) | **DELETE** /contact_custom_fields/{custom_field_id} | DELETE a custom_field |
|
9
|
+
| [**get_all_custom_fields**](ContactsCustomFieldsApi.md#get_all_custom_fields) | **GET** /contact_custom_fields | GET custom_fields Collection |
|
10
|
+
| [**get_custom_field**](ContactsCustomFieldsApi.md#get_custom_field) | **GET** /contact_custom_fields/{custom_field_id} | GET a custom_field |
|
11
|
+
| [**update_custom_field**](ContactsCustomFieldsApi.md#update_custom_field) | **PUT** /contact_custom_fields/{custom_field_id} | PUT (update) a custom_field |
|
12
|
+
|
13
|
+
|
14
|
+
## create_custom_fields
|
15
|
+
|
16
|
+
> <GetCustomField200Response> create_custom_fields(update_custom_field_request)
|
17
|
+
|
18
|
+
POST (create) a custom_field
|
19
|
+
|
20
|
+
This POST request adds a new `custom_field` to the user's account. A user can configure up to 100 `custom_fields` in their account.
|
21
|
+
|
22
|
+
### Examples
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'time'
|
26
|
+
require 'constant_contact_client'
|
27
|
+
# setup authorization
|
28
|
+
ConstantContactClient.configure do |config|
|
29
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
30
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
31
|
+
|
32
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
33
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = ConstantContactClient::ContactsCustomFieldsApi.new
|
37
|
+
update_custom_field_request = ConstantContactClient::UpdateCustomFieldRequest.new({label: 'Vehicle make and model year', type: 'string'}) # UpdateCustomFieldRequest | The JSON payload required to create a new `custom_field`
|
38
|
+
|
39
|
+
begin
|
40
|
+
# POST (create) a custom_field
|
41
|
+
result = api_instance.create_custom_fields(update_custom_field_request)
|
42
|
+
p result
|
43
|
+
rescue ConstantContactClient::ApiError => e
|
44
|
+
puts "Error when calling ContactsCustomFieldsApi->create_custom_fields: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
#### Using the create_custom_fields_with_http_info variant
|
49
|
+
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
51
|
+
|
52
|
+
> <Array(<GetCustomField200Response>, Integer, Hash)> create_custom_fields_with_http_info(update_custom_field_request)
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
begin
|
56
|
+
# POST (create) a custom_field
|
57
|
+
data, status_code, headers = api_instance.create_custom_fields_with_http_info(update_custom_field_request)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => <GetCustomField200Response>
|
61
|
+
rescue ConstantContactClient::ApiError => e
|
62
|
+
puts "Error when calling ContactsCustomFieldsApi->create_custom_fields_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **update_custom_field_request** | [**UpdateCustomFieldRequest**](UpdateCustomFieldRequest.md) | The JSON payload required to create a new `custom_field` | |
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
[**GetCustomField200Response**](GetCustomField200Response.md)
|
75
|
+
|
76
|
+
### Authorization
|
77
|
+
|
78
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
79
|
+
|
80
|
+
### HTTP request headers
|
81
|
+
|
82
|
+
- **Content-Type**: application/json
|
83
|
+
- **Accept**: application/json
|
84
|
+
|
85
|
+
|
86
|
+
## delete_custom_field
|
87
|
+
|
88
|
+
> delete_custom_field(custom_field_id)
|
89
|
+
|
90
|
+
DELETE a custom_field
|
91
|
+
|
92
|
+
This DELETE request deletes a custom_field from the user's account
|
93
|
+
|
94
|
+
### Examples
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
require 'time'
|
98
|
+
require 'constant_contact_client'
|
99
|
+
# setup authorization
|
100
|
+
ConstantContactClient.configure do |config|
|
101
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
102
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
103
|
+
|
104
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
105
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
106
|
+
end
|
107
|
+
|
108
|
+
api_instance = ConstantContactClient::ContactsCustomFieldsApi.new
|
109
|
+
custom_field_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | Unique ID of the custom_field on which to operate.
|
110
|
+
|
111
|
+
begin
|
112
|
+
# DELETE a custom_field
|
113
|
+
api_instance.delete_custom_field(custom_field_id)
|
114
|
+
rescue ConstantContactClient::ApiError => e
|
115
|
+
puts "Error when calling ContactsCustomFieldsApi->delete_custom_field: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
#### Using the delete_custom_field_with_http_info variant
|
120
|
+
|
121
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
122
|
+
|
123
|
+
> <Array(nil, Integer, Hash)> delete_custom_field_with_http_info(custom_field_id)
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
begin
|
127
|
+
# DELETE a custom_field
|
128
|
+
data, status_code, headers = api_instance.delete_custom_field_with_http_info(custom_field_id)
|
129
|
+
p status_code # => 2xx
|
130
|
+
p headers # => { ... }
|
131
|
+
p data # => nil
|
132
|
+
rescue ConstantContactClient::ApiError => e
|
133
|
+
puts "Error when calling ContactsCustomFieldsApi->delete_custom_field_with_http_info: #{e}"
|
134
|
+
end
|
135
|
+
```
|
136
|
+
|
137
|
+
### Parameters
|
138
|
+
|
139
|
+
| Name | Type | Description | Notes |
|
140
|
+
| ---- | ---- | ----------- | ----- |
|
141
|
+
| **custom_field_id** | **String** | Unique ID of the custom_field on which to operate. | |
|
142
|
+
|
143
|
+
### Return type
|
144
|
+
|
145
|
+
nil (empty response body)
|
146
|
+
|
147
|
+
### Authorization
|
148
|
+
|
149
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
150
|
+
|
151
|
+
### HTTP request headers
|
152
|
+
|
153
|
+
- **Content-Type**: Not defined
|
154
|
+
- **Accept**: Not defined
|
155
|
+
|
156
|
+
|
157
|
+
## get_all_custom_fields
|
158
|
+
|
159
|
+
> <GetAllCustomFields200Response> get_all_custom_fields(opts)
|
160
|
+
|
161
|
+
GET custom_fields Collection
|
162
|
+
|
163
|
+
This GET request returns all `custom_fields` defined in the user's account. <div class=\"Msg\"><p class=\"note-text\">This method does not currently support filtering results using the custom field update date.</p></div>
|
164
|
+
|
165
|
+
### Examples
|
166
|
+
|
167
|
+
```ruby
|
168
|
+
require 'time'
|
169
|
+
require 'constant_contact_client'
|
170
|
+
# setup authorization
|
171
|
+
ConstantContactClient.configure do |config|
|
172
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
173
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
174
|
+
|
175
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
176
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
177
|
+
end
|
178
|
+
|
179
|
+
api_instance = ConstantContactClient::ContactsCustomFieldsApi.new
|
180
|
+
opts = {
|
181
|
+
limit: 56 # Integer | Specifies the number of results displayed per page of output, from 1 - 100, default = 50.
|
182
|
+
}
|
183
|
+
|
184
|
+
begin
|
185
|
+
# GET custom_fields Collection
|
186
|
+
result = api_instance.get_all_custom_fields(opts)
|
187
|
+
p result
|
188
|
+
rescue ConstantContactClient::ApiError => e
|
189
|
+
puts "Error when calling ContactsCustomFieldsApi->get_all_custom_fields: #{e}"
|
190
|
+
end
|
191
|
+
```
|
192
|
+
|
193
|
+
#### Using the get_all_custom_fields_with_http_info variant
|
194
|
+
|
195
|
+
This returns an Array which contains the response data, status code and headers.
|
196
|
+
|
197
|
+
> <Array(<GetAllCustomFields200Response>, Integer, Hash)> get_all_custom_fields_with_http_info(opts)
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
begin
|
201
|
+
# GET custom_fields Collection
|
202
|
+
data, status_code, headers = api_instance.get_all_custom_fields_with_http_info(opts)
|
203
|
+
p status_code # => 2xx
|
204
|
+
p headers # => { ... }
|
205
|
+
p data # => <GetAllCustomFields200Response>
|
206
|
+
rescue ConstantContactClient::ApiError => e
|
207
|
+
puts "Error when calling ContactsCustomFieldsApi->get_all_custom_fields_with_http_info: #{e}"
|
208
|
+
end
|
209
|
+
```
|
210
|
+
|
211
|
+
### Parameters
|
212
|
+
|
213
|
+
| Name | Type | Description | Notes |
|
214
|
+
| ---- | ---- | ----------- | ----- |
|
215
|
+
| **limit** | **Integer** | Specifies the number of results displayed per page of output, from 1 - 100, default = 50. | [optional][default to 50] |
|
216
|
+
|
217
|
+
### Return type
|
218
|
+
|
219
|
+
[**GetAllCustomFields200Response**](GetAllCustomFields200Response.md)
|
220
|
+
|
221
|
+
### Authorization
|
222
|
+
|
223
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
224
|
+
|
225
|
+
### HTTP request headers
|
226
|
+
|
227
|
+
- **Content-Type**: Not defined
|
228
|
+
- **Accept**: application/json
|
229
|
+
|
230
|
+
|
231
|
+
## get_custom_field
|
232
|
+
|
233
|
+
> <GetCustomField200Response> get_custom_field(custom_field_id)
|
234
|
+
|
235
|
+
GET a custom_field
|
236
|
+
|
237
|
+
This GET call retrieves a `custom_field` resource, specified by `custom_field_id`.
|
238
|
+
|
239
|
+
### Examples
|
240
|
+
|
241
|
+
```ruby
|
242
|
+
require 'time'
|
243
|
+
require 'constant_contact_client'
|
244
|
+
# setup authorization
|
245
|
+
ConstantContactClient.configure do |config|
|
246
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
247
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
248
|
+
|
249
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
250
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
251
|
+
end
|
252
|
+
|
253
|
+
api_instance = ConstantContactClient::ContactsCustomFieldsApi.new
|
254
|
+
custom_field_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | Unique ID of the `custom_field` on which to operate.
|
255
|
+
|
256
|
+
begin
|
257
|
+
# GET a custom_field
|
258
|
+
result = api_instance.get_custom_field(custom_field_id)
|
259
|
+
p result
|
260
|
+
rescue ConstantContactClient::ApiError => e
|
261
|
+
puts "Error when calling ContactsCustomFieldsApi->get_custom_field: #{e}"
|
262
|
+
end
|
263
|
+
```
|
264
|
+
|
265
|
+
#### Using the get_custom_field_with_http_info variant
|
266
|
+
|
267
|
+
This returns an Array which contains the response data, status code and headers.
|
268
|
+
|
269
|
+
> <Array(<GetCustomField200Response>, Integer, Hash)> get_custom_field_with_http_info(custom_field_id)
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
begin
|
273
|
+
# GET a custom_field
|
274
|
+
data, status_code, headers = api_instance.get_custom_field_with_http_info(custom_field_id)
|
275
|
+
p status_code # => 2xx
|
276
|
+
p headers # => { ... }
|
277
|
+
p data # => <GetCustomField200Response>
|
278
|
+
rescue ConstantContactClient::ApiError => e
|
279
|
+
puts "Error when calling ContactsCustomFieldsApi->get_custom_field_with_http_info: #{e}"
|
280
|
+
end
|
281
|
+
```
|
282
|
+
|
283
|
+
### Parameters
|
284
|
+
|
285
|
+
| Name | Type | Description | Notes |
|
286
|
+
| ---- | ---- | ----------- | ----- |
|
287
|
+
| **custom_field_id** | **String** | Unique ID of the `custom_field` on which to operate. | |
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**GetCustomField200Response**](GetCustomField200Response.md)
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: Not defined
|
300
|
+
- **Accept**: application/json
|
301
|
+
|
302
|
+
|
303
|
+
## update_custom_field
|
304
|
+
|
305
|
+
> <GetCustomField200Response> update_custom_field(custom_field_id, update_custom_field_request)
|
306
|
+
|
307
|
+
PUT (update) a custom_field
|
308
|
+
|
309
|
+
This PUT request updates an existing `custom_field` object.
|
310
|
+
|
311
|
+
### Examples
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
require 'time'
|
315
|
+
require 'constant_contact_client'
|
316
|
+
# setup authorization
|
317
|
+
ConstantContactClient.configure do |config|
|
318
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
319
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
320
|
+
|
321
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
322
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
323
|
+
end
|
324
|
+
|
325
|
+
api_instance = ConstantContactClient::ContactsCustomFieldsApi.new
|
326
|
+
custom_field_id = '04fe9a-a579-43c5-bb1a-58ed29bf0a6a' # String | Unique ID of the `custom_field` on which to operate.
|
327
|
+
update_custom_field_request = ConstantContactClient::UpdateCustomFieldRequest.new({label: 'Vehicle make and model year', type: 'string'}) # UpdateCustomFieldRequest | The JSON payload used to update an existing custom field. Any properties omitted in the PUT request are overwritten with a null value.
|
328
|
+
|
329
|
+
begin
|
330
|
+
# PUT (update) a custom_field
|
331
|
+
result = api_instance.update_custom_field(custom_field_id, update_custom_field_request)
|
332
|
+
p result
|
333
|
+
rescue ConstantContactClient::ApiError => e
|
334
|
+
puts "Error when calling ContactsCustomFieldsApi->update_custom_field: #{e}"
|
335
|
+
end
|
336
|
+
```
|
337
|
+
|
338
|
+
#### Using the update_custom_field_with_http_info variant
|
339
|
+
|
340
|
+
This returns an Array which contains the response data, status code and headers.
|
341
|
+
|
342
|
+
> <Array(<GetCustomField200Response>, Integer, Hash)> update_custom_field_with_http_info(custom_field_id, update_custom_field_request)
|
343
|
+
|
344
|
+
```ruby
|
345
|
+
begin
|
346
|
+
# PUT (update) a custom_field
|
347
|
+
data, status_code, headers = api_instance.update_custom_field_with_http_info(custom_field_id, update_custom_field_request)
|
348
|
+
p status_code # => 2xx
|
349
|
+
p headers # => { ... }
|
350
|
+
p data # => <GetCustomField200Response>
|
351
|
+
rescue ConstantContactClient::ApiError => e
|
352
|
+
puts "Error when calling ContactsCustomFieldsApi->update_custom_field_with_http_info: #{e}"
|
353
|
+
end
|
354
|
+
```
|
355
|
+
|
356
|
+
### Parameters
|
357
|
+
|
358
|
+
| Name | Type | Description | Notes |
|
359
|
+
| ---- | ---- | ----------- | ----- |
|
360
|
+
| **custom_field_id** | **String** | Unique ID of the `custom_field` on which to operate. | |
|
361
|
+
| **update_custom_field_request** | [**UpdateCustomFieldRequest**](UpdateCustomFieldRequest.md) | The JSON payload used to update an existing custom field. Any properties omitted in the PUT request are overwritten with a null value. | |
|
362
|
+
|
363
|
+
### Return type
|
364
|
+
|
365
|
+
[**GetCustomField200Response**](GetCustomField200Response.md)
|
366
|
+
|
367
|
+
### Authorization
|
368
|
+
|
369
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
370
|
+
|
371
|
+
### HTTP request headers
|
372
|
+
|
373
|
+
- **Content-Type**: application/json
|
374
|
+
- **Accept**: application/json
|
375
|
+
|
@@ -0,0 +1,244 @@
|
|
1
|
+
# ConstantContactClient::ContactsReportingApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cc.email/v3*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_contact_open_click_rate_report**](ContactsReportingApi.md#get_contact_open_click_rate_report) | **GET** /reports/contact_reports/{contact_id}/open_and_click_rates | GET Average Open and Click Rates |
|
8
|
+
| [**get_contact_tracking_count_report**](ContactsReportingApi.md#get_contact_tracking_count_report) | **GET** /reports/contact_reports/{contact_id}/activity_summary | GET Contact Action Summary |
|
9
|
+
| [**get_contact_tracking_report**](ContactsReportingApi.md#get_contact_tracking_report) | **GET** /reports/contact_reports/{contact_id}/activity_details | GET Contact Activity Details |
|
10
|
+
|
11
|
+
|
12
|
+
## get_contact_open_click_rate_report
|
13
|
+
|
14
|
+
> <GetContactOpenClickRateReport200Response> get_contact_open_click_rate_report(contact_id, start, _end)
|
15
|
+
|
16
|
+
GET Average Open and Click Rates
|
17
|
+
|
18
|
+
<p>Gets the average open and click rate for a given account and contact.<p>Looks at all tracking activities for bulk emails from a given contact over the given date range. Range cannot exceed 5 years.</p><p>Returns the rates and the number of campaign activities that were included in the calculation.</p><p>If no activities fall into the given date range, all rates will return 0 and the number of included activities will be 0.</p>
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'constant_contact_client'
|
25
|
+
# setup authorization
|
26
|
+
ConstantContactClient.configure do |config|
|
27
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
28
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
29
|
+
|
30
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
31
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = ConstantContactClient::ContactsReportingApi.new
|
35
|
+
contact_id = 'aa9ff7b0-478d-11e6-8059-00163e3c8e19' # String | The contact id which is requesting tracking activity data (e.g. aa9ff7b0-478d-11e6-8059-00163e3c8e19)
|
36
|
+
start = 'start_example' # String | The starting date, in ISO 8601 format, to use to get campaigns. For example: 2019-01-01T00:00:00-0500.
|
37
|
+
_end = '_end_example' # String | The ending date, in ISO 8601 format, to use to get campaigns. For example: 2019-12-01T00:00:00-0500.
|
38
|
+
|
39
|
+
begin
|
40
|
+
# GET Average Open and Click Rates
|
41
|
+
result = api_instance.get_contact_open_click_rate_report(contact_id, start, _end)
|
42
|
+
p result
|
43
|
+
rescue ConstantContactClient::ApiError => e
|
44
|
+
puts "Error when calling ContactsReportingApi->get_contact_open_click_rate_report: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
#### Using the get_contact_open_click_rate_report_with_http_info variant
|
49
|
+
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
51
|
+
|
52
|
+
> <Array(<GetContactOpenClickRateReport200Response>, Integer, Hash)> get_contact_open_click_rate_report_with_http_info(contact_id, start, _end)
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
begin
|
56
|
+
# GET Average Open and Click Rates
|
57
|
+
data, status_code, headers = api_instance.get_contact_open_click_rate_report_with_http_info(contact_id, start, _end)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => <GetContactOpenClickRateReport200Response>
|
61
|
+
rescue ConstantContactClient::ApiError => e
|
62
|
+
puts "Error when calling ContactsReportingApi->get_contact_open_click_rate_report_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **contact_id** | **String** | The contact id which is requesting tracking activity data (e.g. aa9ff7b0-478d-11e6-8059-00163e3c8e19) | |
|
71
|
+
| **start** | **String** | The starting date, in ISO 8601 format, to use to get campaigns. For example: 2019-01-01T00:00:00-0500. | |
|
72
|
+
| **_end** | **String** | The ending date, in ISO 8601 format, to use to get campaigns. For example: 2019-12-01T00:00:00-0500. | |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
[**GetContactOpenClickRateReport200Response**](GetContactOpenClickRateReport200Response.md)
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: Not defined
|
85
|
+
- **Accept**: application/json
|
86
|
+
|
87
|
+
|
88
|
+
## get_contact_tracking_count_report
|
89
|
+
|
90
|
+
> <GetContactTrackingCountReport200Response> get_contact_tracking_count_report(contact_id, start, _end)
|
91
|
+
|
92
|
+
GET Contact Action Summary
|
93
|
+
|
94
|
+
Get a list of the recent emails (aka, campaign activities) sent to a specific contact and a summary of the actions the contact took on that email for the most recent 200 campaigns.
|
95
|
+
|
96
|
+
### Examples
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
require 'time'
|
100
|
+
require 'constant_contact_client'
|
101
|
+
# setup authorization
|
102
|
+
ConstantContactClient.configure do |config|
|
103
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
104
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
105
|
+
|
106
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
107
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
108
|
+
end
|
109
|
+
|
110
|
+
api_instance = ConstantContactClient::ContactsReportingApi.new
|
111
|
+
contact_id = 'aa9ff7b0-478d-11e6-8059-00163e3c8e19' # String | The contact id which is requesting tracking activity data (e.g. aa9ff7b0-478d-11e6-8059-00163e3c8e19)
|
112
|
+
start = 'start_example' # String | The starting date, in ISO 8601 format, to use to get campaigns. For example: 2019-01-01T00:00:00-0500.
|
113
|
+
_end = '_end_example' # String | The ending date, in ISO 8601 format, to use to get campaigns. For example: 2019-12-01T00:00:00-0500.
|
114
|
+
|
115
|
+
begin
|
116
|
+
# GET Contact Action Summary
|
117
|
+
result = api_instance.get_contact_tracking_count_report(contact_id, start, _end)
|
118
|
+
p result
|
119
|
+
rescue ConstantContactClient::ApiError => e
|
120
|
+
puts "Error when calling ContactsReportingApi->get_contact_tracking_count_report: #{e}"
|
121
|
+
end
|
122
|
+
```
|
123
|
+
|
124
|
+
#### Using the get_contact_tracking_count_report_with_http_info variant
|
125
|
+
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
127
|
+
|
128
|
+
> <Array(<GetContactTrackingCountReport200Response>, Integer, Hash)> get_contact_tracking_count_report_with_http_info(contact_id, start, _end)
|
129
|
+
|
130
|
+
```ruby
|
131
|
+
begin
|
132
|
+
# GET Contact Action Summary
|
133
|
+
data, status_code, headers = api_instance.get_contact_tracking_count_report_with_http_info(contact_id, start, _end)
|
134
|
+
p status_code # => 2xx
|
135
|
+
p headers # => { ... }
|
136
|
+
p data # => <GetContactTrackingCountReport200Response>
|
137
|
+
rescue ConstantContactClient::ApiError => e
|
138
|
+
puts "Error when calling ContactsReportingApi->get_contact_tracking_count_report_with_http_info: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
### Parameters
|
143
|
+
|
144
|
+
| Name | Type | Description | Notes |
|
145
|
+
| ---- | ---- | ----------- | ----- |
|
146
|
+
| **contact_id** | **String** | The contact id which is requesting tracking activity data (e.g. aa9ff7b0-478d-11e6-8059-00163e3c8e19) | |
|
147
|
+
| **start** | **String** | The starting date, in ISO 8601 format, to use to get campaigns. For example: 2019-01-01T00:00:00-0500. | |
|
148
|
+
| **_end** | **String** | The ending date, in ISO 8601 format, to use to get campaigns. For example: 2019-12-01T00:00:00-0500. | |
|
149
|
+
|
150
|
+
### Return type
|
151
|
+
|
152
|
+
[**GetContactTrackingCountReport200Response**](GetContactTrackingCountReport200Response.md)
|
153
|
+
|
154
|
+
### Authorization
|
155
|
+
|
156
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
157
|
+
|
158
|
+
### HTTP request headers
|
159
|
+
|
160
|
+
- **Content-Type**: Not defined
|
161
|
+
- **Accept**: application/json
|
162
|
+
|
163
|
+
|
164
|
+
## get_contact_tracking_report
|
165
|
+
|
166
|
+
> <GetContactTrackingReport200Response> get_contact_tracking_report(contact_id, opts)
|
167
|
+
|
168
|
+
GET Contact Activity Details
|
169
|
+
|
170
|
+
<p>Gets the tracking activity data for a single contact, sorted in descending activity date order.</p> <p>You must chose either the `tracking_activities_list` query parameter and or the `tracking_activity_type` query parameter to specify one or more tracking activity types In the request. The `tracking_activities_list` and `tracking_activities_type` query parameters are mutually exclusive.</p> <table><tr><td colspan='2'>Valid tracking activity types</td></tr> <tr><td><b>em_sends</b></td><td>Send activities</td></tr> <tr><td><b>em_opens</b></td><td>Email open tracking activities</td></tr> <tr><td><b>em_clicks</b></td><td>Link click-through tracking activities</td></tr> <tr><td><b>em_bounces</b></td><td>Bounce tracking activities</td></tr> <tr><td><b>em_optouts</b></td><td>Opt-out tracking activities</td></tr><tr> <td><b>em_forwards</b></td><td>Forward to a friend tracking activities</td></tr> <tr><td><b>p_contact_open</b></td><td>Landing page opens</td></tr> <tr><td><b>p_contact_click</b></td><td>Landing page clicks</td></tr> <tr><td><b>p_contact_add</b></td><td>Landing page adds</td></tr> <tr><td><b>p_contact_update </b></td><td> Landing page updates</td></tr> </table>
|
171
|
+
|
172
|
+
### Examples
|
173
|
+
|
174
|
+
```ruby
|
175
|
+
require 'time'
|
176
|
+
require 'constant_contact_client'
|
177
|
+
# setup authorization
|
178
|
+
ConstantContactClient.configure do |config|
|
179
|
+
# Configure OAuth2 access token for authorization: oauth2_access_code
|
180
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
181
|
+
|
182
|
+
# Configure OAuth2 access token for authorization: oauth2_implicit
|
183
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
184
|
+
end
|
185
|
+
|
186
|
+
api_instance = ConstantContactClient::ContactsReportingApi.new
|
187
|
+
contact_id = 'aa9ff7b0-478d-11e6-8059-00163e3c8e19' # String | The contact's ID for which tracking activity data is requested.
|
188
|
+
opts = {
|
189
|
+
tracking_activities_list: ['em_sends'], # Array<String> | Specify one or more tracking activity types to include as a comma-delimited string. The `tracking_activities_list` and `tracking_activities_type` query parameters are mutually exclusive.
|
190
|
+
tracking_activity_type: ['inner_example'], # Array<String> | Specify one or more tracking activity types to include as an array. The `tracking_activities_list` and `tracking_activities_type` query parameters are mutually exclusive.
|
191
|
+
include_campaign_activity_names: true, # Boolean | Default (`true`) returns campaign activity names in the results. Not including campaign activity names in the results (`false`), is more efficient.
|
192
|
+
limit: '20' # String | The number of tracking activities to return in a single page. Valid values are 1 to 100. Default is 100.
|
193
|
+
}
|
194
|
+
|
195
|
+
begin
|
196
|
+
# GET Contact Activity Details
|
197
|
+
result = api_instance.get_contact_tracking_report(contact_id, opts)
|
198
|
+
p result
|
199
|
+
rescue ConstantContactClient::ApiError => e
|
200
|
+
puts "Error when calling ContactsReportingApi->get_contact_tracking_report: #{e}"
|
201
|
+
end
|
202
|
+
```
|
203
|
+
|
204
|
+
#### Using the get_contact_tracking_report_with_http_info variant
|
205
|
+
|
206
|
+
This returns an Array which contains the response data, status code and headers.
|
207
|
+
|
208
|
+
> <Array(<GetContactTrackingReport200Response>, Integer, Hash)> get_contact_tracking_report_with_http_info(contact_id, opts)
|
209
|
+
|
210
|
+
```ruby
|
211
|
+
begin
|
212
|
+
# GET Contact Activity Details
|
213
|
+
data, status_code, headers = api_instance.get_contact_tracking_report_with_http_info(contact_id, opts)
|
214
|
+
p status_code # => 2xx
|
215
|
+
p headers # => { ... }
|
216
|
+
p data # => <GetContactTrackingReport200Response>
|
217
|
+
rescue ConstantContactClient::ApiError => e
|
218
|
+
puts "Error when calling ContactsReportingApi->get_contact_tracking_report_with_http_info: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
### Parameters
|
223
|
+
|
224
|
+
| Name | Type | Description | Notes |
|
225
|
+
| ---- | ---- | ----------- | ----- |
|
226
|
+
| **contact_id** | **String** | The contact's ID for which tracking activity data is requested. | |
|
227
|
+
| **tracking_activities_list** | [**Array<String>**](String.md) | Specify one or more tracking activity types to include as a comma-delimited string. The `tracking_activities_list` and `tracking_activities_type` query parameters are mutually exclusive. | [optional] |
|
228
|
+
| **tracking_activity_type** | [**Array<String>**](String.md) | Specify one or more tracking activity types to include as an array. The `tracking_activities_list` and `tracking_activities_type` query parameters are mutually exclusive. | [optional] |
|
229
|
+
| **include_campaign_activity_names** | **Boolean** | Default (`true`) returns campaign activity names in the results. Not including campaign activity names in the results (`false`), is more efficient. | [optional][default to true] |
|
230
|
+
| **limit** | **String** | The number of tracking activities to return in a single page. Valid values are 1 to 100. Default is 100. | [optional][default to '100'] |
|
231
|
+
|
232
|
+
### Return type
|
233
|
+
|
234
|
+
[**GetContactTrackingReport200Response**](GetContactTrackingReport200Response.md)
|
235
|
+
|
236
|
+
### Authorization
|
237
|
+
|
238
|
+
[oauth2_access_code](../README.md#oauth2_access_code), [oauth2_implicit](../README.md#oauth2_implicit)
|
239
|
+
|
240
|
+
### HTTP request headers
|
241
|
+
|
242
|
+
- **Content-Type**: Not defined
|
243
|
+
- **Accept**: application/json
|
244
|
+
|