klaviyo-api-sdk 1.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +654 -238
- data/klaviyo-api-sdk.gemspec +2 -2
- data/lib/klaviyo-api-sdk/api/accounts_api.rb +160 -0
- data/lib/klaviyo-api-sdk/api/campaigns_api.rb +101 -107
- data/lib/klaviyo-api-sdk/api/catalogs_api.rb +461 -549
- data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +4 -4
- data/lib/klaviyo-api-sdk/api/events_api.rb +132 -71
- data/lib/klaviyo-api-sdk/api/flows_api.rb +368 -206
- data/lib/klaviyo-api-sdk/api/lists_api.rb +172 -122
- data/lib/klaviyo-api-sdk/api/metrics_api.rb +18 -18
- data/lib/klaviyo-api-sdk/api/profiles_api.rb +173 -94
- data/lib/klaviyo-api-sdk/api/segments_api.rb +148 -76
- data/lib/klaviyo-api-sdk/api/tags_api.rb +932 -260
- data/lib/klaviyo-api-sdk/api/templates_api.rb +32 -32
- data/lib/klaviyo-api-sdk/api_client.rb +2 -2
- data/lib/klaviyo-api-sdk/api_error.rb +1 -1
- data/lib/klaviyo-api-sdk/configuration.rb +1 -1
- data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_clone_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{campaign_clone_query_as_sub_resource_attributes.rb → campaign_clone_query_resource_object_attributes.rb} +18 -18
- data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{campaign_create_query_as_sub_resource_attributes.rb → campaign_create_query_resource_object_attributes.rb} +38 -38
- data/lib/klaviyo-api-sdk/models/campaign_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{campaign_message_assign_template_query_as_sub_resource_attributes.rb → campaign_message_assign_template_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/campaign_message_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{campaign_message_partial_update_query_as_sub_resource_attributes.rb → campaign_message_partial_update_query_resource_object_attributes.rb} +17 -17
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{campaign_partial_update_query_as_sub_resource_attributes.rb → campaign_partial_update_query_resource_object_attributes.rb} +30 -30
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{campaign_recipient_estimation_job_create_query_as_sub_resource_attributes.rb → campaign_recipient_estimation_job_create_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner_source.rb → campaign_send_job_create_query_resource_object.rb} +27 -17
- data/lib/klaviyo-api-sdk/models/{campaign_send_job_create_query_as_sub_resource_attributes.rb → campaign_send_job_create_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{campaign_send_job_partial_update_query_as_sub_resource_attributes.rb → campaign_send_job_partial_update_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_category_create_job_create_query_as_sub_resource_attributes.rb → catalog_category_create_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{list_create_query_as_sub_resource.rb → catalog_category_create_query_resource_object.rb} +27 -52
- data/lib/klaviyo-api-sdk/models/{catalog_category_create_query_as_sub_resource_attributes.rb → catalog_category_create_query_resource_object_attributes.rb} +20 -20
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_category_delete_job_create_query_as_sub_resource_attributes.rb → catalog_category_delete_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb +239 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_category_update_job_create_query_as_sub_resource_attributes.rb → catalog_category_update_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{tag_create_query_as_sub_resource.rb → catalog_category_update_query_resource_object.rb} +37 -47
- data/lib/klaviyo-api-sdk/models/{catalog_category_update_query_as_sub_resource_attributes.rb → catalog_category_update_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships.rb → catalog_category_update_query_resource_object_relationships.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships_categories.rb → catalog_category_update_query_resource_object_relationships_items.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships_categories_data_inner.rb → catalog_category_update_query_resource_object_relationships_items_data_inner.rb} +6 -6
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships_items_data_inner.rb → catalog_item_category_op_data_inner.rb} +6 -6
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_item_create_job_create_query_as_sub_resource_attributes.rb → catalog_item_create_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb +247 -0
- data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_attributes.rb → catalog_item_create_query_resource_object_attributes.rb} +74 -74
- data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships.rb → catalog_item_create_query_resource_object_relationships.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships_items.rb → catalog_item_create_query_resource_object_relationships_categories.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_item_delete_job_create_query_as_sub_resource_attributes.rb → catalog_item_delete_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb +239 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_item_update_job_create_query_as_sub_resource_attributes.rb → catalog_item_update_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb +262 -0
- data/lib/klaviyo-api-sdk/models/{catalog_item_update_query_as_sub_resource_attributes.rb → catalog_item_update_query_resource_object_attributes.rb} +46 -46
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_variant_create_job_create_query_as_sub_resource_attributes.rb → catalog_variant_create_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{event_create_query_as_sub_resource.rb → catalog_variant_create_query_resource_object.rb} +27 -52
- data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_attributes.rb → catalog_variant_create_query_resource_object_attributes.rb} +117 -117
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_variant_delete_job_create_query_as_sub_resource_attributes.rb → catalog_variant_delete_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb +239 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{catalog_variant_update_job_create_query_as_sub_resource_attributes.rb → catalog_variant_update_job_create_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{campaign_send_job_create_query_as_sub_resource.rb → catalog_variant_update_query_resource_object.rb} +29 -48
- data/lib/klaviyo-api-sdk/models/{catalog_variant_update_query_as_sub_resource_attributes.rb → catalog_variant_update_query_resource_object_attributes.rb} +63 -53
- data/lib/klaviyo-api-sdk/models/content_sub_object.rb +30 -30
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{data_privacy_create_deletion_job_query_as_sub_resource_attributes.rb → data_privacy_create_deletion_job_query_resource_object_attributes.rb} +18 -18
- data/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/event_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/event_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{event_create_query_as_sub_resource_attributes.rb → event_create_query_resource_object_attributes.rb} +19 -19
- data/lib/klaviyo-api-sdk/models/event_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/flow_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/flow_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{flow_update_query_as_sub_resource_attributes.rb → flow_update_query_resource_object_attributes.rb} +5 -4
- data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response.rb → get_create_variants_jobs5_xx_response.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner.rb → get_create_variants_jobs5_xx_response_errors_inner.rb} +40 -40
- data/lib/klaviyo-api-sdk/models/{get_catalog_items4_xx_response_errors_inner_source.rb → get_create_variants_jobs5_xx_response_errors_inner_source.rb} +17 -17
- data/lib/klaviyo-api-sdk/models/list_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{sms_message_content.rb → list_create_query_resource_object.rb} +23 -23
- data/lib/klaviyo-api-sdk/models/{segment_partial_update_query_as_sub_resource_attributes.rb → list_create_query_resource_object_attributes.rb} +5 -4
- data/lib/klaviyo-api-sdk/models/list_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{v2_template_render_query_as_sub_resource.rb → metric_aggregate_query_resource_object.rb} +30 -13
- data/lib/klaviyo-api-sdk/models/{metric_aggregate_query_as_sub_resource_attributes.rb → metric_aggregate_query_resource_object_attributes.rb} +70 -70
- data/lib/klaviyo-api-sdk/models/metric_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{included_profiles_attributes.rb → profile_create_query_resource_object_attributes.rb} +36 -75
- data/lib/klaviyo-api-sdk/models/profile_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_location.rb +38 -38
- data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{profile_create_query_as_sub_resource_attributes.rb → profile_partial_update_query_resource_object_attributes.rb} +48 -48
- data/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_unsubscription_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/profile_unsuppression_bulk_create_job_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/segment_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb +252 -0
- data/lib/klaviyo-api-sdk/models/{tag_update_query_as_sub_resource_attributes.rb → segment_partial_update_query_resource_object_attributes.rb} +4 -5
- data/lib/klaviyo-api-sdk/models/send_options_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +17 -17
- data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +15 -15
- data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/subscription.rb +15 -15
- data/lib/klaviyo-api-sdk/models/subscription_channels.rb +17 -17
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{subscription_create_job_create_query_as_sub_resource_attributes.rb → subscription_create_job_create_query_resource_object_attributes.rb} +26 -26
- data/lib/klaviyo-api-sdk/models/suppression.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{suppression_create_job_create_query_as_sub_resource_attributes.rb → suppression_create_job_create_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/{campaign_tag_op.rb → tag_campaign_op.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{campaign_tag_op_data_inner.rb → tag_campaign_op_data_inner.rb} +6 -6
- data/lib/klaviyo-api-sdk/models/tag_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/{utm_param_info.rb → tag_create_query_resource_object.rb} +23 -23
- data/lib/klaviyo-api-sdk/models/{tag_create_query_as_sub_resource_attributes.rb → tag_create_query_resource_object_attributes.rb} +18 -18
- data/lib/klaviyo-api-sdk/models/tag_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/{onsite_profile_create_query.rb → tag_flow_op.rb} +8 -6
- data/lib/klaviyo-api-sdk/models/{catalog_item_delete_query_as_sub_resource.rb → tag_flow_op_data_inner.rb} +6 -7
- data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{tag_group_create_query_as_sub_resource_attributes.rb → tag_group_create_query_resource_object_attributes.rb} +17 -17
- data/lib/klaviyo-api-sdk/models/tag_group_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{tag_group_update_query_as_sub_resource_attributes.rb → tag_group_update_query_resource_object_attributes.rb} +17 -17
- data/lib/klaviyo-api-sdk/models/{onsite_subscription_create_query.rb → tag_list_op.rb} +8 -6
- data/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb +272 -0
- data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{list_create_query_as_sub_resource_attributes.rb → tag_update_query_resource_object_attributes.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/template_clone_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{template_clone_query_as_sub_resource_attributes.rb → template_clone_query_resource_object_attributes.rb} +20 -20
- data/lib/klaviyo-api-sdk/models/template_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{template_create_query_as_sub_resource_attributes.rb → template_create_query_resource_object_attributes.rb} +35 -35
- data/lib/klaviyo-api-sdk/models/template_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/template_render_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{template_render_query_as_sub_resource_attributes.rb → template_render_query_resource_object_attributes.rb} +20 -20
- data/lib/klaviyo-api-sdk/models/template_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb +253 -0
- data/lib/klaviyo-api-sdk/models/{template_update_query_as_sub_resource_attributes.rb → template_update_query_resource_object_attributes.rb} +19 -19
- data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +20 -20
- data/lib/klaviyo-api-sdk/models/tracking_options_sub_object.rb +15 -15
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{unsubscription_create_job_create_query_as_sub_resource_attributes.rb → unsubscription_create_job_create_query_resource_object_attributes.rb} +21 -21
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{unsuppression_create_job_create_query_as_sub_resource_attributes.rb → unsuppression_create_job_create_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/version.rb +1 -1
- data/lib/klaviyo-api-sdk.rb +137 -143
- metadata +139 -609
- data/Gemfile +0 -9
- data/Rakefile +0 -10
- data/docs/AudiencesSubObject.md +0 -20
- data/docs/CampaignCloneQuery.md +0 -18
- data/docs/CampaignCloneQueryAsSubResource.md +0 -20
- data/docs/CampaignCloneQueryAsSubResourceAttributes.md +0 -20
- data/docs/CampaignCreateQuery.md +0 -18
- data/docs/CampaignCreateQueryAsSubResource.md +0 -20
- data/docs/CampaignCreateQueryAsSubResourceAttributes.md +0 -28
- data/docs/CampaignMessageAssignTemplateQuery.md +0 -18
- data/docs/CampaignMessageAssignTemplateQueryAsSubResource.md +0 -20
- data/docs/CampaignMessageAssignTemplateQueryAsSubResourceAttributes.md +0 -20
- data/docs/CampaignMessagePartialUpdateQuery.md +0 -18
- data/docs/CampaignMessagePartialUpdateQueryAsSubResource.md +0 -22
- data/docs/CampaignMessagePartialUpdateQueryAsSubResourceAttributes.md +0 -20
- data/docs/CampaignPartialUpdateQuery.md +0 -18
- data/docs/CampaignPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/CampaignPartialUpdateQueryAsSubResourceAttributes.md +0 -26
- data/docs/CampaignRecipientEstimationJobCreateQuery.md +0 -18
- data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResource.md +0 -20
- data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CampaignSendJobCreateQuery.md +0 -18
- data/docs/CampaignSendJobCreateQueryAsSubResource.md +0 -20
- data/docs/CampaignSendJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CampaignSendJobPartialUpdateQuery.md +0 -18
- data/docs/CampaignSendJobPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/CampaignSendJobPartialUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CampaignTagOp.md +0 -18
- data/docs/CampaignTagOpDataInner.md +0 -20
- data/docs/CampaignsApi.md +0 -1277
- data/docs/CatalogCategoryCreateJobCreateQuery.md +0 -18
- data/docs/CatalogCategoryCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogCategoryCreateQuery.md +0 -18
- data/docs/CatalogCategoryCreateQueryAsSubResource.md +0 -22
- data/docs/CatalogCategoryCreateQueryAsSubResourceAttributes.md +0 -24
- data/docs/CatalogCategoryDeleteJobCreateQuery.md +0 -18
- data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogCategoryDeleteQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryItemOp.md +0 -18
- data/docs/CatalogCategoryUpdateJobCreateQuery.md +0 -18
- data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogCategoryUpdateQuery.md +0 -18
- data/docs/CatalogCategoryUpdateQueryAsSubResource.md +0 -24
- data/docs/CatalogCategoryUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemCategoryOp.md +0 -18
- data/docs/CatalogItemCreateJobCreateQuery.md +0 -18
- data/docs/CatalogItemCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogItemCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemCreateQuery.md +0 -18
- data/docs/CatalogItemCreateQueryAsSubResource.md +0 -22
- data/docs/CatalogItemCreateQueryAsSubResourceAttributes.md +0 -40
- data/docs/CatalogItemCreateQueryAsSubResourceRelationships.md +0 -18
- data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategories.md +0 -18
- data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategoriesDataInner.md +0 -20
- data/docs/CatalogItemDeleteJobCreateQuery.md +0 -18
- data/docs/CatalogItemDeleteJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogItemDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemDeleteQueryAsSubResource.md +0 -20
- data/docs/CatalogItemUpdateJobCreateQuery.md +0 -18
- data/docs/CatalogItemUpdateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogItemUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogItemUpdateQuery.md +0 -18
- data/docs/CatalogItemUpdateQueryAsSubResource.md +0 -24
- data/docs/CatalogItemUpdateQueryAsSubResourceAttributes.md +0 -34
- data/docs/CatalogJobErrorPayload.md +0 -26
- data/docs/CatalogVariantCreateJobCreateQuery.md +0 -18
- data/docs/CatalogVariantCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogVariantCreateQuery.md +0 -18
- data/docs/CatalogVariantCreateQueryAsSubResource.md +0 -22
- data/docs/CatalogVariantCreateQueryAsSubResourceAttributes.md +0 -46
- data/docs/CatalogVariantCreateQueryAsSubResourceRelationships.md +0 -18
- data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItems.md +0 -18
- data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItemsDataInner.md +0 -20
- data/docs/CatalogVariantDeleteJobCreateQuery.md +0 -18
- data/docs/CatalogVariantDeleteJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogVariantDeleteQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantUpdateJobCreateQuery.md +0 -18
- data/docs/CatalogVariantUpdateJobCreateQueryAsSubResource.md +0 -20
- data/docs/CatalogVariantUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/CatalogVariantUpdateQuery.md +0 -18
- data/docs/CatalogVariantUpdateQueryAsSubResource.md +0 -22
- data/docs/CatalogVariantUpdateQueryAsSubResourceAttributes.md +0 -38
- data/docs/CatalogsApi.md +0 -4048
- data/docs/ClientApi.md +0 -205
- data/docs/ContentSubObject.md +0 -28
- data/docs/DataPrivacyApi.md +0 -78
- data/docs/DataPrivacyCreateDeletionJobQuery.md +0 -18
- data/docs/DataPrivacyCreateDeletionJobQueryAsSubResource.md +0 -20
- data/docs/DataPrivacyCreateDeletionJobQueryAsSubResourceAttributes.md +0 -22
- data/docs/EmailMessageContent.md +0 -24
- data/docs/EmailTrackingOptions.md +0 -24
- data/docs/ErrorSource.md +0 -18
- data/docs/EventCreateQuery.md +0 -18
- data/docs/EventCreateQueryAsSubResource.md +0 -20
- data/docs/EventCreateQueryAsSubResourceAttributes.md +0 -28
- data/docs/EventsApi.md +0 -472
- data/docs/FlowUpdateQuery.md +0 -18
- data/docs/FlowUpdateQueryAsSubResource.md +0 -22
- data/docs/FlowUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/FlowsApi.md +0 -1029
- data/docs/GetCampaigns4XXResponse.md +0 -18
- data/docs/GetCampaigns4XXResponseErrorsInner.md +0 -26
- data/docs/GetCampaigns4XXResponseErrorsInnerSource.md +0 -20
- data/docs/GetCatalogItems4XXResponse.md +0 -18
- data/docs/GetCatalogItems4XXResponseErrorsInner.md +0 -26
- data/docs/GetCatalogItems4XXResponseErrorsInnerSource.md +0 -20
- data/docs/IncludedCategories.md +0 -24
- data/docs/IncludedCategoriesAttributes.md +0 -22
- data/docs/IncludedFlowAction.md +0 -24
- data/docs/IncludedFlowActions.md +0 -24
- data/docs/IncludedFlowActionsAttributes.md +0 -32
- data/docs/IncludedFlowActionsAttributesTrackingOptions.md +0 -49
- data/docs/IncludedFlowMessages.md +0 -24
- data/docs/IncludedFlowMessagesAttributes.md +0 -26
- data/docs/IncludedFlowMessagesAttributesContent.md +0 -49
- data/docs/IncludedFlows.md +0 -24
- data/docs/IncludedFlowsAttributes.md +0 -28
- data/docs/IncludedItems.md +0 -24
- data/docs/IncludedItemsAttributes.md +0 -40
- data/docs/IncludedLists.md +0 -24
- data/docs/IncludedListsAttributes.md +0 -22
- data/docs/IncludedMetrics.md +0 -24
- data/docs/IncludedMetricsAttributes.md +0 -24
- data/docs/IncludedProfiles.md +0 -24
- data/docs/IncludedProfilesAttributes.md +0 -44
- data/docs/IncludedSegments.md +0 -24
- data/docs/IncludedSegmentsAttributes.md +0 -22
- data/docs/IncludedTags.md +0 -24
- data/docs/IncludedVariants.md +0 -24
- data/docs/IncludedVariantsAttributes.md +0 -46
- data/docs/IncludedVariantsLinks.md +0 -18
- data/docs/ListCreateQuery.md +0 -18
- data/docs/ListCreateQueryAsSubResource.md +0 -20
- data/docs/ListCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/ListMembersAddQuery.md +0 -18
- data/docs/ListMembersAddQueryDataInner.md +0 -20
- data/docs/ListMembersDeleteQuery.md +0 -18
- data/docs/ListPartialUpdateQuery.md +0 -18
- data/docs/ListPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/ListsApi.md +0 -762
- data/docs/MetricAggregateQuery.md +0 -18
- data/docs/MetricAggregateQueryAsSubResource.md +0 -20
- data/docs/MetricAggregateQueryAsSubResourceAttributes.md +0 -36
- data/docs/MetricAggregateRowDTO.md +0 -20
- data/docs/MetricCreateQuery.md +0 -20
- data/docs/MetricsApi.md +0 -233
- data/docs/OnsiteProfileCreateQuery.md +0 -18
- data/docs/OnsiteProfileCreateQueryAsSubResource.md +0 -22
- data/docs/OnsiteProfileMeta.md +0 -18
- data/docs/OnsiteProfileMetaIdentifiers.md +0 -28
- data/docs/OnsiteSubscriptionCreateQuery.md +0 -18
- data/docs/OnsiteSubscriptionCreateQueryAsSubResource.md +0 -20
- data/docs/OnsiteSubscriptionCreateQueryAsSubResourceAttributes.md +0 -26
- data/docs/ProfileCreateQuery.md +0 -18
- data/docs/ProfileCreateQueryAsSubResource.md +0 -20
- data/docs/ProfileCreateQueryAsSubResourceAttributes.md +0 -38
- data/docs/ProfileLocation.md +0 -34
- data/docs/ProfileLocationLatitude.md +0 -49
- data/docs/ProfileLocationLongitude.md +0 -49
- data/docs/ProfilePartialUpdateQuery.md +0 -18
- data/docs/ProfilePartialUpdateQueryAsSubResource.md +0 -22
- data/docs/ProfilesApi.md +0 -825
- data/docs/SMSMessageContent.md +0 -20
- data/docs/SMSRenderOptions.md +0 -24
- data/docs/SMSTrackingOptions.md +0 -20
- data/docs/STOScheduleOptions.md +0 -18
- data/docs/SegmentPartialUpdateQuery.md +0 -18
- data/docs/SegmentPartialUpdateQueryAsSubResource.md +0 -22
- data/docs/SegmentPartialUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/SegmentsApi.md +0 -469
- data/docs/SendOptions.md +0 -20
- data/docs/SendOptionsSubObject.md +0 -18
- data/docs/SendStrategySubObject.md +0 -24
- data/docs/SendTimeSubObject.md +0 -20
- data/docs/StaticScheduleOptions.md +0 -22
- data/docs/Subscription.md +0 -24
- data/docs/SubscriptionChannels.md +0 -20
- data/docs/SubscriptionCreateJobCreateQuery.md +0 -18
- data/docs/SubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/SubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
- data/docs/Suppression.md +0 -18
- data/docs/SuppressionCreateJobCreateQuery.md +0 -18
- data/docs/SuppressionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/SuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/TagCreateQuery.md +0 -18
- data/docs/TagCreateQueryAsSubResource.md +0 -20
- data/docs/TagCreateQueryAsSubResourceAttributes.md +0 -20
- data/docs/TagGroupCreateQuery.md +0 -18
- data/docs/TagGroupCreateQueryAsSubResource.md +0 -20
- data/docs/TagGroupCreateQueryAsSubResourceAttributes.md +0 -20
- data/docs/TagGroupUpdateQuery.md +0 -18
- data/docs/TagGroupUpdateQueryAsSubResource.md +0 -22
- data/docs/TagGroupUpdateQueryAsSubResourceAttributes.md +0 -20
- data/docs/TagSegmentOp.md +0 -18
- data/docs/TagSegmentOpDataInner.md +0 -20
- data/docs/TagUpdateQuery.md +0 -18
- data/docs/TagUpdateQueryAsSubResource.md +0 -22
- data/docs/TagUpdateQueryAsSubResourceAttributes.md +0 -18
- data/docs/TagsApi.md +0 -1205
- data/docs/TemplateCloneQuery.md +0 -18
- data/docs/TemplateCloneQueryAsSubResource.md +0 -20
- data/docs/TemplateCloneQueryAsSubResourceAttributes.md +0 -22
- data/docs/TemplateCreateQuery.md +0 -18
- data/docs/TemplateCreateQueryAsSubResource.md +0 -20
- data/docs/TemplateCreateQueryAsSubResourceAttributes.md +0 -32
- data/docs/TemplateRenderQuery.md +0 -18
- data/docs/TemplateRenderQueryAsSubResource.md +0 -20
- data/docs/TemplateRenderQueryAsSubResourceAttributes.md +0 -22
- data/docs/TemplateUpdateQuery.md +0 -18
- data/docs/TemplateUpdateQueryAsSubResource.md +0 -22
- data/docs/TemplateUpdateQueryAsSubResourceAttributes.md +0 -30
- data/docs/TemplatesApi.md +0 -525
- data/docs/ThrottledScheduleOptions.md +0 -20
- data/docs/TrackingOptionsSubObject.md +0 -24
- data/docs/UTMParamsSubObject.md +0 -20
- data/docs/UnsubscriptionCreateJobCreateQuery.md +0 -18
- data/docs/UnsubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/UnsubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
- data/docs/UnsuppressionCreateJobCreateQuery.md +0 -18
- data/docs/UnsuppressionCreateJobCreateQueryAsSubResource.md +0 -20
- data/docs/UnsuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
- data/docs/UtmParamInfo.md +0 -20
- data/docs/V2TemplateRenderQueryAsSubResource.md +0 -18
- data/git_push.sh +0 -57
- data/lib/klaviyo-api-sdk/api/client_api.rb +0 -249
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_as_sub_resource.rb +0 -273
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource.rb +0 -296
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource.rb +0 -296
- data/lib/klaviyo-api-sdk/models/catalog_job_error_payload.rb +0 -284
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_as_sub_resource.rb +0 -273
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/email_message_content.rb +0 -266
- data/lib/klaviyo-api-sdk/models/email_tracking_options.rb +0 -268
- data/lib/klaviyo-api-sdk/models/error_source.rb +0 -227
- data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource.rb +0 -286
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response.rb +0 -226
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner.rb +0 -275
- data/lib/klaviyo-api-sdk/models/included_categories.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_categories_attributes.rb +0 -240
- data/lib/klaviyo-api-sdk/models/included_flow_action.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flow_actions.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes.rb +0 -282
- data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes_tracking_options.rb +0 -105
- data/lib/klaviyo-api-sdk/models/included_flow_messages.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes.rb +0 -270
- data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes_content.rb +0 -105
- data/lib/klaviyo-api-sdk/models/included_flows.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_flows_attributes.rb +0 -264
- data/lib/klaviyo-api-sdk/models/included_items.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_items_attributes.rb +0 -332
- data/lib/klaviyo-api-sdk/models/included_lists.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_lists_attributes.rb +0 -240
- data/lib/klaviyo-api-sdk/models/included_metrics.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_metrics_attributes.rb +0 -250
- data/lib/klaviyo-api-sdk/models/included_profiles.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_segments.rb +0 -300
- data/lib/klaviyo-api-sdk/models/included_segments_attributes.rb +0 -240
- data/lib/klaviyo-api-sdk/models/included_tags.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_variants.rb +0 -301
- data/lib/klaviyo-api-sdk/models/included_variants_attributes.rb +0 -396
- data/lib/klaviyo-api-sdk/models/included_variants_links.rb +0 -224
- data/lib/klaviyo-api-sdk/models/list_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/metric_aggregate_row_dto.rb +0 -242
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_as_sub_resource.rb +0 -281
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +0 -224
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta_identifiers.rb +0 -269
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource_attributes.rb +0 -265
- data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource.rb +0 -286
- data/lib/klaviyo-api-sdk/models/send_options.rb +0 -238
- data/lib/klaviyo-api-sdk/models/send_time_sub_object.rb +0 -240
- data/lib/klaviyo-api-sdk/models/sms_render_options.rb +0 -266
- data/lib/klaviyo-api-sdk/models/sms_tracking_options.rb +0 -240
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource.rb +0 -287
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource.rb +0 -272
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource.rb +0 -272
- data/spec/api/campaigns_api_spec.rb +0 -284
- data/spec/api/catalogs_api_spec.rb +0 -759
- data/spec/api/client_api_spec.rb +0 -74
- data/spec/api/data_privacy_api_spec.rb +0 -47
- data/spec/api/events_api_spec.rb +0 -120
- data/spec/api/flows_api_spec.rb +0 -220
- data/spec/api/lists_api_spec.rb +0 -169
- data/spec/api/metrics_api_spec.rb +0 -74
- data/spec/api/profiles_api_spec.rb +0 -178
- data/spec/api/segments_api_spec.rb +0 -117
- data/spec/api/tags_api_spec.rb +0 -245
- data/spec/api/templates_api_spec.rb +0 -126
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/audiences_sub_object_spec.rb +0 -40
- data/spec/models/campaign_clone_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/campaign_clone_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_clone_query_spec.rb +0 -34
- data/spec/models/campaign_create_query_as_sub_resource_attributes_spec.rb +0 -64
- data/spec/models/campaign_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_create_query_spec.rb +0 -34
- data/spec/models/campaign_message_assign_template_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/campaign_message_assign_template_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_message_assign_template_query_spec.rb +0 -34
- data/spec/models/campaign_message_partial_update_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/campaign_message_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/campaign_message_partial_update_query_spec.rb +0 -34
- data/spec/models/campaign_partial_update_query_as_sub_resource_attributes_spec.rb +0 -58
- data/spec/models/campaign_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/campaign_partial_update_query_spec.rb +0 -34
- data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +0 -34
- data/spec/models/campaign_send_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/campaign_send_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/campaign_send_job_create_query_spec.rb +0 -34
- data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/campaign_send_job_partial_update_query_spec.rb +0 -34
- data/spec/models/campaign_tag_op_data_inner_spec.rb +0 -44
- data/spec/models/campaign_tag_op_spec.rb +0 -34
- data/spec/models/catalog_category_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_create_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_category_create_query_as_sub_resource_attributes_spec.rb +0 -56
- data/spec/models/catalog_category_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_category_create_query_spec.rb +0 -34
- data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_delete_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_category_delete_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_item_op_spec.rb +0 -34
- data/spec/models/catalog_category_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_update_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_category_update_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_category_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_category_update_query_as_sub_resource_spec.rb +0 -56
- data/spec/models/catalog_category_update_query_spec.rb +0 -34
- data/spec/models/catalog_item_category_op_spec.rb +0 -34
- data/spec/models/catalog_item_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_item_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_create_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_item_create_query_as_sub_resource_attributes_spec.rb +0 -98
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner_spec.rb +0 -44
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_spec.rb +0 -34
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_spec.rb +0 -34
- data/spec/models/catalog_item_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_item_create_query_spec.rb +0 -34
- data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_delete_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_item_delete_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_item_update_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_item_update_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_item_update_query_as_sub_resource_attributes_spec.rb +0 -76
- data/spec/models/catalog_item_update_query_as_sub_resource_spec.rb +0 -56
- data/spec/models/catalog_item_update_query_spec.rb +0 -34
- data/spec/models/catalog_job_error_payload_spec.rb +0 -58
- data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_create_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_variant_create_query_as_sub_resource_attributes_spec.rb +0 -126
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner_spec.rb +0 -44
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_spec.rb +0 -34
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_spec.rb +0 -34
- data/spec/models/catalog_variant_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_variant_create_query_spec.rb +0 -34
- data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_delete_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_variant_delete_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/catalog_variant_update_job_create_query_spec.rb +0 -34
- data/spec/models/catalog_variant_update_query_as_sub_resource_attributes_spec.rb +0 -98
- data/spec/models/catalog_variant_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/catalog_variant_update_query_spec.rb +0 -34
- data/spec/models/content_sub_object_spec.rb +0 -64
- data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/data_privacy_create_deletion_job_query_spec.rb +0 -34
- data/spec/models/email_message_content_spec.rb +0 -52
- data/spec/models/email_tracking_options_spec.rb +0 -52
- data/spec/models/error_source_spec.rb +0 -34
- data/spec/models/event_create_query_as_sub_resource_attributes_spec.rb +0 -64
- data/spec/models/event_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/event_create_query_spec.rb +0 -34
- data/spec/models/flow_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/flow_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/flow_update_query_spec.rb +0 -34
- data/spec/models/get_campaigns4_xx_response_errors_inner_source_spec.rb +0 -40
- data/spec/models/get_campaigns4_xx_response_errors_inner_spec.rb +0 -58
- data/spec/models/get_campaigns4_xx_response_spec.rb +0 -34
- data/spec/models/get_catalog_items4_xx_response_errors_inner_source_spec.rb +0 -40
- data/spec/models/get_catalog_items4_xx_response_errors_inner_spec.rb +0 -58
- data/spec/models/get_catalog_items4_xx_response_spec.rb +0 -34
- data/spec/models/included_categories_attributes_spec.rb +0 -46
- data/spec/models/included_categories_spec.rb +0 -56
- data/spec/models/included_flow_action_spec.rb +0 -56
- data/spec/models/included_flow_actions_attributes_spec.rb +0 -76
- data/spec/models/included_flow_actions_attributes_tracking_options_spec.rb +0 -31
- data/spec/models/included_flow_actions_spec.rb +0 -56
- data/spec/models/included_flow_messages_attributes_content_spec.rb +0 -31
- data/spec/models/included_flow_messages_attributes_spec.rb +0 -58
- data/spec/models/included_flow_messages_spec.rb +0 -56
- data/spec/models/included_flows_attributes_spec.rb +0 -64
- data/spec/models/included_flows_spec.rb +0 -56
- data/spec/models/included_items_attributes_spec.rb +0 -94
- data/spec/models/included_items_spec.rb +0 -56
- data/spec/models/included_lists_attributes_spec.rb +0 -46
- data/spec/models/included_lists_spec.rb +0 -56
- data/spec/models/included_metrics_attributes_spec.rb +0 -52
- data/spec/models/included_metrics_spec.rb +0 -56
- data/spec/models/included_profiles_attributes_spec.rb +0 -112
- data/spec/models/included_profiles_spec.rb +0 -56
- data/spec/models/included_segments_attributes_spec.rb +0 -46
- data/spec/models/included_segments_spec.rb +0 -56
- data/spec/models/included_tags_spec.rb +0 -56
- data/spec/models/included_variants_attributes_spec.rb +0 -122
- data/spec/models/included_variants_links_spec.rb +0 -34
- data/spec/models/included_variants_spec.rb +0 -56
- data/spec/models/list_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/list_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/list_create_query_spec.rb +0 -34
- data/spec/models/list_members_add_query_data_inner_spec.rb +0 -44
- data/spec/models/list_members_add_query_spec.rb +0 -34
- data/spec/models/list_members_delete_query_spec.rb +0 -34
- data/spec/models/list_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/list_partial_update_query_spec.rb +0 -34
- data/spec/models/metric_aggregate_query_as_sub_resource_attributes_spec.rb +0 -104
- data/spec/models/metric_aggregate_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/metric_aggregate_query_spec.rb +0 -34
- data/spec/models/metric_aggregate_row_dto_spec.rb +0 -40
- data/spec/models/metric_create_query_spec.rb +0 -40
- data/spec/models/onsite_profile_create_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/onsite_profile_create_query_spec.rb +0 -34
- data/spec/models/onsite_profile_meta_identifiers_spec.rb +0 -64
- data/spec/models/onsite_profile_meta_spec.rb +0 -34
- data/spec/models/onsite_subscription_create_query_as_sub_resource_attributes_spec.rb +0 -58
- data/spec/models/onsite_subscription_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/onsite_subscription_create_query_spec.rb +0 -34
- data/spec/models/profile_create_query_as_sub_resource_attributes_spec.rb +0 -94
- data/spec/models/profile_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/profile_create_query_spec.rb +0 -34
- data/spec/models/profile_location_latitude_spec.rb +0 -31
- data/spec/models/profile_location_longitude_spec.rb +0 -31
- data/spec/models/profile_location_spec.rb +0 -82
- data/spec/models/profile_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/profile_partial_update_query_spec.rb +0 -34
- data/spec/models/segment_partial_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/segment_partial_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/segment_partial_update_query_spec.rb +0 -34
- data/spec/models/send_options_spec.rb +0 -40
- data/spec/models/send_options_sub_object_spec.rb +0 -40
- data/spec/models/send_strategy_sub_object_spec.rb +0 -46
- data/spec/models/send_time_sub_object_spec.rb +0 -40
- data/spec/models/sms_message_content_spec.rb +0 -40
- data/spec/models/sms_render_options_spec.rb +0 -52
- data/spec/models/sms_tracking_options_spec.rb +0 -40
- data/spec/models/static_schedule_options_spec.rb +0 -46
- data/spec/models/sto_schedule_options_spec.rb +0 -34
- data/spec/models/subscription_channels_spec.rb +0 -48
- data/spec/models/subscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/subscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/subscription_create_job_create_query_spec.rb +0 -34
- data/spec/models/subscription_spec.rb +0 -40
- data/spec/models/suppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/suppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/suppression_create_job_create_query_spec.rb +0 -34
- data/spec/models/suppression_spec.rb +0 -34
- data/spec/models/tag_create_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/tag_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/tag_create_query_spec.rb +0 -34
- data/spec/models/tag_group_create_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/tag_group_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/tag_group_create_query_spec.rb +0 -34
- data/spec/models/tag_group_update_query_as_sub_resource_attributes_spec.rb +0 -40
- data/spec/models/tag_group_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/tag_group_update_query_spec.rb +0 -34
- data/spec/models/tag_segment_op_data_inner_spec.rb +0 -44
- data/spec/models/tag_segment_op_spec.rb +0 -34
- data/spec/models/tag_update_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/tag_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/tag_update_query_spec.rb +0 -34
- data/spec/models/template_clone_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/template_clone_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/template_clone_query_spec.rb +0 -34
- data/spec/models/template_create_query_as_sub_resource_attributes_spec.rb +0 -58
- data/spec/models/template_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/template_create_query_spec.rb +0 -34
- data/spec/models/template_render_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/template_render_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/template_render_query_spec.rb +0 -34
- data/spec/models/template_update_query_as_sub_resource_attributes_spec.rb +0 -52
- data/spec/models/template_update_query_as_sub_resource_spec.rb +0 -50
- data/spec/models/template_update_query_spec.rb +0 -34
- data/spec/models/throttled_schedule_options_spec.rb +0 -40
- data/spec/models/tracking_options_sub_object_spec.rb +0 -52
- data/spec/models/unsubscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
- data/spec/models/unsubscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/unsubscription_create_job_create_query_spec.rb +0 -34
- data/spec/models/unsuppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
- data/spec/models/unsuppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
- data/spec/models/unsuppression_create_job_create_query_spec.rb +0 -34
- data/spec/models/utm_param_info_spec.rb +0 -40
- data/spec/models/utm_params_sub_object_spec.rb +0 -40
- data/spec/models/v2_template_render_query_as_sub_resource_spec.rb +0 -34
- data/spec/spec_helper.rb +0 -111
data/docs/FlowsApi.md
DELETED
@@ -1,1029 +0,0 @@
|
|
1
|
-
# KlaviyoAPI::FlowsApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://a.klaviyo.com*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**get_flow**](FlowsApi.md#get_flow) | **GET** /api/flows/{id}/ | Get Flow |
|
8
|
-
| [**get_flow_action**](FlowsApi.md#get_flow_action) | **GET** /api/flow-actions/{id}/ | Get Flow Action |
|
9
|
-
| [**get_flow_action_flow**](FlowsApi.md#get_flow_action_flow) | **GET** /api/flow-actions/{action_id}/flow/ | Get Flow For Flow Action |
|
10
|
-
| [**get_flow_action_messages**](FlowsApi.md#get_flow_action_messages) | **GET** /api/flow-actions/{action_id}/flow-messages/ | Get Messages For Flow Action |
|
11
|
-
| [**get_flow_action_relationships**](FlowsApi.md#get_flow_action_relationships) | **GET** /api/flow-actions/{id}/relationships/{related_resource}/ | Get Flow Action Relationships |
|
12
|
-
| [**get_flow_flow_actions**](FlowsApi.md#get_flow_flow_actions) | **GET** /api/flows/{flow_id}/flow-actions/ | Get Flow Actions For Flow |
|
13
|
-
| [**get_flow_message**](FlowsApi.md#get_flow_message) | **GET** /api/flow-messages/{id}/ | Get Flow Message |
|
14
|
-
| [**get_flow_message_action**](FlowsApi.md#get_flow_message_action) | **GET** /api/flow-messages/{message_id}/flow-action/ | Get Flow Action For Message |
|
15
|
-
| [**get_flow_message_relationships**](FlowsApi.md#get_flow_message_relationships) | **GET** /api/flow-messages/{id}/relationships/{related_resource}/ | Get Flow Message Relationships |
|
16
|
-
| [**get_flow_relationships**](FlowsApi.md#get_flow_relationships) | **GET** /api/flows/{id}/relationships/{related_resource}/ | Get Flow Relationships |
|
17
|
-
| [**get_flow_tags**](FlowsApi.md#get_flow_tags) | **GET** /api/flows/{flow_id}/tags/ | Get Flow Tags |
|
18
|
-
| [**get_flows**](FlowsApi.md#get_flows) | **GET** /api/flows/ | Get Flows |
|
19
|
-
| [**update_flow**](FlowsApi.md#update_flow) | **PATCH** /api/flows/{id}/ | Update Flow Status |
|
20
|
-
|
21
|
-
|
22
|
-
## get_flow
|
23
|
-
|
24
|
-
> Hash<String, Object> get_flow(id, opts)
|
25
|
-
|
26
|
-
Get Flow
|
27
|
-
|
28
|
-
Get a flow with the given flow ID. Include parameters can be provided to get the following related resource data: `flow-actions`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
29
|
-
|
30
|
-
### Examples
|
31
|
-
|
32
|
-
```ruby
|
33
|
-
require 'time'
|
34
|
-
require 'klaviyo-api-sdk'
|
35
|
-
# setup authorization
|
36
|
-
KlaviyoAPI.configure do |config|
|
37
|
-
# Configure API key authorization: Klaviyo-API-Key
|
38
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
39
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
40
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
41
|
-
end
|
42
|
-
|
43
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
44
|
-
id = 'id_example' # String |
|
45
|
-
opts = {
|
46
|
-
fields_flow_action: ['action_type'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
47
|
-
fields_flow: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
48
|
-
include: ['flow-actions'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
49
|
-
}
|
50
|
-
|
51
|
-
begin
|
52
|
-
# Get Flow
|
53
|
-
result = api_instance.get_flow(id, opts)
|
54
|
-
p result
|
55
|
-
rescue KlaviyoAPI::ApiError => e
|
56
|
-
puts "Error when calling FlowsApi->get_flow: #{e}"
|
57
|
-
end
|
58
|
-
```
|
59
|
-
|
60
|
-
#### Using the get_flow_with_http_info variant
|
61
|
-
|
62
|
-
This returns an Array which contains the response data, status code and headers.
|
63
|
-
|
64
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_with_http_info(id, opts)
|
65
|
-
|
66
|
-
```ruby
|
67
|
-
begin
|
68
|
-
# Get Flow
|
69
|
-
data, status_code, headers = api_instance.get_flow_with_http_info(id, opts)
|
70
|
-
p status_code # => 2xx
|
71
|
-
p headers # => { ... }
|
72
|
-
p data # => Hash<String, Object>
|
73
|
-
rescue KlaviyoAPI::ApiError => e
|
74
|
-
puts "Error when calling FlowsApi->get_flow_with_http_info: #{e}"
|
75
|
-
end
|
76
|
-
```
|
77
|
-
|
78
|
-
### Parameters
|
79
|
-
|
80
|
-
| Name | Type | Description | Notes |
|
81
|
-
| ---- | ---- | ----------- | ----- |
|
82
|
-
| **id** | **String** | | |
|
83
|
-
| **fields_flow_action** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
84
|
-
| **fields_flow** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
85
|
-
| **include** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships | [optional] |
|
86
|
-
|
87
|
-
### Return type
|
88
|
-
|
89
|
-
**Hash<String, Object>**
|
90
|
-
|
91
|
-
### Authorization
|
92
|
-
|
93
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
94
|
-
|
95
|
-
### HTTP request headers
|
96
|
-
|
97
|
-
- **Content-Type**: Not defined
|
98
|
-
- **Accept**: application/json
|
99
|
-
|
100
|
-
|
101
|
-
## get_flow_action
|
102
|
-
|
103
|
-
> Hash<String, Object> get_flow_action(id, opts)
|
104
|
-
|
105
|
-
Get Flow Action
|
106
|
-
|
107
|
-
Get a flow action from a flow with the given flow action ID. Include parameters can be provided to get the following related resource data: `flows`, `flow-messages`<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
108
|
-
|
109
|
-
### Examples
|
110
|
-
|
111
|
-
```ruby
|
112
|
-
require 'time'
|
113
|
-
require 'klaviyo-api-sdk'
|
114
|
-
# setup authorization
|
115
|
-
KlaviyoAPI.configure do |config|
|
116
|
-
# Configure API key authorization: Klaviyo-API-Key
|
117
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
118
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
119
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
120
|
-
end
|
121
|
-
|
122
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
123
|
-
id = 'id_example' # String |
|
124
|
-
opts = {
|
125
|
-
fields_flow_action: ['action_type'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
126
|
-
fields_flow_message: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
127
|
-
fields_flow: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
128
|
-
include: ['flow-messages'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
129
|
-
}
|
130
|
-
|
131
|
-
begin
|
132
|
-
# Get Flow Action
|
133
|
-
result = api_instance.get_flow_action(id, opts)
|
134
|
-
p result
|
135
|
-
rescue KlaviyoAPI::ApiError => e
|
136
|
-
puts "Error when calling FlowsApi->get_flow_action: #{e}"
|
137
|
-
end
|
138
|
-
```
|
139
|
-
|
140
|
-
#### Using the get_flow_action_with_http_info variant
|
141
|
-
|
142
|
-
This returns an Array which contains the response data, status code and headers.
|
143
|
-
|
144
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_action_with_http_info(id, opts)
|
145
|
-
|
146
|
-
```ruby
|
147
|
-
begin
|
148
|
-
# Get Flow Action
|
149
|
-
data, status_code, headers = api_instance.get_flow_action_with_http_info(id, opts)
|
150
|
-
p status_code # => 2xx
|
151
|
-
p headers # => { ... }
|
152
|
-
p data # => Hash<String, Object>
|
153
|
-
rescue KlaviyoAPI::ApiError => e
|
154
|
-
puts "Error when calling FlowsApi->get_flow_action_with_http_info: #{e}"
|
155
|
-
end
|
156
|
-
```
|
157
|
-
|
158
|
-
### Parameters
|
159
|
-
|
160
|
-
| Name | Type | Description | Notes |
|
161
|
-
| ---- | ---- | ----------- | ----- |
|
162
|
-
| **id** | **String** | | |
|
163
|
-
| **fields_flow_action** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
164
|
-
| **fields_flow_message** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
165
|
-
| **fields_flow** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
166
|
-
| **include** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships | [optional] |
|
167
|
-
|
168
|
-
### Return type
|
169
|
-
|
170
|
-
**Hash<String, Object>**
|
171
|
-
|
172
|
-
### Authorization
|
173
|
-
|
174
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
175
|
-
|
176
|
-
### HTTP request headers
|
177
|
-
|
178
|
-
- **Content-Type**: Not defined
|
179
|
-
- **Accept**: application/json
|
180
|
-
|
181
|
-
|
182
|
-
## get_flow_action_flow
|
183
|
-
|
184
|
-
> Hash<String, Object> get_flow_action_flow(action_id, opts)
|
185
|
-
|
186
|
-
Get Flow For Flow Action
|
187
|
-
|
188
|
-
Get the flow associated with the given action ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
189
|
-
|
190
|
-
### Examples
|
191
|
-
|
192
|
-
```ruby
|
193
|
-
require 'time'
|
194
|
-
require 'klaviyo-api-sdk'
|
195
|
-
# setup authorization
|
196
|
-
KlaviyoAPI.configure do |config|
|
197
|
-
# Configure API key authorization: Klaviyo-API-Key
|
198
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
199
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
200
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
201
|
-
end
|
202
|
-
|
203
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
204
|
-
action_id = 'action_id_example' # String |
|
205
|
-
opts = {
|
206
|
-
fields_flow: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
207
|
-
}
|
208
|
-
|
209
|
-
begin
|
210
|
-
# Get Flow For Flow Action
|
211
|
-
result = api_instance.get_flow_action_flow(action_id, opts)
|
212
|
-
p result
|
213
|
-
rescue KlaviyoAPI::ApiError => e
|
214
|
-
puts "Error when calling FlowsApi->get_flow_action_flow: #{e}"
|
215
|
-
end
|
216
|
-
```
|
217
|
-
|
218
|
-
#### Using the get_flow_action_flow_with_http_info variant
|
219
|
-
|
220
|
-
This returns an Array which contains the response data, status code and headers.
|
221
|
-
|
222
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_action_flow_with_http_info(action_id, opts)
|
223
|
-
|
224
|
-
```ruby
|
225
|
-
begin
|
226
|
-
# Get Flow For Flow Action
|
227
|
-
data, status_code, headers = api_instance.get_flow_action_flow_with_http_info(action_id, opts)
|
228
|
-
p status_code # => 2xx
|
229
|
-
p headers # => { ... }
|
230
|
-
p data # => Hash<String, Object>
|
231
|
-
rescue KlaviyoAPI::ApiError => e
|
232
|
-
puts "Error when calling FlowsApi->get_flow_action_flow_with_http_info: #{e}"
|
233
|
-
end
|
234
|
-
```
|
235
|
-
|
236
|
-
### Parameters
|
237
|
-
|
238
|
-
| Name | Type | Description | Notes |
|
239
|
-
| ---- | ---- | ----------- | ----- |
|
240
|
-
| **action_id** | **String** | | |
|
241
|
-
| **fields_flow** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
242
|
-
|
243
|
-
### Return type
|
244
|
-
|
245
|
-
**Hash<String, Object>**
|
246
|
-
|
247
|
-
### Authorization
|
248
|
-
|
249
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
250
|
-
|
251
|
-
### HTTP request headers
|
252
|
-
|
253
|
-
- **Content-Type**: Not defined
|
254
|
-
- **Accept**: application/json
|
255
|
-
|
256
|
-
|
257
|
-
## get_flow_action_messages
|
258
|
-
|
259
|
-
> Hash<String, Object> get_flow_action_messages(action_id, opts)
|
260
|
-
|
261
|
-
Get Messages For Flow Action
|
262
|
-
|
263
|
-
Get all flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
264
|
-
|
265
|
-
### Examples
|
266
|
-
|
267
|
-
```ruby
|
268
|
-
require 'time'
|
269
|
-
require 'klaviyo-api-sdk'
|
270
|
-
# setup authorization
|
271
|
-
KlaviyoAPI.configure do |config|
|
272
|
-
# Configure API key authorization: Klaviyo-API-Key
|
273
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
274
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
275
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
276
|
-
end
|
277
|
-
|
278
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
279
|
-
action_id = 'action_id_example' # String |
|
280
|
-
opts = {
|
281
|
-
fields_flow_message: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
282
|
-
filter: 'filter_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`
|
283
|
-
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
284
|
-
sort: 'created' # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
285
|
-
}
|
286
|
-
|
287
|
-
begin
|
288
|
-
# Get Messages For Flow Action
|
289
|
-
result = api_instance.get_flow_action_messages(action_id, opts)
|
290
|
-
p result
|
291
|
-
rescue KlaviyoAPI::ApiError => e
|
292
|
-
puts "Error when calling FlowsApi->get_flow_action_messages: #{e}"
|
293
|
-
end
|
294
|
-
```
|
295
|
-
|
296
|
-
#### Using the get_flow_action_messages_with_http_info variant
|
297
|
-
|
298
|
-
This returns an Array which contains the response data, status code and headers.
|
299
|
-
|
300
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_action_messages_with_http_info(action_id, opts)
|
301
|
-
|
302
|
-
```ruby
|
303
|
-
begin
|
304
|
-
# Get Messages For Flow Action
|
305
|
-
data, status_code, headers = api_instance.get_flow_action_messages_with_http_info(action_id, opts)
|
306
|
-
p status_code # => 2xx
|
307
|
-
p headers # => { ... }
|
308
|
-
p data # => Hash<String, Object>
|
309
|
-
rescue KlaviyoAPI::ApiError => e
|
310
|
-
puts "Error when calling FlowsApi->get_flow_action_messages_with_http_info: #{e}"
|
311
|
-
end
|
312
|
-
```
|
313
|
-
|
314
|
-
### Parameters
|
315
|
-
|
316
|
-
| Name | Type | Description | Notes |
|
317
|
-
| ---- | ---- | ----------- | ----- |
|
318
|
-
| **action_id** | **String** | | |
|
319
|
-
| **fields_flow_message** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
320
|
-
| **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` | [optional] |
|
321
|
-
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
|
322
|
-
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
|
323
|
-
|
324
|
-
### Return type
|
325
|
-
|
326
|
-
**Hash<String, Object>**
|
327
|
-
|
328
|
-
### Authorization
|
329
|
-
|
330
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
331
|
-
|
332
|
-
### HTTP request headers
|
333
|
-
|
334
|
-
- **Content-Type**: Not defined
|
335
|
-
- **Accept**: application/json
|
336
|
-
|
337
|
-
|
338
|
-
## get_flow_action_relationships
|
339
|
-
|
340
|
-
> Hash<String, Object> get_flow_action_relationships(id, related_resource, opts)
|
341
|
-
|
342
|
-
Get Flow Action Relationships
|
343
|
-
|
344
|
-
Get all relationships for flow messages associated with the given flow action ID. Returns a maximum of 50 flow message relationships per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
345
|
-
|
346
|
-
### Examples
|
347
|
-
|
348
|
-
```ruby
|
349
|
-
require 'time'
|
350
|
-
require 'klaviyo-api-sdk'
|
351
|
-
# setup authorization
|
352
|
-
KlaviyoAPI.configure do |config|
|
353
|
-
# Configure API key authorization: Klaviyo-API-Key
|
354
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
355
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
356
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
357
|
-
end
|
358
|
-
|
359
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
360
|
-
id = 'id_example' # String |
|
361
|
-
related_resource = 'flow' # String |
|
362
|
-
opts = {
|
363
|
-
filter: 'filter_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`
|
364
|
-
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
365
|
-
sort: 'created' # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
366
|
-
}
|
367
|
-
|
368
|
-
begin
|
369
|
-
# Get Flow Action Relationships
|
370
|
-
result = api_instance.get_flow_action_relationships(id, related_resource, opts)
|
371
|
-
p result
|
372
|
-
rescue KlaviyoAPI::ApiError => e
|
373
|
-
puts "Error when calling FlowsApi->get_flow_action_relationships: #{e}"
|
374
|
-
end
|
375
|
-
```
|
376
|
-
|
377
|
-
#### Using the get_flow_action_relationships_with_http_info variant
|
378
|
-
|
379
|
-
This returns an Array which contains the response data, status code and headers.
|
380
|
-
|
381
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_action_relationships_with_http_info(id, related_resource, opts)
|
382
|
-
|
383
|
-
```ruby
|
384
|
-
begin
|
385
|
-
# Get Flow Action Relationships
|
386
|
-
data, status_code, headers = api_instance.get_flow_action_relationships_with_http_info(id, related_resource, opts)
|
387
|
-
p status_code # => 2xx
|
388
|
-
p headers # => { ... }
|
389
|
-
p data # => Hash<String, Object>
|
390
|
-
rescue KlaviyoAPI::ApiError => e
|
391
|
-
puts "Error when calling FlowsApi->get_flow_action_relationships_with_http_info: #{e}"
|
392
|
-
end
|
393
|
-
```
|
394
|
-
|
395
|
-
### Parameters
|
396
|
-
|
397
|
-
| Name | Type | Description | Notes |
|
398
|
-
| ---- | ---- | ----------- | ----- |
|
399
|
-
| **id** | **String** | | |
|
400
|
-
| **related_resource** | **String** | | |
|
401
|
-
| **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` | [optional] |
|
402
|
-
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
|
403
|
-
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
|
404
|
-
|
405
|
-
### Return type
|
406
|
-
|
407
|
-
**Hash<String, Object>**
|
408
|
-
|
409
|
-
### Authorization
|
410
|
-
|
411
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
412
|
-
|
413
|
-
### HTTP request headers
|
414
|
-
|
415
|
-
- **Content-Type**: Not defined
|
416
|
-
- **Accept**: application/json
|
417
|
-
|
418
|
-
|
419
|
-
## get_flow_flow_actions
|
420
|
-
|
421
|
-
> Hash<String, Object> get_flow_flow_actions(flow_id, opts)
|
422
|
-
|
423
|
-
Get Flow Actions For Flow
|
424
|
-
|
425
|
-
Get all flow actions associated with the given flow ID. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
426
|
-
|
427
|
-
### Examples
|
428
|
-
|
429
|
-
```ruby
|
430
|
-
require 'time'
|
431
|
-
require 'klaviyo-api-sdk'
|
432
|
-
# setup authorization
|
433
|
-
KlaviyoAPI.configure do |config|
|
434
|
-
# Configure API key authorization: Klaviyo-API-Key
|
435
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
436
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
437
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
438
|
-
end
|
439
|
-
|
440
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
441
|
-
flow_id = 'flow_id_example' # String |
|
442
|
-
opts = {
|
443
|
-
fields_flow_action: ['action_type'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
444
|
-
filter: 'filter_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`action_type`: `any`, `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`
|
445
|
-
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
446
|
-
sort: 'action_type' # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
447
|
-
}
|
448
|
-
|
449
|
-
begin
|
450
|
-
# Get Flow Actions For Flow
|
451
|
-
result = api_instance.get_flow_flow_actions(flow_id, opts)
|
452
|
-
p result
|
453
|
-
rescue KlaviyoAPI::ApiError => e
|
454
|
-
puts "Error when calling FlowsApi->get_flow_flow_actions: #{e}"
|
455
|
-
end
|
456
|
-
```
|
457
|
-
|
458
|
-
#### Using the get_flow_flow_actions_with_http_info variant
|
459
|
-
|
460
|
-
This returns an Array which contains the response data, status code and headers.
|
461
|
-
|
462
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_flow_actions_with_http_info(flow_id, opts)
|
463
|
-
|
464
|
-
```ruby
|
465
|
-
begin
|
466
|
-
# Get Flow Actions For Flow
|
467
|
-
data, status_code, headers = api_instance.get_flow_flow_actions_with_http_info(flow_id, opts)
|
468
|
-
p status_code # => 2xx
|
469
|
-
p headers # => { ... }
|
470
|
-
p data # => Hash<String, Object>
|
471
|
-
rescue KlaviyoAPI::ApiError => e
|
472
|
-
puts "Error when calling FlowsApi->get_flow_flow_actions_with_http_info: #{e}"
|
473
|
-
end
|
474
|
-
```
|
475
|
-
|
476
|
-
### Parameters
|
477
|
-
|
478
|
-
| Name | Type | Description | Notes |
|
479
|
-
| ---- | ---- | ----------- | ----- |
|
480
|
-
| **flow_id** | **String** | | |
|
481
|
-
| **fields_flow_action** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
482
|
-
| **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`action_type`: `any`, `equals`<br>`status`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` | [optional] |
|
483
|
-
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
|
484
|
-
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
|
485
|
-
|
486
|
-
### Return type
|
487
|
-
|
488
|
-
**Hash<String, Object>**
|
489
|
-
|
490
|
-
### Authorization
|
491
|
-
|
492
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
493
|
-
|
494
|
-
### HTTP request headers
|
495
|
-
|
496
|
-
- **Content-Type**: Not defined
|
497
|
-
- **Accept**: application/json
|
498
|
-
|
499
|
-
|
500
|
-
## get_flow_message
|
501
|
-
|
502
|
-
> Hash<String, Object> get_flow_message(id, opts)
|
503
|
-
|
504
|
-
Get Flow Message
|
505
|
-
|
506
|
-
Get the flow message of a flow with the given message ID. Include parameters can be provided to get the following related resource data: 'flow-actions'<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
507
|
-
|
508
|
-
### Examples
|
509
|
-
|
510
|
-
```ruby
|
511
|
-
require 'time'
|
512
|
-
require 'klaviyo-api-sdk'
|
513
|
-
# setup authorization
|
514
|
-
KlaviyoAPI.configure do |config|
|
515
|
-
# Configure API key authorization: Klaviyo-API-Key
|
516
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
517
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
518
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
519
|
-
end
|
520
|
-
|
521
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
522
|
-
id = 'id_example' # String |
|
523
|
-
opts = {
|
524
|
-
fields_flow_action: ['action_type'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
525
|
-
fields_flow_message: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
526
|
-
include: ['flow-action'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
527
|
-
}
|
528
|
-
|
529
|
-
begin
|
530
|
-
# Get Flow Message
|
531
|
-
result = api_instance.get_flow_message(id, opts)
|
532
|
-
p result
|
533
|
-
rescue KlaviyoAPI::ApiError => e
|
534
|
-
puts "Error when calling FlowsApi->get_flow_message: #{e}"
|
535
|
-
end
|
536
|
-
```
|
537
|
-
|
538
|
-
#### Using the get_flow_message_with_http_info variant
|
539
|
-
|
540
|
-
This returns an Array which contains the response data, status code and headers.
|
541
|
-
|
542
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_message_with_http_info(id, opts)
|
543
|
-
|
544
|
-
```ruby
|
545
|
-
begin
|
546
|
-
# Get Flow Message
|
547
|
-
data, status_code, headers = api_instance.get_flow_message_with_http_info(id, opts)
|
548
|
-
p status_code # => 2xx
|
549
|
-
p headers # => { ... }
|
550
|
-
p data # => Hash<String, Object>
|
551
|
-
rescue KlaviyoAPI::ApiError => e
|
552
|
-
puts "Error when calling FlowsApi->get_flow_message_with_http_info: #{e}"
|
553
|
-
end
|
554
|
-
```
|
555
|
-
|
556
|
-
### Parameters
|
557
|
-
|
558
|
-
| Name | Type | Description | Notes |
|
559
|
-
| ---- | ---- | ----------- | ----- |
|
560
|
-
| **id** | **String** | | |
|
561
|
-
| **fields_flow_action** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
562
|
-
| **fields_flow_message** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
563
|
-
| **include** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships | [optional] |
|
564
|
-
|
565
|
-
### Return type
|
566
|
-
|
567
|
-
**Hash<String, Object>**
|
568
|
-
|
569
|
-
### Authorization
|
570
|
-
|
571
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
572
|
-
|
573
|
-
### HTTP request headers
|
574
|
-
|
575
|
-
- **Content-Type**: Not defined
|
576
|
-
- **Accept**: application/json
|
577
|
-
|
578
|
-
|
579
|
-
## get_flow_message_action
|
580
|
-
|
581
|
-
> Hash<String, Object> get_flow_message_action(message_id, opts)
|
582
|
-
|
583
|
-
Get Flow Action For Message
|
584
|
-
|
585
|
-
Get the flow action for a flow message with the given message ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
586
|
-
|
587
|
-
### Examples
|
588
|
-
|
589
|
-
```ruby
|
590
|
-
require 'time'
|
591
|
-
require 'klaviyo-api-sdk'
|
592
|
-
# setup authorization
|
593
|
-
KlaviyoAPI.configure do |config|
|
594
|
-
# Configure API key authorization: Klaviyo-API-Key
|
595
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
596
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
597
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
598
|
-
end
|
599
|
-
|
600
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
601
|
-
message_id = 'message_id_example' # String |
|
602
|
-
opts = {
|
603
|
-
fields_flow_action: ['action_type'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
604
|
-
}
|
605
|
-
|
606
|
-
begin
|
607
|
-
# Get Flow Action For Message
|
608
|
-
result = api_instance.get_flow_message_action(message_id, opts)
|
609
|
-
p result
|
610
|
-
rescue KlaviyoAPI::ApiError => e
|
611
|
-
puts "Error when calling FlowsApi->get_flow_message_action: #{e}"
|
612
|
-
end
|
613
|
-
```
|
614
|
-
|
615
|
-
#### Using the get_flow_message_action_with_http_info variant
|
616
|
-
|
617
|
-
This returns an Array which contains the response data, status code and headers.
|
618
|
-
|
619
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_message_action_with_http_info(message_id, opts)
|
620
|
-
|
621
|
-
```ruby
|
622
|
-
begin
|
623
|
-
# Get Flow Action For Message
|
624
|
-
data, status_code, headers = api_instance.get_flow_message_action_with_http_info(message_id, opts)
|
625
|
-
p status_code # => 2xx
|
626
|
-
p headers # => { ... }
|
627
|
-
p data # => Hash<String, Object>
|
628
|
-
rescue KlaviyoAPI::ApiError => e
|
629
|
-
puts "Error when calling FlowsApi->get_flow_message_action_with_http_info: #{e}"
|
630
|
-
end
|
631
|
-
```
|
632
|
-
|
633
|
-
### Parameters
|
634
|
-
|
635
|
-
| Name | Type | Description | Notes |
|
636
|
-
| ---- | ---- | ----------- | ----- |
|
637
|
-
| **message_id** | **String** | | |
|
638
|
-
| **fields_flow_action** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
639
|
-
|
640
|
-
### Return type
|
641
|
-
|
642
|
-
**Hash<String, Object>**
|
643
|
-
|
644
|
-
### Authorization
|
645
|
-
|
646
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
647
|
-
|
648
|
-
### HTTP request headers
|
649
|
-
|
650
|
-
- **Content-Type**: Not defined
|
651
|
-
- **Accept**: application/json
|
652
|
-
|
653
|
-
|
654
|
-
## get_flow_message_relationships
|
655
|
-
|
656
|
-
> Hash<String, Object> get_flow_message_relationships(id, related_resource)
|
657
|
-
|
658
|
-
Get Flow Message Relationships
|
659
|
-
|
660
|
-
Get the [relationship](https://developers.klaviyo.com/en/reference/api_overview#relationships) for a flow message's flow action, given the flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
661
|
-
|
662
|
-
### Examples
|
663
|
-
|
664
|
-
```ruby
|
665
|
-
require 'time'
|
666
|
-
require 'klaviyo-api-sdk'
|
667
|
-
# setup authorization
|
668
|
-
KlaviyoAPI.configure do |config|
|
669
|
-
# Configure API key authorization: Klaviyo-API-Key
|
670
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
671
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
672
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
673
|
-
end
|
674
|
-
|
675
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
676
|
-
id = 'id_example' # String |
|
677
|
-
related_resource = 'flow-action' # String |
|
678
|
-
|
679
|
-
begin
|
680
|
-
# Get Flow Message Relationships
|
681
|
-
result = api_instance.get_flow_message_relationships(id, related_resource)
|
682
|
-
p result
|
683
|
-
rescue KlaviyoAPI::ApiError => e
|
684
|
-
puts "Error when calling FlowsApi->get_flow_message_relationships: #{e}"
|
685
|
-
end
|
686
|
-
```
|
687
|
-
|
688
|
-
#### Using the get_flow_message_relationships_with_http_info variant
|
689
|
-
|
690
|
-
This returns an Array which contains the response data, status code and headers.
|
691
|
-
|
692
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_message_relationships_with_http_info(id, related_resource)
|
693
|
-
|
694
|
-
```ruby
|
695
|
-
begin
|
696
|
-
# Get Flow Message Relationships
|
697
|
-
data, status_code, headers = api_instance.get_flow_message_relationships_with_http_info(id, related_resource)
|
698
|
-
p status_code # => 2xx
|
699
|
-
p headers # => { ... }
|
700
|
-
p data # => Hash<String, Object>
|
701
|
-
rescue KlaviyoAPI::ApiError => e
|
702
|
-
puts "Error when calling FlowsApi->get_flow_message_relationships_with_http_info: #{e}"
|
703
|
-
end
|
704
|
-
```
|
705
|
-
|
706
|
-
### Parameters
|
707
|
-
|
708
|
-
| Name | Type | Description | Notes |
|
709
|
-
| ---- | ---- | ----------- | ----- |
|
710
|
-
| **id** | **String** | | |
|
711
|
-
| **related_resource** | **String** | | |
|
712
|
-
|
713
|
-
### Return type
|
714
|
-
|
715
|
-
**Hash<String, Object>**
|
716
|
-
|
717
|
-
### Authorization
|
718
|
-
|
719
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
720
|
-
|
721
|
-
### HTTP request headers
|
722
|
-
|
723
|
-
- **Content-Type**: Not defined
|
724
|
-
- **Accept**: application/json
|
725
|
-
|
726
|
-
|
727
|
-
## get_flow_relationships
|
728
|
-
|
729
|
-
> Hash<String, Object> get_flow_relationships(id, related_resource)
|
730
|
-
|
731
|
-
Get Flow Relationships
|
732
|
-
|
733
|
-
If the `related_resource` is `tags`, returns the tag IDs of all tags associated with the given flow.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read` `Tags Read`
|
734
|
-
|
735
|
-
### Examples
|
736
|
-
|
737
|
-
```ruby
|
738
|
-
require 'time'
|
739
|
-
require 'klaviyo-api-sdk'
|
740
|
-
# setup authorization
|
741
|
-
KlaviyoAPI.configure do |config|
|
742
|
-
# Configure API key authorization: Klaviyo-API-Key
|
743
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
744
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
745
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
746
|
-
end
|
747
|
-
|
748
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
749
|
-
id = 'id_example' # String |
|
750
|
-
related_resource = 'flow-actions' # String |
|
751
|
-
|
752
|
-
begin
|
753
|
-
# Get Flow Relationships
|
754
|
-
result = api_instance.get_flow_relationships(id, related_resource)
|
755
|
-
p result
|
756
|
-
rescue KlaviyoAPI::ApiError => e
|
757
|
-
puts "Error when calling FlowsApi->get_flow_relationships: #{e}"
|
758
|
-
end
|
759
|
-
```
|
760
|
-
|
761
|
-
#### Using the get_flow_relationships_with_http_info variant
|
762
|
-
|
763
|
-
This returns an Array which contains the response data, status code and headers.
|
764
|
-
|
765
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_relationships_with_http_info(id, related_resource)
|
766
|
-
|
767
|
-
```ruby
|
768
|
-
begin
|
769
|
-
# Get Flow Relationships
|
770
|
-
data, status_code, headers = api_instance.get_flow_relationships_with_http_info(id, related_resource)
|
771
|
-
p status_code # => 2xx
|
772
|
-
p headers # => { ... }
|
773
|
-
p data # => Hash<String, Object>
|
774
|
-
rescue KlaviyoAPI::ApiError => e
|
775
|
-
puts "Error when calling FlowsApi->get_flow_relationships_with_http_info: #{e}"
|
776
|
-
end
|
777
|
-
```
|
778
|
-
|
779
|
-
### Parameters
|
780
|
-
|
781
|
-
| Name | Type | Description | Notes |
|
782
|
-
| ---- | ---- | ----------- | ----- |
|
783
|
-
| **id** | **String** | | |
|
784
|
-
| **related_resource** | **String** | | |
|
785
|
-
|
786
|
-
### Return type
|
787
|
-
|
788
|
-
**Hash<String, Object>**
|
789
|
-
|
790
|
-
### Authorization
|
791
|
-
|
792
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
793
|
-
|
794
|
-
### HTTP request headers
|
795
|
-
|
796
|
-
- **Content-Type**: Not defined
|
797
|
-
- **Accept**: application/json
|
798
|
-
|
799
|
-
|
800
|
-
## get_flow_tags
|
801
|
-
|
802
|
-
> Hash<String, Object> get_flow_tags(flow_id, opts)
|
803
|
-
|
804
|
-
Get Flow Tags
|
805
|
-
|
806
|
-
Return all tags associated with the given flow ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read` `Tags Read`
|
807
|
-
|
808
|
-
### Examples
|
809
|
-
|
810
|
-
```ruby
|
811
|
-
require 'time'
|
812
|
-
require 'klaviyo-api-sdk'
|
813
|
-
# setup authorization
|
814
|
-
KlaviyoAPI.configure do |config|
|
815
|
-
# Configure API key authorization: Klaviyo-API-Key
|
816
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
817
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
818
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
819
|
-
end
|
820
|
-
|
821
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
822
|
-
flow_id = 'flow_id_example' # String |
|
823
|
-
opts = {
|
824
|
-
fields_tag: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
825
|
-
}
|
826
|
-
|
827
|
-
begin
|
828
|
-
# Get Flow Tags
|
829
|
-
result = api_instance.get_flow_tags(flow_id, opts)
|
830
|
-
p result
|
831
|
-
rescue KlaviyoAPI::ApiError => e
|
832
|
-
puts "Error when calling FlowsApi->get_flow_tags: #{e}"
|
833
|
-
end
|
834
|
-
```
|
835
|
-
|
836
|
-
#### Using the get_flow_tags_with_http_info variant
|
837
|
-
|
838
|
-
This returns an Array which contains the response data, status code and headers.
|
839
|
-
|
840
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flow_tags_with_http_info(flow_id, opts)
|
841
|
-
|
842
|
-
```ruby
|
843
|
-
begin
|
844
|
-
# Get Flow Tags
|
845
|
-
data, status_code, headers = api_instance.get_flow_tags_with_http_info(flow_id, opts)
|
846
|
-
p status_code # => 2xx
|
847
|
-
p headers # => { ... }
|
848
|
-
p data # => Hash<String, Object>
|
849
|
-
rescue KlaviyoAPI::ApiError => e
|
850
|
-
puts "Error when calling FlowsApi->get_flow_tags_with_http_info: #{e}"
|
851
|
-
end
|
852
|
-
```
|
853
|
-
|
854
|
-
### Parameters
|
855
|
-
|
856
|
-
| Name | Type | Description | Notes |
|
857
|
-
| ---- | ---- | ----------- | ----- |
|
858
|
-
| **flow_id** | **String** | | |
|
859
|
-
| **fields_tag** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
860
|
-
|
861
|
-
### Return type
|
862
|
-
|
863
|
-
**Hash<String, Object>**
|
864
|
-
|
865
|
-
### Authorization
|
866
|
-
|
867
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
868
|
-
|
869
|
-
### HTTP request headers
|
870
|
-
|
871
|
-
- **Content-Type**: Not defined
|
872
|
-
- **Accept**: application/json
|
873
|
-
|
874
|
-
|
875
|
-
## get_flows
|
876
|
-
|
877
|
-
> Hash<String, Object> get_flows(opts)
|
878
|
-
|
879
|
-
Get Flows
|
880
|
-
|
881
|
-
Get all flows in an account. Returns a maximum of 50 flows per request, which can be paginated with cursor-based pagination.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read`
|
882
|
-
|
883
|
-
### Examples
|
884
|
-
|
885
|
-
```ruby
|
886
|
-
require 'time'
|
887
|
-
require 'klaviyo-api-sdk'
|
888
|
-
# setup authorization
|
889
|
-
KlaviyoAPI.configure do |config|
|
890
|
-
# Configure API key authorization: Klaviyo-API-Key
|
891
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
892
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
893
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
894
|
-
end
|
895
|
-
|
896
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
897
|
-
opts = {
|
898
|
-
fields_flow_action: ['action_type'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
899
|
-
fields_flow: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
900
|
-
filter: 'filter_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`status`: `equals`<br>`archived`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`trigger_type`: `equals`
|
901
|
-
include: ['flow-actions'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
|
902
|
-
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
903
|
-
sort: 'created' # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
904
|
-
}
|
905
|
-
|
906
|
-
begin
|
907
|
-
# Get Flows
|
908
|
-
result = api_instance.get_flows(opts)
|
909
|
-
p result
|
910
|
-
rescue KlaviyoAPI::ApiError => e
|
911
|
-
puts "Error when calling FlowsApi->get_flows: #{e}"
|
912
|
-
end
|
913
|
-
```
|
914
|
-
|
915
|
-
#### Using the get_flows_with_http_info variant
|
916
|
-
|
917
|
-
This returns an Array which contains the response data, status code and headers.
|
918
|
-
|
919
|
-
> <Array(Hash<String, Object>, Integer, Hash)> get_flows_with_http_info(opts)
|
920
|
-
|
921
|
-
```ruby
|
922
|
-
begin
|
923
|
-
# Get Flows
|
924
|
-
data, status_code, headers = api_instance.get_flows_with_http_info(opts)
|
925
|
-
p status_code # => 2xx
|
926
|
-
p headers # => { ... }
|
927
|
-
p data # => Hash<String, Object>
|
928
|
-
rescue KlaviyoAPI::ApiError => e
|
929
|
-
puts "Error when calling FlowsApi->get_flows_with_http_info: #{e}"
|
930
|
-
end
|
931
|
-
```
|
932
|
-
|
933
|
-
### Parameters
|
934
|
-
|
935
|
-
| Name | Type | Description | Notes |
|
936
|
-
| ---- | ---- | ----------- | ----- |
|
937
|
-
| **fields_flow_action** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
938
|
-
| **fields_flow** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
939
|
-
| **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`status`: `equals`<br>`archived`: `equals`<br>`created`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`updated`: `equals`, `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`trigger_type`: `equals` | [optional] |
|
940
|
-
| **include** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships | [optional] |
|
941
|
-
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
|
942
|
-
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
|
943
|
-
|
944
|
-
### Return type
|
945
|
-
|
946
|
-
**Hash<String, Object>**
|
947
|
-
|
948
|
-
### Authorization
|
949
|
-
|
950
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
951
|
-
|
952
|
-
### HTTP request headers
|
953
|
-
|
954
|
-
- **Content-Type**: Not defined
|
955
|
-
- **Accept**: application/json
|
956
|
-
|
957
|
-
|
958
|
-
## update_flow
|
959
|
-
|
960
|
-
> Hash<String, Object> update_flow(id, flow_update_query)
|
961
|
-
|
962
|
-
Update Flow Status
|
963
|
-
|
964
|
-
Update the status of a flow with the given flow ID, and all actions in that flow.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Write`
|
965
|
-
|
966
|
-
### Examples
|
967
|
-
|
968
|
-
```ruby
|
969
|
-
require 'time'
|
970
|
-
require 'klaviyo-api-sdk'
|
971
|
-
# setup authorization
|
972
|
-
KlaviyoAPI.configure do |config|
|
973
|
-
# Configure API key authorization: Klaviyo-API-Key
|
974
|
-
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
975
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
976
|
-
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
977
|
-
end
|
978
|
-
|
979
|
-
api_instance = KlaviyoAPI::FlowsApi.new
|
980
|
-
id = 'id_example' # String |
|
981
|
-
flow_update_query = KlaviyoAPI::FlowUpdateQuery.new({data: KlaviyoAPI::FlowUpdateQueryAsSubResource.new({type: 'flow', id: 'id_example', attributes: KlaviyoAPI::FlowUpdateQueryAsSubResourceAttributes.new({status: 'status_example'})})}) # FlowUpdateQuery |
|
982
|
-
|
983
|
-
begin
|
984
|
-
# Update Flow Status
|
985
|
-
result = api_instance.update_flow(id, flow_update_query)
|
986
|
-
p result
|
987
|
-
rescue KlaviyoAPI::ApiError => e
|
988
|
-
puts "Error when calling FlowsApi->update_flow: #{e}"
|
989
|
-
end
|
990
|
-
```
|
991
|
-
|
992
|
-
#### Using the update_flow_with_http_info variant
|
993
|
-
|
994
|
-
This returns an Array which contains the response data, status code and headers.
|
995
|
-
|
996
|
-
> <Array(Hash<String, Object>, Integer, Hash)> update_flow_with_http_info(id, flow_update_query)
|
997
|
-
|
998
|
-
```ruby
|
999
|
-
begin
|
1000
|
-
# Update Flow Status
|
1001
|
-
data, status_code, headers = api_instance.update_flow_with_http_info(id, flow_update_query)
|
1002
|
-
p status_code # => 2xx
|
1003
|
-
p headers # => { ... }
|
1004
|
-
p data # => Hash<String, Object>
|
1005
|
-
rescue KlaviyoAPI::ApiError => e
|
1006
|
-
puts "Error when calling FlowsApi->update_flow_with_http_info: #{e}"
|
1007
|
-
end
|
1008
|
-
```
|
1009
|
-
|
1010
|
-
### Parameters
|
1011
|
-
|
1012
|
-
| Name | Type | Description | Notes |
|
1013
|
-
| ---- | ---- | ----------- | ----- |
|
1014
|
-
| **id** | **String** | | |
|
1015
|
-
| **flow_update_query** | [**FlowUpdateQuery**](FlowUpdateQuery.md) | | |
|
1016
|
-
|
1017
|
-
### Return type
|
1018
|
-
|
1019
|
-
**Hash<String, Object>**
|
1020
|
-
|
1021
|
-
### Authorization
|
1022
|
-
|
1023
|
-
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1024
|
-
|
1025
|
-
### HTTP request headers
|
1026
|
-
|
1027
|
-
- **Content-Type**: application/json
|
1028
|
-
- **Accept**: application/json
|
1029
|
-
|