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,397 @@
|
|
|
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
|
+
# TasksApi
|
|
8
|
+
class TasksApi < 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/28705458602125-Tasks-O
|
|
13
|
+
# verview" target="_blank">Tasks</a> let you track, prioritize, and help you
|
|
14
|
+
# complete actions required for your outbound sales motion.<br><br>Use the
|
|
15
|
+
# Create a Task endpoint to create a single task in Apollo for you and your
|
|
16
|
+
# team. Tasks help track the upcoming actions you need to take, such as
|
|
17
|
+
# emailing or calling a contact.<br><br>This endpoint returns the created
|
|
18
|
+
# task object.<br><br>Apollo does not apply deduplication processes when
|
|
19
|
+
# you create a new task via the API. If your entry has the same task owner,
|
|
20
|
+
# contact, and other details as an existing task, Apollo will create a new
|
|
21
|
+
# task instead of updating the existing task.<br><br>This endpoint requires
|
|
22
|
+
# a master API key. If you call the endpoint without a master key, you
|
|
23
|
+
# receive a `403` response. Check out <a
|
|
24
|
+
# href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
|
|
25
|
+
# learn how to create a master key.
|
|
26
|
+
# @param [TasksRequest] body Required parameter: TODO: type description
|
|
27
|
+
# here
|
|
28
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
29
|
+
def create_a_task(body)
|
|
30
|
+
@api_call
|
|
31
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
32
|
+
'/tasks',
|
|
33
|
+
Server::DEFAULT)
|
|
34
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
35
|
+
.body_param(new_parameter(body)
|
|
36
|
+
.is_required(true))
|
|
37
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
38
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
39
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
40
|
+
.response(new_response_handler
|
|
41
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
42
|
+
.deserialize_into(TasksResponse.method(:from_hash))
|
|
43
|
+
.is_api_response(true)
|
|
44
|
+
.local_error('401',
|
|
45
|
+
'401',
|
|
46
|
+
APIException)
|
|
47
|
+
.local_error('403',
|
|
48
|
+
'403',
|
|
49
|
+
NeedMasterApiKeyException)
|
|
50
|
+
.local_error('422',
|
|
51
|
+
'422',
|
|
52
|
+
Tasks422ErrorException)
|
|
53
|
+
.local_error('429',
|
|
54
|
+
'429',
|
|
55
|
+
Tasks429ErrorException))
|
|
56
|
+
.execute
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
60
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
61
|
+
# <a
|
|
62
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/28705458602125-Tasks-O
|
|
63
|
+
# verview" target="_blank">Tasks</a> let you track, prioritize, and help you
|
|
64
|
+
# complete actions required for your outbound sales motion.<br><br>Use the
|
|
65
|
+
# Bulk Create Tasks endpoint to create multiple tasks in a single API
|
|
66
|
+
# request. A separate task will be created for each contact provided.
|
|
67
|
+
# <br><br>This endpoint returns a `success` boolean and a `tasks` array
|
|
68
|
+
# containing the created tasks. <br><br>Apollo doesn't apply deduplication
|
|
69
|
+
# processes when you create a new task via the API. If your entry has the
|
|
70
|
+
# same task owner, contact, and other details as an existing task, Apollo
|
|
71
|
+
# creates a new task instead of updating the existing task. <br><br>For
|
|
72
|
+
# creating a single task, use the <a
|
|
73
|
+
# href="https://docs.apollo.io/reference/create-a-task">Create a Task
|
|
74
|
+
# endpoint</a> instead. <br><br>This endpoint requires a master API key. If
|
|
75
|
+
# you call the endpoint without a master key, you receive a `403` response.
|
|
76
|
+
# Check out <a href="https://docs.apollo.io/docs/create-api-key">Create an
|
|
77
|
+
# API Key</a> to learn how to create a master key.
|
|
78
|
+
# @param [TasksBulkCreateRequest] body Required parameter: TODO: type
|
|
79
|
+
# description here
|
|
80
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
81
|
+
def bulk_create_tasks(body)
|
|
82
|
+
@api_call
|
|
83
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
84
|
+
'/tasks/bulk_create',
|
|
85
|
+
Server::DEFAULT)
|
|
86
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
87
|
+
.body_param(new_parameter(body)
|
|
88
|
+
.is_required(true))
|
|
89
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
90
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
91
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
92
|
+
.response(new_response_handler
|
|
93
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
94
|
+
.deserialize_into(TasksBulkCreateResponse.method(:from_hash))
|
|
95
|
+
.is_api_response(true)
|
|
96
|
+
.local_error('401',
|
|
97
|
+
'401',
|
|
98
|
+
APIException)
|
|
99
|
+
.local_error('403',
|
|
100
|
+
'403',
|
|
101
|
+
NeedMasterApiKeyException)
|
|
102
|
+
.local_error('422',
|
|
103
|
+
'422',
|
|
104
|
+
TasksBulkCreate422ErrorException)
|
|
105
|
+
.local_error('429',
|
|
106
|
+
'429',
|
|
107
|
+
TasksBulkCreate429ErrorException))
|
|
108
|
+
.execute
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
112
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
113
|
+
# <a
|
|
114
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/28705458602125-Tasks-O
|
|
115
|
+
# verview" target="_blank">Tasks</a> let you track, prioritize, and help you
|
|
116
|
+
# complete actions required for your outbound sales motion.<br><br>Use the
|
|
117
|
+
# Get a Task endpoint to retrieve the full details for a single task that
|
|
118
|
+
# belongs to your team's Apollo account.<br><br>The response includes the
|
|
119
|
+
# task's associated <a
|
|
120
|
+
# href="https://docs.apollo.io/reference/view-an-account">account</a> and <a
|
|
121
|
+
# href="https://docs.apollo.io/reference/view-a-contact">contact</a> when
|
|
122
|
+
# the task has one attached. Depending on the task type, the response can
|
|
123
|
+
# also include other fields, such as `phone_call` for call tasks,
|
|
124
|
+
# `emailer_message` for email tasks, or a LinkedIn message template for
|
|
125
|
+
# LinkedIn-step tasks.<br><br>To find task IDs, use the <a
|
|
126
|
+
# href="https://docs.apollo.io/reference/search-tasks">Search for Tasks
|
|
127
|
+
# endpoint</a> and identify the `id` value for the task you want to view.
|
|
128
|
+
# @param [String] id Required parameter: The Apollo ID for the task.
|
|
129
|
+
# <br><br>To find task IDs, call the <a
|
|
130
|
+
# href="https://docs.apollo.io/reference/search-tasks">Search for Tasks
|
|
131
|
+
# endpoint</a> and identify the `id` value for the task. <br><br>Example:
|
|
132
|
+
# `67a1b2c3d4e5f60001234567`
|
|
133
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
134
|
+
def get_a_task(id)
|
|
135
|
+
@api_call
|
|
136
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
137
|
+
'/tasks/{id}',
|
|
138
|
+
Server::DEFAULT)
|
|
139
|
+
.template_param(new_parameter(id, key: 'id')
|
|
140
|
+
.is_required(true)
|
|
141
|
+
.should_encode(true))
|
|
142
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
143
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
144
|
+
.response(new_response_handler
|
|
145
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
146
|
+
.deserialize_into(TasksResponse1.method(:from_hash))
|
|
147
|
+
.is_api_response(true)
|
|
148
|
+
.local_error('401',
|
|
149
|
+
'401',
|
|
150
|
+
APIException)
|
|
151
|
+
.local_error('403',
|
|
152
|
+
'403',
|
|
153
|
+
NeedMasterApiKeyException)
|
|
154
|
+
.local_error('422',
|
|
155
|
+
'422',
|
|
156
|
+
Tasks422ErrorException)
|
|
157
|
+
.local_error('429',
|
|
158
|
+
'429',
|
|
159
|
+
Tasks429ErrorException))
|
|
160
|
+
.execute
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
164
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
165
|
+
# <a
|
|
166
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/28705458602125-Tasks-O
|
|
167
|
+
# verview" target="_blank">Tasks</a> let you track, prioritize, and help you
|
|
168
|
+
# complete actions required for your outbound sales motion.<br><br>Use the
|
|
169
|
+
# Update a Task endpoint to change the details of an existing task that
|
|
170
|
+
# belongs to your team's Apollo account.<br><br>The fields you can update
|
|
171
|
+
# depend on the task's current `status`. For a task with a `scheduled`
|
|
172
|
+
# status, you can update any of the parameters listed below. For a task
|
|
173
|
+
# that's already `completed` or `skipped`, you can only update `note`,
|
|
174
|
+
# `priority`, `priority_cd`, and `contact_id`.<br><br>To find task IDs, use
|
|
175
|
+
# the <a href="https://docs.apollo.io/reference/search-tasks">Search for
|
|
176
|
+
# Tasks endpoint</a> and identify the `id` value for the task you want to
|
|
177
|
+
# update.
|
|
178
|
+
# @param [String] id Required parameter: The Apollo ID for the task.
|
|
179
|
+
# <br><br>To find task IDs, call the <a
|
|
180
|
+
# href="https://docs.apollo.io/reference/search-tasks">Search for Tasks
|
|
181
|
+
# endpoint</a> and identify the `id` value for the task. <br><br>Example:
|
|
182
|
+
# `67a1b2c3d4e5f60001234567`
|
|
183
|
+
# @param [TasksRequest1] body Optional parameter: TODO: type description
|
|
184
|
+
# here
|
|
185
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
186
|
+
def update_a_task(id,
|
|
187
|
+
body: nil)
|
|
188
|
+
@api_call
|
|
189
|
+
.request(new_request_builder(HttpMethodEnum::PATCH,
|
|
190
|
+
'/tasks/{id}',
|
|
191
|
+
Server::DEFAULT)
|
|
192
|
+
.template_param(new_parameter(id, key: 'id')
|
|
193
|
+
.is_required(true)
|
|
194
|
+
.should_encode(true))
|
|
195
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
196
|
+
.body_param(new_parameter(body))
|
|
197
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
198
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
199
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
200
|
+
.response(new_response_handler
|
|
201
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
202
|
+
.deserialize_into(TasksResponse1.method(:from_hash))
|
|
203
|
+
.is_api_response(true)
|
|
204
|
+
.local_error('401',
|
|
205
|
+
'401',
|
|
206
|
+
Tasks401ErrorException)
|
|
207
|
+
.local_error('403',
|
|
208
|
+
'403',
|
|
209
|
+
NeedMasterApiKeyException)
|
|
210
|
+
.local_error('422',
|
|
211
|
+
'422',
|
|
212
|
+
Tasks422ErrorException)
|
|
213
|
+
.local_error('429',
|
|
214
|
+
'429',
|
|
215
|
+
Tasks429ErrorException))
|
|
216
|
+
.execute
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
220
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
221
|
+
# <a
|
|
222
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/28705458602125-Tasks-O
|
|
223
|
+
# verview" target="_blank">Tasks</a> let you track, prioritize, and help you
|
|
224
|
+
# complete actions required for your outbound sales motion.<br><br>Use the
|
|
225
|
+
# Complete a Task endpoint to mark an existing task as
|
|
226
|
+
# `completed`.<br><br>To find task IDs, use the <a
|
|
227
|
+
# href="https://docs.apollo.io/reference/search-tasks">Search for Tasks
|
|
228
|
+
# endpoint</a> and identify the `id` value for the task you want to
|
|
229
|
+
# complete.<br><br>If the task no longer exists (for example, because the
|
|
230
|
+
# sequence it belonged to was paused and the task was removed), Apollo
|
|
231
|
+
# returns a `200` response with `deleted: true` on the task instead of an
|
|
232
|
+
# error.<br><br>To skip a task instead of completing it, use the <a
|
|
233
|
+
# href="https://docs.apollo.io/reference/skip-a-task">Skip a Task
|
|
234
|
+
# endpoint</a>.
|
|
235
|
+
# @param [String] id Required parameter: The Apollo ID for the task.
|
|
236
|
+
# <br><br>To find task IDs, call the <a
|
|
237
|
+
# href="https://docs.apollo.io/reference/search-tasks">Search for Tasks
|
|
238
|
+
# endpoint</a> and identify the `id` value for the task. <br><br>Example:
|
|
239
|
+
# `67a1b2c3d4e5f60001234567`
|
|
240
|
+
# @param [TasksCompleteRequest] body Optional parameter: TODO: type
|
|
241
|
+
# description here
|
|
242
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
243
|
+
def complete_a_task(id,
|
|
244
|
+
body: nil)
|
|
245
|
+
@api_call
|
|
246
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
247
|
+
'/tasks/{id}/complete',
|
|
248
|
+
Server::DEFAULT)
|
|
249
|
+
.template_param(new_parameter(id, key: 'id')
|
|
250
|
+
.is_required(true)
|
|
251
|
+
.should_encode(true))
|
|
252
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
253
|
+
.body_param(new_parameter(body))
|
|
254
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
255
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
256
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
257
|
+
.response(new_response_handler
|
|
258
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
259
|
+
.deserialize_into(TasksCompleteResponse.method(:from_hash))
|
|
260
|
+
.is_api_response(true)
|
|
261
|
+
.local_error('401',
|
|
262
|
+
'401',
|
|
263
|
+
APIException)
|
|
264
|
+
.local_error('403',
|
|
265
|
+
'403',
|
|
266
|
+
NeedMasterApiKeyException)
|
|
267
|
+
.local_error('422',
|
|
268
|
+
'422',
|
|
269
|
+
TasksComplete422ErrorException)
|
|
270
|
+
.local_error('429',
|
|
271
|
+
'429',
|
|
272
|
+
TasksComplete429ErrorException))
|
|
273
|
+
.execute
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
277
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
278
|
+
# <a
|
|
279
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/28705458602125-Tasks-O
|
|
280
|
+
# verview" target="_blank">Tasks</a> let you track, prioritize, and help you
|
|
281
|
+
# complete actions required for your outbound sales motion.<br><br>Use the
|
|
282
|
+
# Skip a Task endpoint to mark an existing task as `skipped` without
|
|
283
|
+
# completing it.<br><br>To find task IDs, use the <a
|
|
284
|
+
# href="https://docs.apollo.io/reference/search-tasks">Search for Tasks
|
|
285
|
+
# endpoint</a> and identify the `id` value for the task you want to
|
|
286
|
+
# skip.<br><br>If the task no longer exists (for example, because the
|
|
287
|
+
# sequence it belonged to was paused and the task was removed), Apollo
|
|
288
|
+
# returns a `200` response with `deleted: true` on the task instead of an
|
|
289
|
+
# error.<br><br>To mark a task as done instead of skipping it, use the <a
|
|
290
|
+
# href="https://docs.apollo.io/reference/complete-a-task">Complete a Task
|
|
291
|
+
# endpoint</a>.
|
|
292
|
+
# @param [String] id Required parameter: The Apollo ID for the task.
|
|
293
|
+
# <br><br>To find task IDs, call the <a
|
|
294
|
+
# href="https://docs.apollo.io/reference/search-tasks">Search for Tasks
|
|
295
|
+
# endpoint</a> and identify the `id` value for the task. <br><br>Example:
|
|
296
|
+
# `67a1b2c3d4e5f60001234567`
|
|
297
|
+
# @param [TasksSkipRequest] body Optional parameter: TODO: type description
|
|
298
|
+
# here
|
|
299
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
300
|
+
def skip_a_task(id,
|
|
301
|
+
body: nil)
|
|
302
|
+
@api_call
|
|
303
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
304
|
+
'/tasks/{id}/skip',
|
|
305
|
+
Server::DEFAULT)
|
|
306
|
+
.template_param(new_parameter(id, key: 'id')
|
|
307
|
+
.is_required(true)
|
|
308
|
+
.should_encode(true))
|
|
309
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
310
|
+
.body_param(new_parameter(body))
|
|
311
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
312
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
313
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
314
|
+
.response(new_response_handler
|
|
315
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
316
|
+
.deserialize_into(TasksSkipResponse.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('422',
|
|
325
|
+
'422',
|
|
326
|
+
TasksSkip422ErrorException)
|
|
327
|
+
.local_error('429',
|
|
328
|
+
'429',
|
|
329
|
+
TasksSkip429ErrorException))
|
|
330
|
+
.execute
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# This endpoint doesn't consume Apollo credits. Learn more about [API
|
|
334
|
+
# pricing and credits](https://docs.apollo.io/docs/api-pricing).
|
|
335
|
+
# <a
|
|
336
|
+
# href="https://knowledge.apollo.io/hc/en-us/articles/28705458602125-Tasks-O
|
|
337
|
+
# verview" target="_blank">Tasks</a> let you track, prioritize, and help you
|
|
338
|
+
# complete actions required for your outbound sales motion.<br><br>Use the
|
|
339
|
+
# Search for Tasks endpoint to find tasks that your team has created in
|
|
340
|
+
# Apollo.<br><br>To protect Apollo's performance for all users, this
|
|
341
|
+
# endpoint has a display limit of 50,000 records (100 records per page, up
|
|
342
|
+
# to 500 pages). Add more filters to narrow your search results as much as
|
|
343
|
+
# possible.<br><br>This endpoint requires a master API key. If you call the
|
|
344
|
+
# endpoint without a master key, you receive a `403` response. Check out <a
|
|
345
|
+
# href="https://docs.apollo.io/docs/create-api-key">Create an API Key</a> to
|
|
346
|
+
# learn how to create a master key.
|
|
347
|
+
# @param [String] sort_by_field Optional parameter: Sort the tasks by 1 of
|
|
348
|
+
# the following options: <ul> <li> `task_due_at`: The most future-dated
|
|
349
|
+
# first. </li> <li> `task_priority`: The highest priority first. </li>
|
|
350
|
+
# </ul>
|
|
351
|
+
# @param [Array[String]] open_factor_names Optional parameter: Enter
|
|
352
|
+
# `task_types` for this parameter to return a count of tasks by task type.
|
|
353
|
+
# <br><br>When used, the response includes a `"task_types": []` array with a
|
|
354
|
+
# `"count"` value for each task type.
|
|
355
|
+
# @param [Integer] page Optional parameter: The page number of the Apollo
|
|
356
|
+
# data that you want to retrieve. <br><br>Use this parameter in combination
|
|
357
|
+
# with the `per_page` parameter to make search results for navigable and
|
|
358
|
+
# improve the performance of the endpoint. <br><br>Example: `4`
|
|
359
|
+
# @param [Integer] per_page Optional parameter: The number of search results
|
|
360
|
+
# that should be returned for each page. Limiting the number of results per
|
|
361
|
+
# page improves the endpoint's performance. <br><br>Use the `page` parameter
|
|
362
|
+
# to search the different pages of data. <br><br>Example: `10`
|
|
363
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
364
|
+
def search_tasks(sort_by_field: nil,
|
|
365
|
+
open_factor_names: nil,
|
|
366
|
+
page: nil,
|
|
367
|
+
per_page: nil)
|
|
368
|
+
@api_call
|
|
369
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
370
|
+
'/tasks/search',
|
|
371
|
+
Server::DEFAULT)
|
|
372
|
+
.query_param(new_parameter(sort_by_field, key: 'sort_by_field'))
|
|
373
|
+
.query_param(new_parameter(open_factor_names, key: 'open_factor_names[]'))
|
|
374
|
+
.query_param(new_parameter(page, key: 'page'))
|
|
375
|
+
.query_param(new_parameter(per_page, key: 'per_page'))
|
|
376
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
377
|
+
.auth(Or.new('bearerAuth', 'apiKey')))
|
|
378
|
+
.response(new_response_handler
|
|
379
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
380
|
+
.deserialize_into(TasksSearchResponse.method(:from_hash))
|
|
381
|
+
.is_api_response(true)
|
|
382
|
+
.local_error('401',
|
|
383
|
+
'401',
|
|
384
|
+
APIException)
|
|
385
|
+
.local_error('403',
|
|
386
|
+
'403',
|
|
387
|
+
APIException)
|
|
388
|
+
.local_error('422',
|
|
389
|
+
'422',
|
|
390
|
+
APIException)
|
|
391
|
+
.local_error('429',
|
|
392
|
+
'429',
|
|
393
|
+
TasksSearch429ErrorException))
|
|
394
|
+
.execute
|
|
395
|
+
end
|
|
396
|
+
end
|
|
397
|
+
end
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
# apollo_rest_api client class.
|
|
8
|
+
class Client
|
|
9
|
+
include CoreLibrary
|
|
10
|
+
attr_reader :config, :auth_managers
|
|
11
|
+
|
|
12
|
+
def user_agent_detail
|
|
13
|
+
config.user_agent_detail
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Access to enrichment controller.
|
|
17
|
+
# @return [EnrichmentApi] Returns the controller instance.
|
|
18
|
+
def enrichment
|
|
19
|
+
@enrichment ||= EnrichmentApi.new @global_configuration
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Access to search controller.
|
|
23
|
+
# @return [SearchApi] Returns the controller instance.
|
|
24
|
+
def search
|
|
25
|
+
@search ||= SearchApi.new @global_configuration
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Access to accounts controller.
|
|
29
|
+
# @return [AccountsApi] Returns the controller instance.
|
|
30
|
+
def accounts
|
|
31
|
+
@accounts ||= AccountsApi.new @global_configuration
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Access to contacts controller.
|
|
35
|
+
# @return [ContactsApi] Returns the controller instance.
|
|
36
|
+
def contacts
|
|
37
|
+
@contacts ||= ContactsApi.new @global_configuration
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Access to deals controller.
|
|
41
|
+
# @return [DealsApi] Returns the controller instance.
|
|
42
|
+
def deals
|
|
43
|
+
@deals ||= DealsApi.new @global_configuration
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Access to sequences controller.
|
|
47
|
+
# @return [SequencesApi] Returns the controller instance.
|
|
48
|
+
def sequences
|
|
49
|
+
@sequences ||= SequencesApi.new @global_configuration
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Access to tasks controller.
|
|
53
|
+
# @return [TasksApi] Returns the controller instance.
|
|
54
|
+
def tasks
|
|
55
|
+
@tasks ||= TasksApi.new @global_configuration
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Access to calls controller.
|
|
59
|
+
# @return [CallsApi] Returns the controller instance.
|
|
60
|
+
def calls
|
|
61
|
+
@calls ||= CallsApi.new @global_configuration
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Access to conversations controller.
|
|
65
|
+
# @return [ConversationsApi] Returns the controller instance.
|
|
66
|
+
def conversations
|
|
67
|
+
@conversations ||= ConversationsApi.new @global_configuration
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Access to analytics controller.
|
|
71
|
+
# @return [AnalyticsApi] Returns the controller instance.
|
|
72
|
+
def analytics
|
|
73
|
+
@analytics ||= AnalyticsApi.new @global_configuration
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Access to miscellaneous controller.
|
|
77
|
+
# @return [MiscellaneousApi] Returns the controller instance.
|
|
78
|
+
def miscellaneous
|
|
79
|
+
@miscellaneous ||= MiscellaneousApi.new @global_configuration
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Access to emailer_messages controller.
|
|
83
|
+
# @return [EmailerMessagesApi] Returns the controller instance.
|
|
84
|
+
def emailer_messages
|
|
85
|
+
@emailer_messages ||= EmailerMessagesApi.new @global_configuration
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Access to client controller.
|
|
89
|
+
# @return [Api] Returns the controller instance.
|
|
90
|
+
def client
|
|
91
|
+
@client ||= Api.new @global_configuration
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def initialize(
|
|
95
|
+
connection: nil, adapter: :net_http_persistent, timeout: 30,
|
|
96
|
+
max_retries: 0, retry_interval: 1, backoff_factor: 2,
|
|
97
|
+
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
|
|
98
|
+
retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
|
|
99
|
+
logging_configuration: nil, environment: Environment::PRODUCTION,
|
|
100
|
+
api_key_credentials: nil, bearer_auth_credentials: nil, config: nil
|
|
101
|
+
)
|
|
102
|
+
@config = if config.nil?
|
|
103
|
+
Configuration.new(
|
|
104
|
+
connection: connection, adapter: adapter, timeout: timeout,
|
|
105
|
+
max_retries: max_retries, retry_interval: retry_interval,
|
|
106
|
+
backoff_factor: backoff_factor,
|
|
107
|
+
retry_statuses: retry_statuses,
|
|
108
|
+
retry_methods: retry_methods, http_callback: http_callback,
|
|
109
|
+
proxy_settings: proxy_settings,
|
|
110
|
+
logging_configuration: logging_configuration,
|
|
111
|
+
environment: environment,
|
|
112
|
+
api_key_credentials: api_key_credentials,
|
|
113
|
+
bearer_auth_credentials: bearer_auth_credentials
|
|
114
|
+
)
|
|
115
|
+
else
|
|
116
|
+
config
|
|
117
|
+
end
|
|
118
|
+
user_agent_params = BaseApi.user_agent_parameters
|
|
119
|
+
|
|
120
|
+
@global_configuration = GlobalConfiguration.new(client_configuration: @config)
|
|
121
|
+
.base_uri_executor(@config.method(:get_base_uri))
|
|
122
|
+
.global_errors(BaseApi::GLOBAL_ERRORS)
|
|
123
|
+
.user_agent(BaseApi.user_agent,
|
|
124
|
+
agent_parameters: user_agent_params)
|
|
125
|
+
|
|
126
|
+
initialize_auth_managers(@global_configuration)
|
|
127
|
+
@global_configuration = @global_configuration.auth_managers(@auth_managers)
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Initializes the auth managers hash used for authenticating API calls.
|
|
131
|
+
# @param [GlobalConfiguration] global_config The global configuration of the SDK)
|
|
132
|
+
def initialize_auth_managers(global_config)
|
|
133
|
+
@auth_managers = {}
|
|
134
|
+
http_client_config = global_config.client_configuration
|
|
135
|
+
%w[apiKey bearerAuth].each { |auth| @auth_managers[auth] = nil }
|
|
136
|
+
@auth_managers['apiKey'] = ApiKey.new(http_client_config.api_key_credentials)
|
|
137
|
+
@auth_managers['bearerAuth'] = BearerAuth.new(http_client_config.bearer_auth_credentials)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Creates a client directly from environment variables.
|
|
141
|
+
def self.from_env(**overrides)
|
|
142
|
+
default_config = Configuration.build_default_config_from_env
|
|
143
|
+
new_config = default_config.clone_with(**overrides)
|
|
144
|
+
new(config: new_config)
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|