apimatic-apollo-sdk 0.0.1
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/LICENSE +28 -0
- data/README.md +179 -0
- data/bin/console +15 -0
- data/lib/apollo_rest_api/api_helper.rb +10 -0
- data/lib/apollo_rest_api/apis/accounts_api.rb +400 -0
- data/lib/apollo_rest_api/apis/analytics_api.rb +65 -0
- data/lib/apollo_rest_api/apis/api.rb +45 -0
- data/lib/apollo_rest_api/apis/base_api.rb +67 -0
- data/lib/apollo_rest_api/apis/calls_api.rb +354 -0
- data/lib/apollo_rest_api/apis/contacts_api.rb +478 -0
- data/lib/apollo_rest_api/apis/conversations_api.rb +157 -0
- data/lib/apollo_rest_api/apis/deals_api.rb +253 -0
- data/lib/apollo_rest_api/apis/emailer_messages_api.rb +160 -0
- data/lib/apollo_rest_api/apis/enrichment_api.rb +447 -0
- data/lib/apollo_rest_api/apis/miscellaneous_api.rb +610 -0
- data/lib/apollo_rest_api/apis/search_api.rb +675 -0
- data/lib/apollo_rest_api/apis/sequences_api.rb +774 -0
- data/lib/apollo_rest_api/apis/tasks_api.rb +397 -0
- data/lib/apollo_rest_api/client.rb +147 -0
- data/lib/apollo_rest_api/configuration.rb +170 -0
- data/lib/apollo_rest_api/exceptions/account_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_create500_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_update422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_bulk_update429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/accounts_update_owners429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/api_exception.rb +21 -0
- data/lib/apollo_rest_api/exceptions/contact_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_create500_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_update422_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/contacts_bulk_update429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_opportunities429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_owners422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_owners429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_stages422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/contacts_update_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_export404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_export422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/conversations_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/email_accounts429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_abort429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_add_contact_ids429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_approve429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_archive429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_remove_or_stop_contact_ids429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_campaigns_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_email_send_status429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_search422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_messages_send_now429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/emailer_schedules429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/fields429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels404_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/labels422_error_exception.rb +53 -0
- data/lib/apollo_rest_api/exceptions/labels429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_add_entity_ids_to_label_names429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/labels_remove_entity_ids_from_label_names429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_companies_search403_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_companies_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_people_api_search422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/mixed_people_api_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/need_master_api_key_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/notes400_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities404_error_exception.rb +51 -0
- data/lib/apollo_rest_api/exceptions/opportunities422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunities_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/opportunity_stages429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich400_error_exception.rb +58 -0
- data/lib/apollo_rest_api/exceptions/organizations_bulk_enrich429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_enrich422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_enrich429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_job_postings422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/organizations_job_postings429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/people_bulk_match429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/people_match429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/reports_sync_report400_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/reports_sync_report429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences404_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/sequences429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks401_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_bulk_create422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_bulk_create429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_complete422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_complete429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_skip422_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/tasks_skip429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/typed_custom_fields429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/users_search429_error_exception.rb +46 -0
- data/lib/apollo_rest_api/exceptions/webhook_result404_error_exception.rb +55 -0
- data/lib/apollo_rest_api/http/api_response.rb +19 -0
- data/lib/apollo_rest_api/http/auth/api_key.rb +52 -0
- data/lib/apollo_rest_api/http/auth/bearer_auth.rb +53 -0
- data/lib/apollo_rest_api/http/http_call_back.rb +10 -0
- data/lib/apollo_rest_api/http/http_method_enum.rb +10 -0
- data/lib/apollo_rest_api/http/http_request.rb +10 -0
- data/lib/apollo_rest_api/http/http_response.rb +10 -0
- data/lib/apollo_rest_api/http/proxy_settings.rb +22 -0
- data/lib/apollo_rest_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/apollo_rest_api/logging/sdk_logger.rb +17 -0
- data/lib/apollo_rest_api/models/account.rb +551 -0
- data/lib/apollo_rest_api/models/account1.rb +420 -0
- data/lib/apollo_rest_api/models/account10.rb +595 -0
- data/lib/apollo_rest_api/models/account12.rb +424 -0
- data/lib/apollo_rest_api/models/account14.rb +247 -0
- data/lib/apollo_rest_api/models/account2.rb +420 -0
- data/lib/apollo_rest_api/models/account22.rb +85 -0
- data/lib/apollo_rest_api/models/account3.rb +420 -0
- data/lib/apollo_rest_api/models/account4.rb +474 -0
- data/lib/apollo_rest_api/models/account5.rb +238 -0
- data/lib/apollo_rest_api/models/account6.rb +86 -0
- data/lib/apollo_rest_api/models/account7.rb +95 -0
- data/lib/apollo_rest_api/models/account8.rb +434 -0
- data/lib/apollo_rest_api/models/account9.rb +540 -0
- data/lib/apollo_rest_api/models/account_attribute.rb +116 -0
- data/lib/apollo_rest_api/models/account_rule_config_status.rb +138 -0
- data/lib/apollo_rest_api/models/account_stage.rb +151 -0
- data/lib/apollo_rest_api/models/account_stages_response.rb +85 -0
- data/lib/apollo_rest_api/models/accounts_bulk_create_request.rb +108 -0
- data/lib/apollo_rest_api/models/accounts_bulk_create_response.rb +105 -0
- data/lib/apollo_rest_api/models/accounts_bulk_update_request.rb +139 -0
- data/lib/apollo_rest_api/models/accounts_bulk_update_response.rb +84 -0
- data/lib/apollo_rest_api/models/accounts_request.rb +183 -0
- data/lib/apollo_rest_api/models/accounts_request1.rb +183 -0
- data/lib/apollo_rest_api/models/accounts_response.rb +75 -0
- data/lib/apollo_rest_api/models/accounts_response1.rb +85 -0
- data/lib/apollo_rest_api/models/accounts_search_request.rb +167 -0
- data/lib/apollo_rest_api/models/accounts_search_response.rb +168 -0
- data/lib/apollo_rest_api/models/accounts_update_owners_response.rb +84 -0
- data/lib/apollo_rest_api/models/active.rb +26 -0
- data/lib/apollo_rest_api/models/assistant_setting.rb +397 -0
- data/lib/apollo_rest_api/models/audio_recording.rb +74 -0
- data/lib/apollo_rest_api/models/base_model.rb +110 -0
- data/lib/apollo_rest_api/models/bounced.rb +26 -0
- data/lib/apollo_rest_api/models/breadcrumb.rb +107 -0
- data/lib/apollo_rest_api/models/check_apollo_pricing_plan.rb +75 -0
- data/lib/apollo_rest_api/models/check_the_account_id.rb +75 -0
- data/lib/apollo_rest_api/models/check_the_contact_stage_id.rb +75 -0
- data/lib/apollo_rest_api/models/contact.rb +809 -0
- data/lib/apollo_rest_api/models/contact1.rb +921 -0
- data/lib/apollo_rest_api/models/contact10.rb +465 -0
- data/lib/apollo_rest_api/models/contact11.rb +250 -0
- data/lib/apollo_rest_api/models/contact14.rb +248 -0
- data/lib/apollo_rest_api/models/contact15.rb +166 -0
- data/lib/apollo_rest_api/models/contact2.rb +884 -0
- data/lib/apollo_rest_api/models/contact3.rb +239 -0
- data/lib/apollo_rest_api/models/contact4.rb +105 -0
- data/lib/apollo_rest_api/models/contact5.rb +893 -0
- data/lib/apollo_rest_api/models/contact6.rb +839 -0
- data/lib/apollo_rest_api/models/contact7.rb +95 -0
- data/lib/apollo_rest_api/models/contact8.rb +375 -0
- data/lib/apollo_rest_api/models/contact9.rb +198 -0
- data/lib/apollo_rest_api/models/contact_attribute.rb +179 -0
- data/lib/apollo_rest_api/models/contact_campaign_status.rb +336 -0
- data/lib/apollo_rest_api/models/contact_campaign_status2.rb +163 -0
- data/lib/apollo_rest_api/models/contact_email.rb +167 -0
- data/lib/apollo_rest_api/models/contact_email1.rb +85 -0
- data/lib/apollo_rest_api/models/contact_email2.rb +148 -0
- data/lib/apollo_rest_api/models/contact_statuses.rb +132 -0
- data/lib/apollo_rest_api/models/contacts_bulk_create_request.rb +121 -0
- data/lib/apollo_rest_api/models/contacts_bulk_create_response.rb +106 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_request.rb +224 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_response.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_bulk_update_response1.rb +87 -0
- data/lib/apollo_rest_api/models/contacts_opportunities_response.rb +85 -0
- data/lib/apollo_rest_api/models/contacts_request.rb +269 -0
- data/lib/apollo_rest_api/models/contacts_request1.rb +253 -0
- data/lib/apollo_rest_api/models/contacts_response.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_response1.rb +94 -0
- data/lib/apollo_rest_api/models/contacts_response2.rb +75 -0
- data/lib/apollo_rest_api/models/contacts_search_request.rb +166 -0
- data/lib/apollo_rest_api/models/contacts_search_response.rb +168 -0
- data/lib/apollo_rest_api/models/contacts_update_owners_response.rb +84 -0
- data/lib/apollo_rest_api/models/contacts_update_stages_response.rb +84 -0
- data/lib/apollo_rest_api/models/conversation.rb +284 -0
- data/lib/apollo_rest_api/models/conversation_type.rb +36 -0
- data/lib/apollo_rest_api/models/conversation_type2.rb +36 -0
- data/lib/apollo_rest_api/models/conversations_export_request.rb +94 -0
- data/lib/apollo_rest_api/models/conversations_export_response.rb +86 -0
- data/lib/apollo_rest_api/models/conversations_export_response1.rb +76 -0
- data/lib/apollo_rest_api/models/conversations_response.rb +333 -0
- data/lib/apollo_rest_api/models/conversations_search_request.rb +207 -0
- data/lib/apollo_rest_api/models/conversations_search_response.rb +130 -0
- data/lib/apollo_rest_api/models/counts.rb +115 -0
- data/lib/apollo_rest_api/models/created_account.rb +174 -0
- data/lib/apollo_rest_api/models/created_contact.rb +195 -0
- data/lib/apollo_rest_api/models/creation_type.rb +41 -0
- data/lib/apollo_rest_api/models/currency.rb +95 -0
- data/lib/apollo_rest_api/models/current_technology.rb +95 -0
- data/lib/apollo_rest_api/models/date_range.rb +84 -0
- data/lib/apollo_rest_api/models/date_range1.rb +87 -0
- data/lib/apollo_rest_api/models/deal.rb +107 -0
- data/lib/apollo_rest_api/models/deliverability_score.rb +460 -0
- data/lib/apollo_rest_api/models/departmental_head_count.rb +260 -0
- data/lib/apollo_rest_api/models/detail.rb +173 -0
- data/lib/apollo_rest_api/models/detail1.rb +109 -0
- data/lib/apollo_rest_api/models/email_account.rb +616 -0
- data/lib/apollo_rest_api/models/email_accounts_response.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_campaign.rb +722 -0
- data/lib/apollo_rest_api/models/emailer_campaign1.rb +359 -0
- data/lib/apollo_rest_api/models/emailer_campaign2.rb +158 -0
- data/lib/apollo_rest_api/models/emailer_campaign3.rb +95 -0
- data/lib/apollo_rest_api/models/emailer_campaign4.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaign6.rb +105 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_abort_response.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_add_contact_ids_response.rb +164 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_approve_response.rb +96 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_archive_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_remove_or_stop_contact_ids_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_campaigns_search_response.rb +125 -0
- data/lib/apollo_rest_api/models/emailer_message.rb +676 -0
- data/lib/apollo_rest_api/models/emailer_message1.rb +410 -0
- data/lib/apollo_rest_api/models/emailer_messages_email_send_status_request.rb +74 -0
- data/lib/apollo_rest_api/models/emailer_messages_email_send_status_response.rb +166 -0
- data/lib/apollo_rest_api/models/emailer_messages_request.rb +197 -0
- data/lib/apollo_rest_api/models/emailer_messages_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_messages_send_now_request.rb +76 -0
- data/lib/apollo_rest_api/models/emailer_messages_send_now_response.rb +77 -0
- data/lib/apollo_rest_api/models/emailer_schedule.rb +154 -0
- data/lib/apollo_rest_api/models/emailer_schedules_response.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_step.rb +206 -0
- data/lib/apollo_rest_api/models/emailer_step1.rb +189 -0
- data/lib/apollo_rest_api/models/emailer_step2.rb +126 -0
- data/lib/apollo_rest_api/models/emailer_step3.rb +148 -0
- data/lib/apollo_rest_api/models/emailer_step4.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_step5.rb +128 -0
- data/lib/apollo_rest_api/models/emailer_template.rb +100 -0
- data/lib/apollo_rest_api/models/emailer_template1.rb +95 -0
- data/lib/apollo_rest_api/models/emailer_template2.rb +85 -0
- data/lib/apollo_rest_api/models/emailer_touch.rb +254 -0
- data/lib/apollo_rest_api/models/emailer_touch1.rb +128 -0
- data/lib/apollo_rest_api/models/emailer_touch2.rb +117 -0
- data/lib/apollo_rest_api/models/emailer_touch3.rb +139 -0
- data/lib/apollo_rest_api/models/emailer_touch4.rb +85 -0
- data/lib/apollo_rest_api/models/employment_history.rb +238 -0
- data/lib/apollo_rest_api/models/entity_progress_job.rb +153 -0
- data/lib/apollo_rest_api/models/entity_progress_job1.rb +135 -0
- data/lib/apollo_rest_api/models/entity_progress_job2.rb +141 -0
- data/lib/apollo_rest_api/models/error_details.rb +95 -0
- data/lib/apollo_rest_api/models/existing_account.rb +152 -0
- data/lib/apollo_rest_api/models/existing_contact.rb +171 -0
- data/lib/apollo_rest_api/models/faceting.rb +523 -0
- data/lib/apollo_rest_api/models/failure_reason.rb +44 -0
- data/lib/apollo_rest_api/models/field.rb +181 -0
- data/lib/apollo_rest_api/models/fields_request.rb +105 -0
- data/lib/apollo_rest_api/models/fields_response.rb +84 -0
- data/lib/apollo_rest_api/models/fields_response1.rb +85 -0
- data/lib/apollo_rest_api/models/filters.rb +165 -0
- data/lib/apollo_rest_api/models/finished.rb +26 -0
- data/lib/apollo_rest_api/models/funding_event.rb +134 -0
- data/lib/apollo_rest_api/models/generation_option.rb +107 -0
- data/lib/apollo_rest_api/models/generation_tone.rb +86 -0
- data/lib/apollo_rest_api/models/group_by.rb +84 -0
- data/lib/apollo_rest_api/models/industry_tag_hash.rb +83 -0
- data/lib/apollo_rest_api/models/label.rb +135 -0
- data/lib/apollo_rest_api/models/label2.rb +147 -0
- data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_request.rb +113 -0
- data/lib/apollo_rest_api/models/labels_add_entity_ids_to_label_names_response.rb +107 -0
- data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_request.rb +113 -0
- data/lib/apollo_rest_api/models/labels_remove_entity_ids_from_label_names_response.rb +107 -0
- data/lib/apollo_rest_api/models/labels_request.rb +97 -0
- data/lib/apollo_rest_api/models/labels_request1.rb +87 -0
- data/lib/apollo_rest_api/models/labels_response.rb +201 -0
- data/lib/apollo_rest_api/models/labels_response1.rb +75 -0
- data/lib/apollo_rest_api/models/match.rb +393 -0
- data/lib/apollo_rest_api/models/meta.rb +76 -0
- data/lib/apollo_rest_api/models/metric.rb +117 -0
- data/lib/apollo_rest_api/models/metric1.rb +100 -0
- data/lib/apollo_rest_api/models/mixed_companies_search_response.rb +199 -0
- data/lib/apollo_rest_api/models/mixed_people_api_search_response.rb +95 -0
- data/lib/apollo_rest_api/models/modality.rb +37 -0
- data/lib/apollo_rest_api/models/modality1.rb +37 -0
- data/lib/apollo_rest_api/models/modality3.rb +40 -0
- data/lib/apollo_rest_api/models/note.rb +260 -0
- data/lib/apollo_rest_api/models/notes_response.rb +84 -0
- data/lib/apollo_rest_api/models/opportunities_request.rb +175 -0
- data/lib/apollo_rest_api/models/opportunities_request1.rb +164 -0
- data/lib/apollo_rest_api/models/opportunities_response.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_response1.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_response2.rb +76 -0
- data/lib/apollo_rest_api/models/opportunities_search_response.rb +170 -0
- data/lib/apollo_rest_api/models/opportunity.rb +602 -0
- data/lib/apollo_rest_api/models/opportunity1.rb +574 -0
- data/lib/apollo_rest_api/models/opportunity11.rb +217 -0
- data/lib/apollo_rest_api/models/opportunity2.rb +583 -0
- data/lib/apollo_rest_api/models/opportunity3.rb +594 -0
- data/lib/apollo_rest_api/models/opportunity4.rb +574 -0
- data/lib/apollo_rest_api/models/opportunity5.rb +591 -0
- data/lib/apollo_rest_api/models/opportunity_contact_role.rb +95 -0
- data/lib/apollo_rest_api/models/opportunity_contact_role1.rb +135 -0
- data/lib/apollo_rest_api/models/opportunity_stage.rb +210 -0
- data/lib/apollo_rest_api/models/opportunity_stages_response.rb +85 -0
- data/lib/apollo_rest_api/models/organization.rb +659 -0
- data/lib/apollo_rest_api/models/organization1.rb +422 -0
- data/lib/apollo_rest_api/models/organization2.rb +752 -0
- data/lib/apollo_rest_api/models/organization3.rb +600 -0
- data/lib/apollo_rest_api/models/organization4.rb +162 -0
- data/lib/apollo_rest_api/models/organization5.rb +336 -0
- data/lib/apollo_rest_api/models/organization6.rb +264 -0
- data/lib/apollo_rest_api/models/organization7.rb +88 -0
- data/lib/apollo_rest_api/models/organization_job_posting.rb +144 -0
- data/lib/apollo_rest_api/models/organizations_bulk_enrich_request.rb +89 -0
- data/lib/apollo_rest_api/models/organizations_bulk_enrich_response.rb +194 -0
- data/lib/apollo_rest_api/models/organizations_enrich_response.rb +76 -0
- data/lib/apollo_rest_api/models/organizations_job_postings_response.rb +88 -0
- data/lib/apollo_rest_api/models/pagination.rb +105 -0
- data/lib/apollo_rest_api/models/pagination6.rb +105 -0
- data/lib/apollo_rest_api/models/params.rb +116 -0
- data/lib/apollo_rest_api/models/participants.rb +85 -0
- data/lib/apollo_rest_api/models/paused.rb +26 -0
- data/lib/apollo_rest_api/models/people_bulk_match_request.rb +83 -0
- data/lib/apollo_rest_api/models/people_bulk_match_response.rb +180 -0
- data/lib/apollo_rest_api/models/people_match_response.rb +87 -0
- data/lib/apollo_rest_api/models/person.rb +393 -0
- data/lib/apollo_rest_api/models/person1.rb +196 -0
- data/lib/apollo_rest_api/models/phone_call.rb +131 -0
- data/lib/apollo_rest_api/models/phone_number.rb +149 -0
- data/lib/apollo_rest_api/models/phone_number1.rb +149 -0
- data/lib/apollo_rest_api/models/phone_number3.rb +97 -0
- data/lib/apollo_rest_api/models/phone_number4.rb +85 -0
- data/lib/apollo_rest_api/models/phone_number5.rb +127 -0
- data/lib/apollo_rest_api/models/pivot_group_by.rb +85 -0
- data/lib/apollo_rest_api/models/primary_phone.rb +96 -0
- data/lib/apollo_rest_api/models/priority.rb +40 -0
- data/lib/apollo_rest_api/models/recipient.rb +100 -0
- data/lib/apollo_rest_api/models/recipient1.rb +116 -0
- data/lib/apollo_rest_api/models/reports_sync_report_request.rb +253 -0
- data/lib/apollo_rest_api/models/reports_sync_report_response.rb +102 -0
- data/lib/apollo_rest_api/models/request_type.rb +40 -0
- data/lib/apollo_rest_api/models/response.rb +118 -0
- data/lib/apollo_rest_api/models/role.rb +112 -0
- data/lib/apollo_rest_api/models/send_from.rb +116 -0
- data/lib/apollo_rest_api/models/sequences_request.rb +391 -0
- data/lib/apollo_rest_api/models/sequences_request1.rb +206 -0
- data/lib/apollo_rest_api/models/sequences_response.rb +148 -0
- data/lib/apollo_rest_api/models/sequences_response1.rb +203 -0
- data/lib/apollo_rest_api/models/sharing_access.rb +148 -0
- data/lib/apollo_rest_api/models/sharing_permission.rb +154 -0
- data/lib/apollo_rest_api/models/skipped_contact_ids.rb +77 -0
- data/lib/apollo_rest_api/models/smart_datetime_range.rb +86 -0
- data/lib/apollo_rest_api/models/sort.rb +85 -0
- data/lib/apollo_rest_api/models/sort_by_field.rb +43 -0
- data/lib/apollo_rest_api/models/sort_by_field1.rb +36 -0
- data/lib/apollo_rest_api/models/sort_direction.rb +36 -0
- data/lib/apollo_rest_api/models/source.rb +40 -0
- data/lib/apollo_rest_api/models/status.rb +44 -0
- data/lib/apollo_rest_api/models/status2.rb +36 -0
- data/lib/apollo_rest_api/models/status3.rb +40 -0
- data/lib/apollo_rest_api/models/status4.rb +37 -0
- data/lib/apollo_rest_api/models/step.rb +127 -0
- data/lib/apollo_rest_api/models/task.rb +394 -0
- data/lib/apollo_rest_api/models/task2.rb +536 -0
- data/lib/apollo_rest_api/models/task4.rb +524 -0
- data/lib/apollo_rest_api/models/task5.rb +104 -0
- data/lib/apollo_rest_api/models/task_type.rb +95 -0
- data/lib/apollo_rest_api/models/tasks_bulk_create_request.rb +173 -0
- data/lib/apollo_rest_api/models/tasks_bulk_create_response.rb +94 -0
- data/lib/apollo_rest_api/models/tasks_complete_request.rb +75 -0
- data/lib/apollo_rest_api/models/tasks_complete_response.rb +86 -0
- data/lib/apollo_rest_api/models/tasks_request.rb +183 -0
- data/lib/apollo_rest_api/models/tasks_request1.rb +227 -0
- data/lib/apollo_rest_api/models/tasks_response.rb +74 -0
- data/lib/apollo_rest_api/models/tasks_response1.rb +74 -0
- data/lib/apollo_rest_api/models/tasks_search_response.rb +136 -0
- data/lib/apollo_rest_api/models/tasks_skip_request.rb +88 -0
- data/lib/apollo_rest_api/models/tasks_skip_response.rb +74 -0
- data/lib/apollo_rest_api/models/team.rb +87 -0
- data/lib/apollo_rest_api/models/total_facet.rb +95 -0
- data/lib/apollo_rest_api/models/true_warmup_thresholds.rb +106 -0
- data/lib/apollo_rest_api/models/type.rb +44 -0
- data/lib/apollo_rest_api/models/type1.rb +36 -0
- data/lib/apollo_rest_api/models/type2.rb +52 -0
- data/lib/apollo_rest_api/models/typed_custom_fields.rb +111 -0
- data/lib/apollo_rest_api/models/typed_custom_fields6.rb +106 -0
- data/lib/apollo_rest_api/models/typed_custom_fields7.rb +243 -0
- data/lib/apollo_rest_api/models/typed_custom_fields_response.rb +85 -0
- data/lib/apollo_rest_api/models/unique_completed.rb +26 -0
- data/lib/apollo_rest_api/models/unique_scheduled.rb +26 -0
- data/lib/apollo_rest_api/models/unique_skipped.rb +26 -0
- data/lib/apollo_rest_api/models/user.rb +1294 -0
- data/lib/apollo_rest_api/models/users_api_profile_response.rb +309 -0
- data/lib/apollo_rest_api/models/users_search_response.rb +106 -0
- data/lib/apollo_rest_api/models/video_recording.rb +95 -0
- data/lib/apollo_rest_api/models/wait_mode.rb +40 -0
- data/lib/apollo_rest_api/models/webhook_result_response.rb +140 -0
- data/lib/apollo_rest_api/models/webhook_status.rb +40 -0
- data/lib/apollo_rest_api/utilities/date_time_helper.rb +11 -0
- data/lib/apollo_rest_api/utilities/file_wrapper.rb +28 -0
- data/lib/apollo_rest_api/utilities/union_type_lookup.rb +128 -0
- data/lib/apollo_rest_api.rb +503 -0
- metadata +499 -0
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
# apollo_rest_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module ApolloRestApi
|
|
7
|
+
# SequencesApi
|
|
8
|
+
class SequencesApi < BaseApi
|
|
9
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
10
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
11
|
+
# <a
|
|
12
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409477927309-Configur
|
|
13
|
+
# e-a-Sequence-Sending-Schedule" target="_blank">Sending schedules</a>
|
|
14
|
+
# control the days and times that Apollo sends emails for your
|
|
15
|
+
# sequences.<br><br>Use the List Email Schedules endpoint to retrieve every
|
|
16
|
+
# sending schedule that has been created for your team's Apollo account,
|
|
17
|
+
# including each schedule's ID, time zone, and weekly sending
|
|
18
|
+
# windows.<br><br>Use a schedule's `id` as the `emailer_schedule_id` when
|
|
19
|
+
# you <a href="https://docs.apollo.io/reference/create-sequence">create a
|
|
20
|
+
# sequence</a> or <a
|
|
21
|
+
# href="https://docs.apollo.io/reference/update-sequence">update a
|
|
22
|
+
# sequence</a> to control when that sequence's emails are sent.
|
|
23
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
24
|
+
def list_email_schedules
|
|
25
|
+
@api_call
|
|
26
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
27
|
+
'/emailer_schedules',
|
|
28
|
+
Server::DEFAULT)
|
|
29
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
30
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
31
|
+
.response(new_response_handler
|
|
32
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
33
|
+
.deserialize_into(EmailerSchedulesResponse.method(:from_hash))
|
|
34
|
+
.is_api_response(true)
|
|
35
|
+
.local_error('401',
|
|
36
|
+
'401',
|
|
37
|
+
APIException)
|
|
38
|
+
.local_error('403',
|
|
39
|
+
'403',
|
|
40
|
+
NeedMasterApiKeyException)
|
|
41
|
+
.local_error('429',
|
|
42
|
+
'429',
|
|
43
|
+
EmailerSchedules429ErrorException))
|
|
44
|
+
.execute
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
48
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
49
|
+
# <a
|
|
50
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
51
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
52
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
53
|
+
# time.<br><br>Use the Search for Sequences endpoint to search for the
|
|
54
|
+
# sequences that have been created for your team's Apollo
|
|
55
|
+
# account.<br><br>This endpoint requires a master API key. If you call the
|
|
56
|
+
# endpoint without a master key, you receive a `403` response. Check out <a
|
|
57
|
+
# href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
|
|
58
|
+
# learn how to create a master key.
|
|
59
|
+
# @param [String] q_name Optional parameter: Add keywords to narrow the
|
|
60
|
+
# search of the sequences in your team's Apollo account. <br><br>Keywords
|
|
61
|
+
# should directly match at least part of a sequence's name. For example,
|
|
62
|
+
# searching the keyword `marketing` might return the result `NY Marketing
|
|
63
|
+
# Sequence`, but not `NY Marketer Conference 2025 attendees`. <br><br>This
|
|
64
|
+
# parameter only searches sequence names, not other sequence fields.
|
|
65
|
+
# <br><br>Example: `marketing conference attendees`
|
|
66
|
+
# @param [String] page Optional parameter: The page number of the Apollo
|
|
67
|
+
# data that you want to retrieve. <br><br>Use this parameter in combination
|
|
68
|
+
# with the `per_page` parameter to make search results for navigable and
|
|
69
|
+
# improve the performance of the endpoint. <br><br>Example: `4`
|
|
70
|
+
# @param [String] per_page Optional parameter: The number of search results
|
|
71
|
+
# that should be returned for each page. Limiting the number of results per
|
|
72
|
+
# page improves the endpoint's performance. <br><br>Use the `page` parameter
|
|
73
|
+
# to search the different pages of data. <br><br>Example: `10`
|
|
74
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
75
|
+
def search_for_sequences(q_name: nil,
|
|
76
|
+
page: nil,
|
|
77
|
+
per_page: nil)
|
|
78
|
+
@api_call
|
|
79
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
80
|
+
'/emailer_campaigns/search',
|
|
81
|
+
Server::DEFAULT)
|
|
82
|
+
.query_param(new_parameter(q_name, key: 'q_name'))
|
|
83
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
84
|
+
.query_param(new_parameter(per_page, key: 'per_page'))
|
|
85
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
86
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
87
|
+
.response(new_response_handler
|
|
88
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
89
|
+
.deserialize_into(EmailerCampaignsSearchResponse.method(:from_hash))
|
|
90
|
+
.is_api_response(true)
|
|
91
|
+
.local_error('401',
|
|
92
|
+
'401',
|
|
93
|
+
APIException)
|
|
94
|
+
.local_error('403',
|
|
95
|
+
'403',
|
|
96
|
+
APIException)
|
|
97
|
+
.local_error('429',
|
|
98
|
+
'429',
|
|
99
|
+
EmailerCampaignsSearch429ErrorException))
|
|
100
|
+
.execute
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
104
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
105
|
+
# <a
|
|
106
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
107
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
108
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
109
|
+
# time.<br><br>Use the Add Contacts to a Sequence endpoint to add contacts
|
|
110
|
+
# to the existing sequences in your team's Apollo account.<br><br>A contact
|
|
111
|
+
# is a person that your team has explicitly added to your database. Only
|
|
112
|
+
# contacts can be added to sequences. To enrich a person's data, call the <a
|
|
113
|
+
# href="https://docs.apollo.io/reference/people-enrichment">People
|
|
114
|
+
# Enrichment endpoint</a>. Then, to add the person as a contact in your
|
|
115
|
+
# database, call the <a
|
|
116
|
+
# href="https://docs.apollo.io/reference/create-a-contact">Create a Contact
|
|
117
|
+
# endpoint</a>.<br><br>This endpoint requires a master API key. If you call
|
|
118
|
+
# the endpoint without a master key, you receive a `403` response. Check out
|
|
119
|
+
# <a href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a>
|
|
120
|
+
# to learn how to create a master key.
|
|
121
|
+
# @param [String] sequence_id Required parameter: The Apollo ID for the
|
|
122
|
+
# sequence to which you want to add contacts. <br><br>To find sequence IDs,
|
|
123
|
+
# call the <a href="https://docs.apollo.io/reference/search-for-sequences"
|
|
124
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the `id`
|
|
125
|
+
# value for the sequence. <br><br>Example: `66e9e215ece19801b219997f`
|
|
126
|
+
# @param [String] emailer_campaign_id Required parameter: The same ID as the
|
|
127
|
+
# `sequence_id`. <br><br>Example: `66e9e215ece19801b219997f`
|
|
128
|
+
# @param [String | Array[String]] send_email_from_email_account_id Required
|
|
129
|
+
# parameter: The Apollo ID(s) for the email account(s) used to send to
|
|
130
|
+
# contacts you add to the sequence. Accepts either one id as a string, or
|
|
131
|
+
# multiple ids as an array of strings (multi-mailbox / rotation). To find
|
|
132
|
+
# email account IDs, call the <a
|
|
133
|
+
# href="https://docs.apollo.io/reference/get-a-list-of-email-accounts"
|
|
134
|
+
# target="_blank">Get a List of Email Accounts endpoint</a> and identify the
|
|
135
|
+
# `id` value for each email account. <br><br>Examples:
|
|
136
|
+
# `6633baaece5fbd01c791d7ca` (string) or `["6633baaece5fbd01c791d7ca",
|
|
137
|
+
# "6633baaece5fbd01c791d7cb"]` (array).
|
|
138
|
+
# @param [Array[String]] contact_ids Optional parameter: The Apollo IDs for
|
|
139
|
+
# the contacts that you want to add to the sequence. <br><br>To find contact
|
|
140
|
+
# IDs, call the <a
|
|
141
|
+
# href="https://docs.apollo.io/reference/search-for-contacts"
|
|
142
|
+
# target="_blank">Search for Contacts endpoint</a> and identify the `id`
|
|
143
|
+
# value for the contact. <br><br>Example:
|
|
144
|
+
# `66e34b81740c50074e3d1bd4`<br><br>Note: Either `contact_ids[]` or
|
|
145
|
+
# `label_names[]` must be provided.
|
|
146
|
+
# @param [Array[String]] label_names Optional parameter: Alternative to
|
|
147
|
+
# `contact_ids[]`. Array of label names to identify contacts to add to the
|
|
148
|
+
# sequence. Contacts with these labels will be added to the sequence.
|
|
149
|
+
# <br><br>Note: Either `contact_ids[]` or `label_names[]` must be
|
|
150
|
+
# provided.
|
|
151
|
+
# @param [String] send_email_from_email_address Optional parameter: Optional
|
|
152
|
+
# specific email address to send from within the email account.
|
|
153
|
+
# @param [TrueClass | FalseClass] sequence_no_email Optional parameter: Set
|
|
154
|
+
# to `true` if you want to add contacts to the sequence even if they do not
|
|
155
|
+
# have an email address.
|
|
156
|
+
# @param [TrueClass | FalseClass] sequence_unverified_email Optional
|
|
157
|
+
# parameter: Set to `true` if you want to add contacts to the sequence if
|
|
158
|
+
# they have an unverified email address.
|
|
159
|
+
# @param [TrueClass | FalseClass] sequence_job_change Optional parameter:
|
|
160
|
+
# Set to `true` if you want to add contacts to the sequence even if they
|
|
161
|
+
# have recently changed jobs.
|
|
162
|
+
# @param [TrueClass | FalseClass] sequence_active_in_other_campaigns
|
|
163
|
+
# Optional parameter: Set to `true` if you want to add contacts to the
|
|
164
|
+
# sequence even if they have been added to other sequences. This parameter
|
|
165
|
+
# does not differentiate between active and paused sequences.
|
|
166
|
+
# @param [TrueClass | FalseClass] sequence_finished_in_other_campaigns
|
|
167
|
+
# Optional parameter: Set to `true` if you want to add contacts to the
|
|
168
|
+
# sequence if they have been marked as `finished` in another sequence.
|
|
169
|
+
# @param [TrueClass | FalseClass] sequence_same_company_in_same_campaign
|
|
170
|
+
# Optional parameter: Set to `true` if you want to add contacts to the
|
|
171
|
+
# sequence even if other contacts from the same company are already in the
|
|
172
|
+
# sequence.
|
|
173
|
+
# @param [TrueClass | FalseClass] contacts_without_ownership_permission
|
|
174
|
+
# Optional parameter: Set to `true` if you want to add contacts even if you
|
|
175
|
+
# don't have ownership permission for them.
|
|
176
|
+
# @param [TrueClass | FalseClass] add_if_in_queue Optional parameter: Set to
|
|
177
|
+
# `true` if you want to add contacts even if they are currently in the queue
|
|
178
|
+
# for processing.
|
|
179
|
+
# @param [TrueClass | FalseClass] contact_verification_skipped Optional
|
|
180
|
+
# parameter: Set to `true` if you want to skip contact verification during
|
|
181
|
+
# the addition process.
|
|
182
|
+
# @param [String] user_id Optional parameter: The ID for the user in your
|
|
183
|
+
# team's Apollo account. <br><br>This is the user taking the action to add
|
|
184
|
+
# contacts to a sequence. When the sequence is updated, the activity log
|
|
185
|
+
# shows the user that added the contacts. <br><br>Use the <a
|
|
186
|
+
# href="https://docs.apollo.io/reference/get-a-list-of-users"
|
|
187
|
+
# target="_blank">Get a List of Users endpoint</a> to retrieve IDs for all
|
|
188
|
+
# of the users within your Apollo account. <br><br>Example:
|
|
189
|
+
# `66302798d03b9601c7934ebf`
|
|
190
|
+
# @param [Status2] status Optional parameter: Initial status for added
|
|
191
|
+
# contacts. When set to `paused` along with `auto_unpause_at`, enables
|
|
192
|
+
# scheduled addition of contacts.
|
|
193
|
+
# @param [DateTime] auto_unpause_at Optional parameter: DateTime when paused
|
|
194
|
+
# contacts should be automatically unpaused. Must be used with
|
|
195
|
+
# `status=paused`. Format: ISO 8601 datetime string.
|
|
196
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
197
|
+
def add_contacts_to_sequence(sequence_id,
|
|
198
|
+
emailer_campaign_id,
|
|
199
|
+
send_email_from_email_account_id,
|
|
200
|
+
contact_ids: nil,
|
|
201
|
+
label_names: nil,
|
|
202
|
+
send_email_from_email_address: nil,
|
|
203
|
+
sequence_no_email: false,
|
|
204
|
+
sequence_unverified_email: false,
|
|
205
|
+
sequence_job_change: false,
|
|
206
|
+
sequence_active_in_other_campaigns: false,
|
|
207
|
+
sequence_finished_in_other_campaigns: false,
|
|
208
|
+
sequence_same_company_in_same_campaign: false,
|
|
209
|
+
contacts_without_ownership_permission: false,
|
|
210
|
+
add_if_in_queue: false,
|
|
211
|
+
contact_verification_skipped: false,
|
|
212
|
+
user_id: nil,
|
|
213
|
+
status: nil,
|
|
214
|
+
auto_unpause_at: nil)
|
|
215
|
+
@api_call
|
|
216
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
217
|
+
'/emailer_campaigns/{sequence_id}/add_contact_ids',
|
|
218
|
+
Server::DEFAULT)
|
|
219
|
+
.template_param(new_parameter(sequence_id, key: 'sequence_id')
|
|
220
|
+
.is_required(true)
|
|
221
|
+
.should_encode(true))
|
|
222
|
+
.query_param(new_parameter(emailer_campaign_id, key: 'emailer_campaign_id')
|
|
223
|
+
.is_required(true))
|
|
224
|
+
.query_param(new_parameter(send_email_from_email_account_id, key: 'send_email_from_email_account_id')
|
|
225
|
+
.is_required(true)
|
|
226
|
+
.validator(proc do |value|
|
|
227
|
+
UnionTypeLookUp.get(:AddContactsToSequenceSendEmailFromEmailAccountId)
|
|
228
|
+
.validate(value)
|
|
229
|
+
end))
|
|
230
|
+
.query_param(new_parameter(contact_ids, key: 'contact_ids[]'))
|
|
231
|
+
.query_param(new_parameter(label_names, key: 'label_names[]'))
|
|
232
|
+
.query_param(new_parameter(send_email_from_email_address, key: 'send_email_from_email_address'))
|
|
233
|
+
.query_param(new_parameter(sequence_no_email, key: 'sequence_no_email'))
|
|
234
|
+
.query_param(new_parameter(sequence_unverified_email, key: 'sequence_unverified_email'))
|
|
235
|
+
.query_param(new_parameter(sequence_job_change, key: 'sequence_job_change'))
|
|
236
|
+
.query_param(new_parameter(sequence_active_in_other_campaigns, key: 'sequence_active_in_other_campaigns'))
|
|
237
|
+
.query_param(new_parameter(sequence_finished_in_other_campaigns, key: 'sequence_finished_in_other_campaigns'))
|
|
238
|
+
.query_param(new_parameter(sequence_same_company_in_same_campaign, key: 'sequence_same_company_in_same_campaign'))
|
|
239
|
+
.query_param(new_parameter(contacts_without_ownership_permission, key: 'contacts_without_ownership_permission'))
|
|
240
|
+
.query_param(new_parameter(add_if_in_queue, key: 'add_if_in_queue'))
|
|
241
|
+
.query_param(new_parameter(contact_verification_skipped, key: 'contact_verification_skipped'))
|
|
242
|
+
.query_param(new_parameter(user_id, key: 'user_id'))
|
|
243
|
+
.query_param(new_parameter(status, key: 'status'))
|
|
244
|
+
.query_param(new_parameter(auto_unpause_at, key: 'auto_unpause_at'))
|
|
245
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
246
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
247
|
+
.response(new_response_handler
|
|
248
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
249
|
+
.deserialize_into(EmailerCampaignsAddContactIdsResponse.method(:from_hash))
|
|
250
|
+
.is_api_response(true)
|
|
251
|
+
.local_error('401',
|
|
252
|
+
'Unauthorized - Invalid API key',
|
|
253
|
+
APIException)
|
|
254
|
+
.local_error('403',
|
|
255
|
+
'Forbidden - Master API key required',
|
|
256
|
+
NeedMasterApiKeyException)
|
|
257
|
+
.local_error('422',
|
|
258
|
+
'Unprocessable Entity - Validation errors',
|
|
259
|
+
APIException)
|
|
260
|
+
.local_error('429',
|
|
261
|
+
'Too Many Requests - Rate limit exceeded',
|
|
262
|
+
EmailerCampaignsAddContactIds429ErrorException))
|
|
263
|
+
.execute
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
267
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
268
|
+
# <a
|
|
269
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
270
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
271
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
272
|
+
# time.<br><br>Use the Update Contact Status in a Sequence endpoint to
|
|
273
|
+
# either mark contacts as having `finished` a sequence, or to remove them
|
|
274
|
+
# from a sequence entirely.<br><br>This endpoint requires a master API key.
|
|
275
|
+
# If you call the endpoint without a master key, you receive a `403`
|
|
276
|
+
# response. Check out <a
|
|
277
|
+
# href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
|
|
278
|
+
# learn how to create a master key.
|
|
279
|
+
# @param [Array[String]] emailer_campaign_ids Required parameter: The Apollo
|
|
280
|
+
# IDs for the sequences that you want to update. If you add multiple
|
|
281
|
+
# sequences, you will update the status of the contacts across the chosen
|
|
282
|
+
# sequences. <br><br>To find sequence IDs, call the <a
|
|
283
|
+
# href="https://docs.apollo.io/reference/search-for-sequences"
|
|
284
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the `id`
|
|
285
|
+
# value for the sequence. <br><br>Example: `66e9e215ece19801b219997f`
|
|
286
|
+
# @param [Array[String]] contact_ids Required parameter: The Apollo IDs for
|
|
287
|
+
# the contacts in the sequences. These are the contacts whose sequence
|
|
288
|
+
# status you want to update. <br><br>To find contact IDs, call the <a
|
|
289
|
+
# href="https://docs.apollo.io/reference/search-for-contacts"
|
|
290
|
+
# target="_blank">Search for Contacts endpoint</a> and identify the `id`
|
|
291
|
+
# value for the contact. <br><br>Example: `66e34b81740c50074e3d1bd4`
|
|
292
|
+
# @param [String] mode Required parameter: Choose 1 of the following options
|
|
293
|
+
# to update the sequence status of the contacts: <ul> <li>
|
|
294
|
+
# `mark_as_finished`: Mark the contacts as having finished the sequence.
|
|
295
|
+
# </li> <li> `remove`: Remove the contacts from the sequence. </li> <li>
|
|
296
|
+
# `stop`: Indicate that the contacts progress in the sequence has halted.
|
|
297
|
+
# </li> </ul>
|
|
298
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
299
|
+
def update_contact_status_sequence(emailer_campaign_ids,
|
|
300
|
+
contact_ids,
|
|
301
|
+
mode)
|
|
302
|
+
@api_call
|
|
303
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
304
|
+
'/emailer_campaigns/remove_or_stop_contact_ids',
|
|
305
|
+
Server::DEFAULT)
|
|
306
|
+
.query_param(new_parameter(emailer_campaign_ids, key: 'emailer_campaign_ids[]')
|
|
307
|
+
.is_required(true))
|
|
308
|
+
.query_param(new_parameter(contact_ids, key: 'contact_ids[]')
|
|
309
|
+
.is_required(true))
|
|
310
|
+
.query_param(new_parameter(mode, key: 'mode')
|
|
311
|
+
.is_required(true))
|
|
312
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
313
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
314
|
+
.response(new_response_handler
|
|
315
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
316
|
+
.deserialize_into(EmailerCampaignsRemoveOrStopContactIdsResponse.method(:from_hash))
|
|
317
|
+
.is_api_response(true)
|
|
318
|
+
.local_error('401',
|
|
319
|
+
'401',
|
|
320
|
+
APIException)
|
|
321
|
+
.local_error('403',
|
|
322
|
+
'403',
|
|
323
|
+
NeedMasterApiKeyException)
|
|
324
|
+
.local_error('429',
|
|
325
|
+
'429',
|
|
326
|
+
EmailerCampaignsRemoveOrStopContactIds429ErrorException))
|
|
327
|
+
.execute
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
331
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
332
|
+
# <a
|
|
333
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
334
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
335
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
336
|
+
# time.<br><br>Use the Create a Sequence endpoint to create a new sequence
|
|
337
|
+
# in your team's Apollo account, including its steps and email
|
|
338
|
+
# templates.<br><br>To create a sequence with steps, add the `emailer_steps`
|
|
339
|
+
# array to the request body. Each email step (`auto_email`, `manual_email`)
|
|
340
|
+
# can include one or more `emailer_touches` (email variants); adding more
|
|
341
|
+
# than one touch to a step creates an A/B test, which requires a plan with
|
|
342
|
+
# A/B testing access.<br><br>To activate the sequence immediately after
|
|
343
|
+
# creation, set `active` to `true`. Email touches only send if their
|
|
344
|
+
# `status` is `approved`, and a touch can only be approved if its template
|
|
345
|
+
# has a non-empty body.<br><br>This endpoint requires a master API key. If
|
|
346
|
+
# you call the endpoint without a master key, you receive a `403` response.
|
|
347
|
+
# Check out <a href="https://docs.apollo.io/docs/create-api-key">Create an
|
|
348
|
+
# API Key</a> to learn how to create a master key.
|
|
349
|
+
# @param [SequencesRequest] body Required parameter: TODO: type description
|
|
350
|
+
# here
|
|
351
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
352
|
+
def create_sequence(body)
|
|
353
|
+
@api_call
|
|
354
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
355
|
+
'/sequences',
|
|
356
|
+
Server::DEFAULT)
|
|
357
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
358
|
+
.body_param(new_parameter(body)
|
|
359
|
+
.is_required(true))
|
|
360
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
361
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
362
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
363
|
+
.response(new_response_handler
|
|
364
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
365
|
+
.deserialize_into(SequencesResponse.method(:from_hash))
|
|
366
|
+
.is_api_response(true)
|
|
367
|
+
.local_error('401',
|
|
368
|
+
'401',
|
|
369
|
+
APIException)
|
|
370
|
+
.local_error('403',
|
|
371
|
+
'403',
|
|
372
|
+
NeedMasterApiKeyException)
|
|
373
|
+
.local_error('422',
|
|
374
|
+
'422',
|
|
375
|
+
Sequences422ErrorException)
|
|
376
|
+
.local_error('429',
|
|
377
|
+
'429',
|
|
378
|
+
APIException))
|
|
379
|
+
.execute
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
383
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
384
|
+
# <a
|
|
385
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
386
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
387
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
388
|
+
# time.<br><br>Use the Update a Sequence endpoint to update an existing
|
|
389
|
+
# sequence (emailer campaign) in your team's Apollo account.<br><br>You can
|
|
390
|
+
# update sequence-level settings, such as the name, active state, schedule,
|
|
391
|
+
# and sending limits, as well as the sequence's steps and the email touches
|
|
392
|
+
# within each step. <br><br>To turn a sequence on or off, set the `active`
|
|
393
|
+
# field. Passing `emailer_steps` will create, update, reorder, or remove
|
|
394
|
+
# steps and their touches based on the IDs you provide.<br><br>To create a
|
|
395
|
+
# new sequence instead, use the <a
|
|
396
|
+
# href="https://docs.apollo.io/reference/create-sequence">Create a Sequence
|
|
397
|
+
# endpoint</a>.<br><br>This endpoint requires a master API key. If you call
|
|
398
|
+
# the endpoint without a master key, you receive a `403` response. Check out
|
|
399
|
+
# <a href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a>
|
|
400
|
+
# to learn how to create a master key.
|
|
401
|
+
# @param [String] id Required parameter: The Apollo ID for the sequence that
|
|
402
|
+
# you want to update. <br><br>To find sequence IDs, call the <a
|
|
403
|
+
# href="https://docs.apollo.io/reference/search-for-sequences"
|
|
404
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the `id`
|
|
405
|
+
# value for the sequence. <br><br>Example: `66e34b81740c50074e3d1bd4`
|
|
406
|
+
# @param [SequencesRequest1] body Optional parameter: TODO: type description
|
|
407
|
+
# here
|
|
408
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
409
|
+
def update_sequence(id,
|
|
410
|
+
body: nil)
|
|
411
|
+
@api_call
|
|
412
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
413
|
+
'/sequences/{id}',
|
|
414
|
+
Server::DEFAULT)
|
|
415
|
+
.template_param(new_parameter(id, key: 'id')
|
|
416
|
+
.is_required(true)
|
|
417
|
+
.should_encode(true))
|
|
418
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
419
|
+
.body_param(new_parameter(body))
|
|
420
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
421
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
422
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
423
|
+
.response(new_response_handler
|
|
424
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
425
|
+
.deserialize_into(SequencesResponse1.method(:from_hash))
|
|
426
|
+
.is_api_response(true)
|
|
427
|
+
.local_error('401',
|
|
428
|
+
'401',
|
|
429
|
+
APIException)
|
|
430
|
+
.local_error('404',
|
|
431
|
+
'404',
|
|
432
|
+
Sequences404ErrorException)
|
|
433
|
+
.local_error('422',
|
|
434
|
+
'422',
|
|
435
|
+
Sequences422ErrorException)
|
|
436
|
+
.local_error('429',
|
|
437
|
+
'429',
|
|
438
|
+
Sequences429ErrorException))
|
|
439
|
+
.execute
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
443
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
444
|
+
# <a
|
|
445
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
446
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
447
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
448
|
+
# time.<br><br>Use the Check Email Stats endpoint to review the complete
|
|
449
|
+
# details for an email sent as part of an Apollo sequence. This includes the
|
|
450
|
+
# contents of the emails, stats related to the email such as opens and
|
|
451
|
+
# clicks, and details about the contact that received the email.<br><br>This
|
|
452
|
+
# endpoint requires a master API key. If you call the endpoint without a
|
|
453
|
+
# master key, you receive a `403` response. Check out <a
|
|
454
|
+
# href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
|
|
455
|
+
# learn how to create a master key.
|
|
456
|
+
# @param [String] id Required parameter: The ID for the email you want to
|
|
457
|
+
# view. <br><br>Each outreach email in Apollo is assigned a unique ID. To
|
|
458
|
+
# find email IDs, call the <a
|
|
459
|
+
# href="https://docs.apollo.io/reference/search-for-outreach-emails"
|
|
460
|
+
# target="_blank">Search for Outreach Emails endpoint</a> and identify the
|
|
461
|
+
# `id` value for the email. <br><br>Example: `684b2203a2ce950021cbf730`
|
|
462
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
463
|
+
def get_emailstats(id)
|
|
464
|
+
@api_call
|
|
465
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
466
|
+
'/emailer_messages/{id}/activities',
|
|
467
|
+
Server::DEFAULT)
|
|
468
|
+
.template_param(new_parameter(id, key: 'id')
|
|
469
|
+
.is_required(true)
|
|
470
|
+
.should_encode(true))
|
|
471
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
472
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
473
|
+
.response(new_response_handler
|
|
474
|
+
.deserializer(APIHelper.method(:dynamic_deserializer))
|
|
475
|
+
.is_api_response(true)
|
|
476
|
+
.local_error('401',
|
|
477
|
+
'401',
|
|
478
|
+
APIException)
|
|
479
|
+
.local_error('403',
|
|
480
|
+
'Forbidden',
|
|
481
|
+
APIException)
|
|
482
|
+
.local_error('422',
|
|
483
|
+
'Unprocessable Entity',
|
|
484
|
+
APIException))
|
|
485
|
+
.execute
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
489
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
490
|
+
# <a
|
|
491
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
492
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
493
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
494
|
+
# time.<br><br>Use the Search for Outreach Emails endpoint to find emails
|
|
495
|
+
# that your team has created and sent as part of Apollo sequences.<br><br>To
|
|
496
|
+
# protect Apollo's performance for all users, this endpoint has a display
|
|
497
|
+
# limit of 50,000 records (100 records per page, up to 500 pages). Add more
|
|
498
|
+
# filters to narrow your search results as much as possible.
|
|
499
|
+
# @param [Array[String]] emailer_message_stats Optional parameter: Find
|
|
500
|
+
# emails based on their current status, such as whether they were delivered
|
|
501
|
+
# or opened. You can add multiple statuses. <br><br>Possible values include:
|
|
502
|
+
# <ul> <li> `delivered` </li> <li> `scheduled` </li> <li> `drafted` </li>
|
|
503
|
+
# <li> `not_opened` </li> <li> `opened` </li> <li> `clicked` </li> <li>
|
|
504
|
+
# `unsubscribed` </li> <li> `demoed` </li> <li> `bounced` </li> <li>
|
|
505
|
+
# `spam_blocked` </li> <li> `failed_other` </li> </ul>
|
|
506
|
+
# @param [Array[String]] emailer_message_reply_classes Optional parameter:
|
|
507
|
+
# Find emails based on the response sentiment of the recipient. This can
|
|
508
|
+
# include the recipient expressing interest in meeting or having a follow-up
|
|
509
|
+
# question. You can add multiple values.<br><br>Possible values include:
|
|
510
|
+
# <ul> <li> `willing_to_meet` </li> <li> `follow_up_question` </li> <li>
|
|
511
|
+
# `person_referral` </li> <li> `out_of_office` </li> <li>
|
|
512
|
+
# `already_left_company_or_not_right_person` </li> <li> `not_interested`
|
|
513
|
+
# </li> <li> `unsubscribe` </li> <li> `none_of_the_above` </li> </ul>
|
|
514
|
+
# @param [Array[String]] user_ids Optional parameter: Find emails sent by
|
|
515
|
+
# specific users in your team's Apollo account. You can add multiple users.
|
|
516
|
+
# <br><br>Use the <a
|
|
517
|
+
# href="https://docs.apollo.io/reference/get-a-list-of-users"
|
|
518
|
+
# target="_blank">Get a List of Users endpoint</a> to retrieve IDs for all
|
|
519
|
+
# of the users within your Apollo account. <br><br>Example:
|
|
520
|
+
# `66302798d03b9601c7934ebf`
|
|
521
|
+
# @param [String] email_account_id_and_aliases Optional parameter:
|
|
522
|
+
# Example:
|
|
523
|
+
# @param [Array[String]] emailer_campaign_ids Optional parameter: Search for
|
|
524
|
+
# emails that are included in specific sequences in your Apollo account. You
|
|
525
|
+
# can search multiple sequences. Any sequence not included in this parameter
|
|
526
|
+
# will be exclude from search results.<br><br>To find sequence IDs, call the
|
|
527
|
+
# <a href="https://docs.apollo.io/reference/search-for-sequences"
|
|
528
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the `id`
|
|
529
|
+
# value for the sequence. <br><br>Example: `66e9e215ece19801b219997f`
|
|
530
|
+
# @param [Array[String]] not_emailer_campaign_ids Optional parameter:
|
|
531
|
+
# Exclude emails from specific sequences in your Apollo account. You can
|
|
532
|
+
# exclude multiple sequences. Any sequence not excluded using this parameter
|
|
533
|
+
# will be included in search results.<br><br>To find sequence IDs, call the
|
|
534
|
+
# <a href="https://docs.apollo.io/reference/search-for-sequences"
|
|
535
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the `id`
|
|
536
|
+
# value for the sequence. <br><br>Example: `66e9e215ece19801b219997f`
|
|
537
|
+
# @param [String] emailer_message_date_range_mode Optional parameter: Use
|
|
538
|
+
# this parameter in combination with the `emailer_message_date_range[max]`
|
|
539
|
+
# and `emailer_message_date_range[min]` parameters. Find emails based on 1
|
|
540
|
+
# of the following options: <ul> <li> `due_at`: When emails are scheduled to
|
|
541
|
+
# be delivered. </li> <li> `completed_at`: When emails were delivered. </li>
|
|
542
|
+
# </ul>
|
|
543
|
+
# @param [Date] emailer_message_date_range_max Optional parameter: Set the
|
|
544
|
+
# upper bound of the date range you want to search. <br><br>Use this
|
|
545
|
+
# parameter in combination with the `emailer_message_date_range[min]` and
|
|
546
|
+
# `emailer_message_date_range_mode` parameters. This date should fall after
|
|
547
|
+
# the `emailer_message_date_range[min]` date. <br><br>The date should be
|
|
548
|
+
# formatted as `YYYY-MM-DD`. <br><br>Example: `2025-10-30`
|
|
549
|
+
# @param [Date] emailer_message_date_range_min Optional parameter: Set the
|
|
550
|
+
# lower bound of the date range you want to search. <br><br>Use this
|
|
551
|
+
# parameter in combination with the `emailer_message_date_range[max]` and
|
|
552
|
+
# `emailer_message_date_range_mode` parameters. This date should fall before
|
|
553
|
+
# the `emailer_message_date_range[max]` date. <br><br>The date should be
|
|
554
|
+
# formatted as `YYYY-MM-DD`. <br><br>Example: `2025-10-30`
|
|
555
|
+
# @param [Array[String]] not_sent_reason_cds Optional parameter: Find emails
|
|
556
|
+
# based on the reason they were not sent. You can add multiple
|
|
557
|
+
# values.<br><br>Possible values include: <ul> <li>
|
|
558
|
+
# `contact_stage_safeguard` </li> <li> `same_account_reply` </li> <li>
|
|
559
|
+
# `account_stage_safeguard` </li> <li> `email_unverified` </li> <li>
|
|
560
|
+
# `snippets_missing` </li> <li> `personalized_opener_missing` </li> <li>
|
|
561
|
+
# `thread_reply_original_email_missing` </li> <li> `no_active_email_account`
|
|
562
|
+
# </li> <li> `email_format_invalid` </li> <li> `ownership_permission` </li>
|
|
563
|
+
# <li> `email_service_provider_delivery_failure` </li> <li>
|
|
564
|
+
# `sendgrid_dropped_email` </li> <li> `mailgun_dropped_email` </li> <li>
|
|
565
|
+
# `gdpr_compliance` </li> <li> `not_valid_hard_bounce_detected` <li>
|
|
566
|
+
# `other_safeguard` </li> <li> `new_job_change_detected` </li> <li>
|
|
567
|
+
# `email_on_global_bounce_list` </li> </ul>
|
|
568
|
+
# @param [String] q_keywords Optional parameter: Add keywords to narrow the
|
|
569
|
+
# search of the emails in your team's Apollo account. <br><br>Keywords
|
|
570
|
+
# should directly match at least part of an email's content. For example,
|
|
571
|
+
# searching the keyword `James` might return emails that were sent by `James
|
|
572
|
+
# Smith`. <br><br>Example: `Jane`
|
|
573
|
+
# @param [Integer] page Optional parameter: The page number of the Apollo
|
|
574
|
+
# data that you want to retrieve. <br><br>Use this parameter in combination
|
|
575
|
+
# with the `per_page` parameter to make search results for navigable and
|
|
576
|
+
# improve the performance of the endpoint. <br><br>Example: `4`
|
|
577
|
+
# @param [Integer] per_page Optional parameter: The number of search results
|
|
578
|
+
# that should be returned for each page. Limiting the number of results per
|
|
579
|
+
# page improves the endpoint's performance. <br><br>Use the `page` parameter
|
|
580
|
+
# to search the different pages of data. <br><br>Example: `10`
|
|
581
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
582
|
+
def emailer_messages_search(emailer_message_stats: nil,
|
|
583
|
+
emailer_message_reply_classes: nil,
|
|
584
|
+
user_ids: nil,
|
|
585
|
+
email_account_id_and_aliases: nil,
|
|
586
|
+
emailer_campaign_ids: nil,
|
|
587
|
+
not_emailer_campaign_ids: nil,
|
|
588
|
+
emailer_message_date_range_mode: nil,
|
|
589
|
+
emailer_message_date_range_max: nil,
|
|
590
|
+
emailer_message_date_range_min: nil,
|
|
591
|
+
not_sent_reason_cds: nil,
|
|
592
|
+
q_keywords: nil,
|
|
593
|
+
page: nil,
|
|
594
|
+
per_page: nil)
|
|
595
|
+
@api_call
|
|
596
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
597
|
+
'/emailer_messages/search',
|
|
598
|
+
Server::DEFAULT)
|
|
599
|
+
.query_param(new_parameter(emailer_message_stats, key: 'emailer_message_stats[]'))
|
|
600
|
+
.query_param(new_parameter(emailer_message_reply_classes, key: 'emailer_message_reply_classes[]'))
|
|
601
|
+
.query_param(new_parameter(user_ids, key: 'user_ids[]'))
|
|
602
|
+
.query_param(new_parameter(email_account_id_and_aliases, key: 'email_account_id_and_aliases'))
|
|
603
|
+
.query_param(new_parameter(emailer_campaign_ids, key: 'emailer_campaign_ids[]'))
|
|
604
|
+
.query_param(new_parameter(not_emailer_campaign_ids, key: 'not_emailer_campaign_ids[]'))
|
|
605
|
+
.query_param(new_parameter(emailer_message_date_range_mode, key: 'emailer_message_date_range_mode'))
|
|
606
|
+
.query_param(new_parameter(emailer_message_date_range_max, key: 'emailer_message_date_range[max]'))
|
|
607
|
+
.query_param(new_parameter(emailer_message_date_range_min, key: 'emailer_message_date_range[min]'))
|
|
608
|
+
.query_param(new_parameter(not_sent_reason_cds, key: 'not_sent_reason_cds[]'))
|
|
609
|
+
.query_param(new_parameter(q_keywords, key: 'q_keywords'))
|
|
610
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
611
|
+
.query_param(new_parameter(per_page, key: 'per_page'))
|
|
612
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
613
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
614
|
+
.response(new_response_handler
|
|
615
|
+
.deserializer(APIHelper.method(:dynamic_deserializer))
|
|
616
|
+
.is_api_response(true)
|
|
617
|
+
.local_error('401',
|
|
618
|
+
'Unauthorized',
|
|
619
|
+
APIException)
|
|
620
|
+
.local_error('422',
|
|
621
|
+
'422',
|
|
622
|
+
EmailerMessagesSearch422ErrorException)
|
|
623
|
+
.local_error('429',
|
|
624
|
+
'429',
|
|
625
|
+
EmailerMessagesSearch429ErrorException))
|
|
626
|
+
.execute
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
630
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
631
|
+
# <a
|
|
632
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
633
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
634
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
635
|
+
# time.<br><br>Use the Activate a Sequence endpoint to start an inactive
|
|
636
|
+
# sequence. Once activated, the sequence begins sending emails to its
|
|
637
|
+
# contacts on the configured schedule. The sequence must have at least one
|
|
638
|
+
# step configured before it can be activated.<br><br>This endpoint requires
|
|
639
|
+
# a master API key. If you call the endpoint without a master key, you
|
|
640
|
+
# receive a `403` response. Check out <a
|
|
641
|
+
# href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
|
|
642
|
+
# learn how to create a master key.
|
|
643
|
+
# @param [String] sequence_id Required parameter: The Apollo ID for the
|
|
644
|
+
# sequence that you want to activate. <br><br>To find sequence IDs, call the
|
|
645
|
+
# <a href="https://docs.apollo.io/reference/search-for-sequences"
|
|
646
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the
|
|
647
|
+
# <code>id</code> value for the sequence. <br><br>Example:
|
|
648
|
+
# <code>66e9e215ece19801b219997f</code>
|
|
649
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
650
|
+
def approve_sequence(sequence_id)
|
|
651
|
+
@api_call
|
|
652
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
653
|
+
'/emailer_campaigns/{sequence_id}/approve',
|
|
654
|
+
Server::DEFAULT)
|
|
655
|
+
.template_param(new_parameter(sequence_id, key: 'sequence_id')
|
|
656
|
+
.is_required(true)
|
|
657
|
+
.should_encode(true))
|
|
658
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
659
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
660
|
+
.response(new_response_handler
|
|
661
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
662
|
+
.deserialize_into(EmailerCampaignsApproveResponse.method(:from_hash))
|
|
663
|
+
.is_api_response(true)
|
|
664
|
+
.local_error('401',
|
|
665
|
+
'401',
|
|
666
|
+
APIException)
|
|
667
|
+
.local_error('403',
|
|
668
|
+
'403',
|
|
669
|
+
NeedMasterApiKeyException)
|
|
670
|
+
.local_error('422',
|
|
671
|
+
'422',
|
|
672
|
+
EmailerCampaignsApprove422ErrorException)
|
|
673
|
+
.local_error('429',
|
|
674
|
+
'429',
|
|
675
|
+
EmailerCampaignsApprove429ErrorException))
|
|
676
|
+
.execute
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
680
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
681
|
+
# <a
|
|
682
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
683
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
684
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
685
|
+
# time.<br><br>Use the Deactivate a Sequence endpoint to stop an active
|
|
686
|
+
# sequence. Once deactivated, the sequence pauses all contacts and stops
|
|
687
|
+
# sending emails.<br><br>This endpoint requires a master API key. If you
|
|
688
|
+
# call the endpoint without a master key, you receive a `403` response.
|
|
689
|
+
# Check out <a href="https://docs.apollo.io/docs/create-api-key">Create an
|
|
690
|
+
# API Key</a> to learn how to create a master key.
|
|
691
|
+
# @param [String] sequence_id Required parameter: The Apollo ID for the
|
|
692
|
+
# sequence that you want to deactivate. <br><br>To find sequence IDs, call
|
|
693
|
+
# the <a href="https://docs.apollo.io/reference/search-for-sequences"
|
|
694
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the
|
|
695
|
+
# <code>id</code> value for the sequence. <br><br>Example:
|
|
696
|
+
# <code>66e9e215ece19801b219997f</code>
|
|
697
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
698
|
+
def abort_sequence(sequence_id)
|
|
699
|
+
@api_call
|
|
700
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
701
|
+
'/emailer_campaigns/{sequence_id}/abort',
|
|
702
|
+
Server::DEFAULT)
|
|
703
|
+
.template_param(new_parameter(sequence_id, key: 'sequence_id')
|
|
704
|
+
.is_required(true)
|
|
705
|
+
.should_encode(true))
|
|
706
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
707
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
708
|
+
.response(new_response_handler
|
|
709
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
710
|
+
.deserialize_into(EmailerCampaignsAbortResponse.method(:from_hash))
|
|
711
|
+
.is_api_response(true)
|
|
712
|
+
.local_error('401',
|
|
713
|
+
'401',
|
|
714
|
+
APIException)
|
|
715
|
+
.local_error('403',
|
|
716
|
+
'403',
|
|
717
|
+
NeedMasterApiKeyException)
|
|
718
|
+
.local_error('422',
|
|
719
|
+
'422',
|
|
720
|
+
EmailerCampaignsAbort422ErrorException)
|
|
721
|
+
.local_error('429',
|
|
722
|
+
'429',
|
|
723
|
+
EmailerCampaignsAbort429ErrorException))
|
|
724
|
+
.execute
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
728
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
729
|
+
# <a
|
|
730
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/4409237165837-Sequence
|
|
731
|
+
# s-Overview" target="_blank">Sequences</a> are outreach campaigns that
|
|
732
|
+
# sales teams use to reach out to contacts over a planned period of
|
|
733
|
+
# time.<br><br>Use the Archive a Sequence endpoint to archive a sequence.
|
|
734
|
+
# Archiving a sequence marks it as inactive and finishes all contacts
|
|
735
|
+
# currently in the sequence. You must be the owner of the sequence or have
|
|
736
|
+
# full access sharing permissions to archive it.<br><br>This endpoint
|
|
737
|
+
# requires a master API key. If you call the endpoint without a master key,
|
|
738
|
+
# you receive a `403` response. Check out <a
|
|
739
|
+
# href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
|
|
740
|
+
# learn how to create a master key.
|
|
741
|
+
# @param [String] sequence_id Required parameter: The Apollo ID for the
|
|
742
|
+
# sequence that you want to archive. <br><br>To find sequence IDs, call the
|
|
743
|
+
# <a href="https://docs.apollo.io/reference/search-for-sequences"
|
|
744
|
+
# target="_blank">Search for Sequences endpoint</a> and identify the
|
|
745
|
+
# <code>id</code> value for the sequence. <br><br>Example:
|
|
746
|
+
# <code>66e9e215ece19801b219997f</code>
|
|
747
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
748
|
+
def archive_sequence(sequence_id)
|
|
749
|
+
@api_call
|
|
750
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
751
|
+
'/emailer_campaigns/{sequence_id}/archive',
|
|
752
|
+
Server::DEFAULT)
|
|
753
|
+
.template_param(new_parameter(sequence_id, key: 'sequence_id')
|
|
754
|
+
.is_required(true)
|
|
755
|
+
.should_encode(true))
|
|
756
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
757
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
758
|
+
.response(new_response_handler
|
|
759
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
760
|
+
.deserialize_into(EmailerCampaignsArchiveResponse.method(:from_hash))
|
|
761
|
+
.is_api_response(true)
|
|
762
|
+
.local_error('401',
|
|
763
|
+
'401',
|
|
764
|
+
APIException)
|
|
765
|
+
.local_error('403',
|
|
766
|
+
'403',
|
|
767
|
+
NeedMasterApiKeyException)
|
|
768
|
+
.local_error('429',
|
|
769
|
+
'429',
|
|
770
|
+
EmailerCampaignsArchive429ErrorException))
|
|
771
|
+
.execute
|
|
772
|
+
end
|
|
773
|
+
end
|
|
774
|
+
end
|