Class: HubSpotSDK::Resources::Marketing::MarketingEvents::Participations
- Inherits:
-
Object
- Object
- HubSpotSDK::Resources::Marketing::MarketingEvents::Participations
- Defined in:
- lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb
Instance Method Summary collapse
-
#get_by_external_account_and_event_id(external_event_id, external_account_id:, request_options: {}) ⇒ HubSpotSDK::Models::Marketing::AttendanceCounters
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationGetByExternalAccountAndEventIDParams for more details.
-
#get_by_id(marketing_event_id, request_options: {}) ⇒ HubSpotSDK::Models::Marketing::AttendanceCounters
Read Marketing event’s participations counters by internal identifier marketingEventId.
-
#initialize(client:) ⇒ Participations
constructor
private
A new instance of Participations.
-
#list_breakdown_by_contact(contact_identifier, after: nil, limit: nil, state: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Marketing::ParticipationBreakdown>
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationListBreakdownByContactParams for more details.
-
#list_breakdown_by_external_account_and_event_id(external_event_id, external_account_id:, after: nil, contact_identifier: nil, limit: nil, state: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Marketing::ParticipationBreakdown>
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationListBreakdownByExternalAccountAndEventIDParams for more details.
-
#list_breakdown_by_id(marketing_event_id, after: nil, contact_identifier: nil, limit: nil, state: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Marketing::ParticipationBreakdown>
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationListBreakdownByIDParams for more details.
Constructor Details
#initialize(client:) ⇒ Participations
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Participations.
197 198 199 |
# File 'lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb', line 197 def initialize(client:) @client = client end |
Instance Method Details
#get_by_external_account_and_event_id(external_event_id, external_account_id:, request_options: {}) ⇒ HubSpotSDK::Models::Marketing::AttendanceCounters
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationGetByExternalAccountAndEventIDParams for more details.
Read Marketing event’s participations counters by externalAccountId and externalEventId pair.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb', line 26 def get_by_external_account_and_event_id(external_event_id, params) parsed, = HubSpotSDK::Marketing::MarketingEvents::ParticipationGetByExternalAccountAndEventIDParams.dump_request( params ) external_account_id = parsed.delete(:external_account_id) do raise ArgumentError.new("missing required path argument #{_1}") end @client.request( method: :get, path: [ "marketing/marketing-events/2026-03/participations/%1$s/%2$s", external_account_id, external_event_id ], model: HubSpotSDK::Marketing::AttendanceCounters, options: ) end |
#get_by_id(marketing_event_id, request_options: {}) ⇒ HubSpotSDK::Models::Marketing::AttendanceCounters
Read Marketing event’s participations counters by internal identifier marketingEventId.
59 60 61 62 63 64 65 66 |
# File 'lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb', line 59 def get_by_id(marketing_event_id, params = {}) @client.request( method: :get, path: ["marketing/marketing-events/2026-03/participations/%1$s", marketing_event_id], model: HubSpotSDK::Marketing::AttendanceCounters, options: params[:request_options] ) end |
#list_breakdown_by_contact(contact_identifier, after: nil, limit: nil, state: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Marketing::ParticipationBreakdown>
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationListBreakdownByContactParams for more details.
Read Contact’s participations by identifier - email or internal id.
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb', line 89 def list_breakdown_by_contact(contact_identifier, params = {}) parsed, = HubSpotSDK::Marketing::MarketingEvents::ParticipationListBreakdownByContactParams.dump_request(params) query = HubSpotSDK::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: [ "marketing/marketing-events/2026-03/participations/contacts/%1$s/breakdown", contact_identifier ], query: query, page: HubSpotSDK::Internal::Page, model: HubSpotSDK::Marketing::ParticipationBreakdown, options: ) end |
#list_breakdown_by_external_account_and_event_id(external_event_id, external_account_id:, after: nil, contact_identifier: nil, limit: nil, state: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Marketing::ParticipationBreakdown>
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationListBreakdownByExternalAccountAndEventIDParams for more details.
Read Marketing event’s participations breakdown with optional filters by externalAccountId and externalEventId pair.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb', line 132 def list_breakdown_by_external_account_and_event_id(external_event_id, params) parsed, = HubSpotSDK::Marketing::MarketingEvents::ParticipationListBreakdownByExternalAccountAndEventIDParams.dump_request( params ) query = HubSpotSDK::Internal::Util.encode_query_params(parsed) external_account_id = parsed.delete(:external_account_id) do raise ArgumentError.new("missing required path argument #{_1}") end @client.request( method: :get, path: [ "marketing/marketing-events/2026-03/participations/%1$s/%2$s/breakdown", external_account_id, external_event_id ], query: query.transform_keys(contact_identifier: "contactIdentifier"), page: HubSpotSDK::Internal::Page, model: HubSpotSDK::Marketing::ParticipationBreakdown, options: ) end |
#list_breakdown_by_id(marketing_event_id, after: nil, contact_identifier: nil, limit: nil, state: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Marketing::ParticipationBreakdown>
Some parameter documentations has been truncated, see Models::Marketing::MarketingEvents::ParticipationListBreakdownByIDParams for more details.
Read Marketing event’s participations breakdown with optional filters by internal identifier marketingEventId.
180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/hubspot_sdk/resources/marketing/marketing_events/participations.rb', line 180 def list_breakdown_by_id(marketing_event_id, params = {}) parsed, = HubSpotSDK::Marketing::MarketingEvents::ParticipationListBreakdownByIDParams.dump_request(params) query = HubSpotSDK::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: ["marketing/marketing-events/2026-03/participations/%1$s/breakdown", marketing_event_id], query: query.transform_keys(contact_identifier: "contactIdentifier"), page: HubSpotSDK::Internal::Page, model: HubSpotSDK::Marketing::ParticipationBreakdown, options: ) end |