hubspot-api-client 16.2.0 → 16.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +1 -1
- data/lib/hubspot/codegen/automation/actions/models/action_function.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/action_function_identifier.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/action_labels.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/action_revision.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/callback_completion_batch_request.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/callback_completion_request.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_input.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/extension_action_definition_patch_input_field_dependencies_inner.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/field_type_definition.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/input_field_definition.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/object_request_options.rb +1 -0
- data/lib/hubspot/codegen/automation/actions/models/option.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/attach_to_lang_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_blog_author.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_json_node.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_input_string.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/batch_response_blog_author_with_errors.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/blog_author_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/collection_response_with_total_blog_author_forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/detach_from_lang_group_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/next_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/set_new_language_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/standard_error.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/authors/models/update_languages_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/attach_to_lang_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_json_node.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_input_string.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/batch_response_blog_post_with_errors.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/blog_post_language_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_blog_post_forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/collection_response_with_total_version_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/content_schedule_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/detach_from_lang_group_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/next_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/previous_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/rgba_color.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/set_new_language_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/standard_error.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/update_languages_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_blog_post.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/blog-posts/models/version_user.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/attach_to_lang_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_json_node.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_string.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_input_tag.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/batch_response_tag_with_errors.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/collection_response_with_total_tag_forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/detach_from_lang_group_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/forward_paging.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/next_page.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/set_new_language_primary_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/standard_error.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/tag.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/tag_clone_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/cms/blogs/tags/models/update_languages_request_v_next.rb +1 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_generation_request.rb +1 -0
- data/lib/hubspot/codegen/conversations/visitor-identification/models/identification_token_response.rb +1 -0
- data/lib/hubspot/codegen/crm/associations/api/batch_api.rb +30 -18
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +3 -3
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association.rb +29 -38
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi.rb +29 -38
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_multi_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/associations/models/batch_response_public_association_with_errors.rb +346 -0
- data/lib/hubspot/codegen/crm/associations/models/collection_response_public_association_definition_no_paging.rb +230 -0
- data/lib/hubspot/codegen/crm/associations/models/error_category.rb +20 -20
- data/lib/hubspot/codegen/crm/associations/models/paging.rb +13 -4
- data/lib/hubspot/codegen/crm/associations/models/previous_page.rb +237 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_definition.rb +242 -0
- data/lib/hubspot/codegen/crm/associations/models/public_association_multi.rb +13 -4
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_customer.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_invoice.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/customer_search_response_external.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/exchange_rate_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_pdf_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/result_id_accounting_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_product.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_actions.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_create_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_body.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_display_property.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_fetch_body_patch.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_list_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_patch_request.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/card_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/display_option.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_card_payload_response.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/cards/models/integrator_object_result_actions_inner.rb +1 -0
- data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/file_update_input.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/folder_input.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/folder_update_input.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/hubspot_file.rb +1 -0
- data/lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb +1 -0
- data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +0 -60
- data/lib/hubspot/codegen/marketing/events/api/search_api.rb +90 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_email_subscriber.rb +1 -0
- data/lib/hubspot/codegen/marketing/events/models/batch_input_marketing_event_subscriber.rb +1 -0
- data/lib/hubspot/codegen/marketing/events/models/property_value.rb +13 -4
- data/lib/hubspot/codegen/marketing/forms/models/collection_response_form_definition_base_forward_paging_results_inner.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/datepicker_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field_dependent_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dependent_field_filter.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/dropdown_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/email_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/email_field_validation.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/field_group.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/file_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_definition_base.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_definition_create_request_base.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_display_options.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_post_submit_action.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/form_style.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/hub_spot_form_definition_patch_request_legal_consent_options.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/mobile_phone_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/multi_line_text_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/multiple_checkboxes_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/number_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/number_field_validation.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/phone_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/phone_field_validation.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/radio_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/single_checkbox_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/forms/models/single_line_text_field.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -0
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_permission_set.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_team.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_user.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/public_user_update.rb +1 -0
- data/lib/hubspot/codegen/settings/users/models/user_provision_request.rb +1 -0
- data/lib/hubspot/discovery/marketing/events/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/events/client.rb +1 -0
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/marketing/events/marketing_events_external_api_spec.rb +0 -1
- data/spec/discovery/marketing/events/search_api_spec.rb +7 -0
- metadata +12 -3
@@ -17,6 +17,7 @@ module Hubspot
|
|
17
17
|
module Crm
|
18
18
|
module Extensions
|
19
19
|
module Cards
|
20
|
+
# The card details payload, sent to HubSpot by an app in response to a data fetch request when a user visits a CRM record page.
|
20
21
|
class IntegratorCardPayloadResponse
|
21
22
|
# The total number of card properties that will be sent in this response.
|
22
23
|
attr_accessor :total_count
|
@@ -17,6 +17,7 @@ module Hubspot
|
|
17
17
|
module Crm
|
18
18
|
module Extensions
|
19
19
|
module Videoconferencing
|
20
|
+
# The URLs of the various actions provided by the video conferencing application. All URLs must use the `https` protocol.
|
20
21
|
class ExternalSettings
|
21
22
|
# The URL that HubSpot will send requests to create a new video conference.
|
22
23
|
attr_accessor :create_meeting_url
|
@@ -441,66 +441,6 @@ module Hubspot
|
|
441
441
|
return data, status_code, headers
|
442
442
|
end
|
443
443
|
|
444
|
-
# @param q [String]
|
445
|
-
# @param [Hash] opts the optional parameters
|
446
|
-
# @return [CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging]
|
447
|
-
def do_search(q, opts = {})
|
448
|
-
data, _status_code, _headers = do_search_with_http_info(q, opts)
|
449
|
-
data
|
450
|
-
end
|
451
|
-
|
452
|
-
# @param q [String]
|
453
|
-
# @param [Hash] opts the optional parameters
|
454
|
-
# @return [Array<(CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging, Integer, Hash)>] CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging data, response status code and response headers
|
455
|
-
def do_search_with_http_info(q, opts = {})
|
456
|
-
if @api_client.config.debugging
|
457
|
-
@api_client.config.logger.debug 'Calling API: MarketingEventsExternalApi.do_search ...'
|
458
|
-
end
|
459
|
-
# verify the required parameter 'q' is set
|
460
|
-
if @api_client.config.client_side_validation && q.nil?
|
461
|
-
fail ArgumentError, "Missing the required parameter 'q' when calling MarketingEventsExternalApi.do_search"
|
462
|
-
end
|
463
|
-
# resource path
|
464
|
-
local_var_path = '/marketing/v3/marketing-events/events/search'
|
465
|
-
|
466
|
-
# query parameters
|
467
|
-
query_params = opts[:query_params] || {}
|
468
|
-
query_params[:'q'] = q
|
469
|
-
|
470
|
-
# header parameters
|
471
|
-
header_params = opts[:header_params] || {}
|
472
|
-
# HTTP header 'Accept' (if needed)
|
473
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
474
|
-
|
475
|
-
# form parameters
|
476
|
-
form_params = opts[:form_params] || {}
|
477
|
-
|
478
|
-
# http body (model)
|
479
|
-
post_body = opts[:debug_body]
|
480
|
-
|
481
|
-
# return_type
|
482
|
-
return_type = opts[:debug_return_type] || 'CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging'
|
483
|
-
|
484
|
-
# auth_names
|
485
|
-
auth_names = opts[:debug_auth_names] || ['oauth2']
|
486
|
-
|
487
|
-
new_options = opts.merge(
|
488
|
-
:operation => :"MarketingEventsExternalApi.do_search",
|
489
|
-
:header_params => header_params,
|
490
|
-
:query_params => query_params,
|
491
|
-
:form_params => form_params,
|
492
|
-
:body => post_body,
|
493
|
-
:auth_names => auth_names,
|
494
|
-
:return_type => return_type
|
495
|
-
)
|
496
|
-
|
497
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
498
|
-
if @api_client.config.debugging
|
499
|
-
@api_client.config.logger.debug "API called: MarketingEventsExternalApi#do_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
500
|
-
end
|
501
|
-
return data, status_code, headers
|
502
|
-
end
|
503
|
-
|
504
444
|
# @param batch_input_marketing_event_create_request_params [BatchInputMarketingEventCreateRequestParams]
|
505
445
|
# @param [Hash] opts the optional parameters
|
506
446
|
# @return [BatchResponseMarketingEventPublicDefaultResponse]
|
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#Marketing Events Extension
|
3
|
+
|
4
|
+
#These APIs allow you to interact with HubSpot's Marketing Events Extension. It allows you to: * Create, Read or update Marketing Event information in HubSpot * Specify whether a HubSpot contact has registered, attended or cancelled a registration to a Marketing Event. * Specify a URL that can be called to get the details of a Marketing Event.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Marketing
|
17
|
+
module Events
|
18
|
+
class SearchApi
|
19
|
+
attr_accessor :api_client
|
20
|
+
|
21
|
+
def initialize(api_client = ApiClient.default)
|
22
|
+
@api_client = api_client
|
23
|
+
end
|
24
|
+
# Search for marketing events
|
25
|
+
# Search for marketing events that have an event id that starts with the query string
|
26
|
+
# @param q [String] The id of the marketing event in the external event application
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @return [CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging]
|
29
|
+
def do_search(q, opts = {})
|
30
|
+
data, _status_code, _headers = do_search_with_http_info(q, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Search for marketing events
|
35
|
+
# Search for marketing events that have an event id that starts with the query string
|
36
|
+
# @param q [String] The id of the marketing event in the external event application
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging, Integer, Hash)>] CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging data, response status code and response headers
|
39
|
+
def do_search_with_http_info(q, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: SearchApi.do_search ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'q' is set
|
44
|
+
if @api_client.config.client_side_validation && q.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'q' when calling SearchApi.do_search"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/marketing/v3/marketing-events/events/search'
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'q'] = q
|
53
|
+
|
54
|
+
# header parameters
|
55
|
+
header_params = opts[:header_params] || {}
|
56
|
+
# HTTP header 'Accept' (if needed)
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = opts[:form_params] || {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = opts[:debug_body]
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseMarketingEventExternalUniqueIdentifierNoPaging'
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:operation => :"SearchApi.do_search",
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: SearchApi#do_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -16,6 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Marketing
|
18
18
|
module Events
|
19
|
+
# List of HubSpot contacts to subscribe to the marketing event
|
19
20
|
class BatchInputMarketingEventSubscriber
|
20
21
|
# List of HubSpot contacts to subscribe to the marketing event
|
21
22
|
attr_accessor :inputs
|
@@ -44,6 +44,8 @@ module Hubspot
|
|
44
44
|
|
45
45
|
attr_accessor :persistence_timestamp
|
46
46
|
|
47
|
+
attr_accessor :use_timestamp_as_persistence_timestamp
|
48
|
+
|
47
49
|
class EnumAttributeValidator
|
48
50
|
attr_reader :datatype
|
49
51
|
attr_reader :allowable_values
|
@@ -81,7 +83,8 @@ module Hubspot
|
|
81
83
|
:'source_metadata' => :'sourceMetadata',
|
82
84
|
:'request_id' => :'requestId',
|
83
85
|
:'updated_by_user_id' => :'updatedByUserId',
|
84
|
-
:'persistence_timestamp' => :'persistenceTimestamp'
|
86
|
+
:'persistence_timestamp' => :'persistenceTimestamp',
|
87
|
+
:'use_timestamp_as_persistence_timestamp' => :'useTimestampAsPersistenceTimestamp'
|
85
88
|
}
|
86
89
|
end
|
87
90
|
|
@@ -105,7 +108,8 @@ module Hubspot
|
|
105
108
|
:'source_metadata' => :'String',
|
106
109
|
:'request_id' => :'String',
|
107
110
|
:'updated_by_user_id' => :'Integer',
|
108
|
-
:'persistence_timestamp' => :'Integer'
|
111
|
+
:'persistence_timestamp' => :'Integer',
|
112
|
+
:'use_timestamp_as_persistence_timestamp' => :'Boolean'
|
109
113
|
}
|
110
114
|
end
|
111
115
|
|
@@ -183,6 +187,10 @@ module Hubspot
|
|
183
187
|
if attributes.key?(:'persistence_timestamp')
|
184
188
|
self.persistence_timestamp = attributes[:'persistence_timestamp']
|
185
189
|
end
|
190
|
+
|
191
|
+
if attributes.key?(:'use_timestamp_as_persistence_timestamp')
|
192
|
+
self.use_timestamp_as_persistence_timestamp = attributes[:'use_timestamp_as_persistence_timestamp']
|
193
|
+
end
|
186
194
|
end
|
187
195
|
|
188
196
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -282,7 +290,8 @@ module Hubspot
|
|
282
290
|
source_metadata == o.source_metadata &&
|
283
291
|
request_id == o.request_id &&
|
284
292
|
updated_by_user_id == o.updated_by_user_id &&
|
285
|
-
persistence_timestamp == o.persistence_timestamp
|
293
|
+
persistence_timestamp == o.persistence_timestamp &&
|
294
|
+
use_timestamp_as_persistence_timestamp == o.use_timestamp_as_persistence_timestamp
|
286
295
|
end
|
287
296
|
|
288
297
|
# @see the `==` method
|
@@ -294,7 +303,7 @@ module Hubspot
|
|
294
303
|
# Calculates hash code according to all attributes.
|
295
304
|
# @return [Integer] Hash code
|
296
305
|
def hash
|
297
|
-
[name, value, timestamp, source_id, source_label, source, selected_by_user, selected_by_user_timestamp, source_vid, source_metadata, request_id, updated_by_user_id, persistence_timestamp].hash
|
306
|
+
[name, value, timestamp, source_id, source_label, source, selected_by_user, selected_by_user_timestamp, source_vid, source_metadata, request_id, updated_by_user_id, persistence_timestamp, use_timestamp_as_persistence_timestamp].hash
|
298
307
|
end
|
299
308
|
|
300
309
|
# Builds the object from hash
|
@@ -16,6 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Marketing
|
18
18
|
module Forms
|
19
|
+
# What should happen after the customer submits the form.
|
19
20
|
class FormPostSubmitAction
|
20
21
|
# The action to take after submit. The default action is displaying a thank you message.
|
21
22
|
attr_accessor :type
|
@@ -16,6 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Marketing
|
18
18
|
module Forms
|
19
|
+
# A form field consisting of a set of checkboxes allowing multiple choices to be selected at one time.
|
19
20
|
class MultipleCheckboxesField
|
20
21
|
# Determines how the field will be displayed and validated.
|
21
22
|
attr_accessor :field_type
|
@@ -16,6 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Marketing
|
18
18
|
module Forms
|
19
|
+
# A form field consisting of a set of radio options, out of which one can be selected at a time.
|
19
20
|
class RadioField
|
20
21
|
# Determines how the field will be displayed and validated.
|
21
22
|
attr_accessor :field_type
|
@@ -16,6 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Marketing
|
18
18
|
module Transactional
|
19
|
+
# A request to send a single transactional email asynchronously.
|
19
20
|
class PublicSingleSendRequestEgg
|
20
21
|
# The content ID for the transactional email, which can be found in email tool UI.
|
21
22
|
attr_accessor :email_id
|
@@ -16,6 +16,7 @@ require 'time'
|
|
16
16
|
module Hubspot
|
17
17
|
module Marketing
|
18
18
|
module Transactional
|
19
|
+
# A request object to create a SMTP API token
|
19
20
|
class SmtpApiTokenRequestEgg
|
20
21
|
# Indicates whether a contact should be created for email recipients.
|
21
22
|
attr_accessor :create_contact
|