klaviyo-api-sdk 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (767) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/README.md +487 -230
  4. data/klaviyo-api-sdk.gemspec +2 -2
  5. data/lib/klaviyo-api-sdk/api/accounts_api.rb +160 -0
  6. data/lib/klaviyo-api-sdk/api/campaigns_api.rb +89 -89
  7. data/lib/klaviyo-api-sdk/api/catalogs_api.rb +357 -357
  8. data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +4 -4
  9. data/lib/klaviyo-api-sdk/api/events_api.rb +52 -52
  10. data/lib/klaviyo-api-sdk/api/flows_api.rb +210 -155
  11. data/lib/klaviyo-api-sdk/api/lists_api.rb +80 -72
  12. data/lib/klaviyo-api-sdk/api/metrics_api.rb +18 -18
  13. data/lib/klaviyo-api-sdk/api/profiles_api.rb +86 -92
  14. data/lib/klaviyo-api-sdk/api/segments_api.rb +68 -60
  15. data/lib/klaviyo-api-sdk/api/tags_api.rb +107 -107
  16. data/lib/klaviyo-api-sdk/api/templates_api.rb +32 -32
  17. data/lib/klaviyo-api-sdk/api_client.rb +2 -2
  18. data/lib/klaviyo-api-sdk/api_error.rb +1 -1
  19. data/lib/klaviyo-api-sdk/configuration.rb +1 -1
  20. data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +1 -1
  21. data/lib/klaviyo-api-sdk/models/campaign_clone_query.rb +1 -1
  22. data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb +19 -19
  23. data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes.rb +15 -15
  24. data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +1 -1
  25. data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb +19 -19
  26. data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes.rb +35 -35
  27. data/lib/klaviyo-api-sdk/models/campaign_enum.rb +1 -1
  28. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +1 -1
  29. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb +19 -19
  30. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_attributes.rb +1 -1
  31. data/lib/klaviyo-api-sdk/models/campaign_message_enum.rb +1 -1
  32. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +1 -1
  33. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb +19 -19
  34. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object_attributes.rb +14 -14
  35. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +1 -1
  36. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb +19 -19
  37. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object_attributes.rb +27 -27
  38. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +1 -1
  39. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb +19 -19
  40. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object_attributes.rb +1 -1
  41. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb +1 -1
  42. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +1 -1
  43. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object.rb +19 -19
  44. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object_attributes.rb +1 -1
  45. data/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb +1 -1
  46. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +1 -1
  47. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb +19 -19
  48. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb +1 -1
  49. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb +1 -1
  50. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb +1 -1
  51. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb +1 -1
  52. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +1 -1
  53. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb +19 -19
  54. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes.rb +1 -1
  55. data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +1 -1
  56. data/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object.rb +19 -19
  57. data/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_attributes.rb +17 -17
  58. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +1 -1
  59. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb +19 -19
  60. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes.rb +1 -1
  61. data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb +1 -1
  62. data/lib/klaviyo-api-sdk/models/catalog_category_enum.rb +1 -1
  63. data/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +2 -2
  64. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +1 -1
  65. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb +19 -19
  66. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes.rb +1 -1
  67. data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +1 -1
  68. data/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object.rb +28 -28
  69. data/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_attributes.rb +1 -1
  70. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_resource_object_relationships.rb → catalog_category_update_query_resource_object_relationships.rb} +5 -5
  71. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_resource_object_relationships_items.rb → catalog_category_update_query_resource_object_relationships_items.rb} +5 -5
  72. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_resource_object_relationships_items_data_inner.rb → catalog_category_update_query_resource_object_relationships_items_data_inner.rb} +4 -4
  73. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb +1 -1
  74. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb +1 -1
  75. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb +1 -1
  76. data/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +2 -2
  77. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_resource_object_relationships_categories_data_inner.rb → catalog_item_category_op_data_inner.rb} +4 -4
  78. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +1 -1
  79. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb +19 -19
  80. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes.rb +1 -1
  81. data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +1 -1
  82. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb +19 -19
  83. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_attributes.rb +71 -71
  84. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships.rb +1 -1
  85. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories.rb +2 -2
  86. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +1 -1
  87. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb +19 -19
  88. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes.rb +1 -1
  89. data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb +1 -1
  90. data/lib/klaviyo-api-sdk/models/catalog_item_enum.rb +1 -1
  91. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +1 -1
  92. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb +19 -19
  93. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes.rb +1 -1
  94. data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +1 -1
  95. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb +28 -28
  96. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object_attributes.rb +43 -43
  97. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb +1 -1
  98. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb +1 -1
  99. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb +1 -1
  100. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +1 -1
  101. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb +19 -19
  102. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes.rb +1 -1
  103. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +1 -1
  104. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object.rb +19 -19
  105. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_attributes.rb +114 -114
  106. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +1 -1
  107. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb +19 -19
  108. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes.rb +1 -1
  109. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb +1 -1
  110. data/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb +1 -1
  111. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +1 -1
  112. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb +19 -19
  113. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes.rb +1 -1
  114. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +1 -1
  115. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object.rb +19 -19
  116. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object_attributes.rb +57 -57
  117. data/lib/klaviyo-api-sdk/models/content_sub_object.rb +30 -30
  118. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +1 -1
  119. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb +19 -19
  120. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes.rb +15 -15
  121. data/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb +1 -1
  122. data/lib/klaviyo-api-sdk/models/event_create_query.rb +1 -1
  123. data/lib/klaviyo-api-sdk/models/event_create_query_resource_object.rb +19 -19
  124. data/lib/klaviyo-api-sdk/models/event_create_query_resource_object_attributes.rb +16 -16
  125. data/lib/klaviyo-api-sdk/models/event_enum.rb +1 -1
  126. data/lib/klaviyo-api-sdk/models/flow_enum.rb +1 -1
  127. data/lib/klaviyo-api-sdk/models/flow_update_query.rb +1 -1
  128. data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb +19 -19
  129. data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object_attributes.rb +1 -1
  130. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response.rb → get_create_variants_jobs5_xx_response.rb} +5 -5
  131. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner.rb → get_create_variants_jobs5_xx_response_errors_inner.rb} +40 -40
  132. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner_source.rb → get_create_variants_jobs5_xx_response_errors_inner_source.rb} +17 -17
  133. data/lib/klaviyo-api-sdk/models/list_create_query.rb +1 -1
  134. data/lib/klaviyo-api-sdk/models/list_create_query_resource_object.rb +19 -19
  135. data/lib/klaviyo-api-sdk/models/list_create_query_resource_object_attributes.rb +1 -1
  136. data/lib/klaviyo-api-sdk/models/list_enum.rb +1 -1
  137. data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +1 -1
  138. data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +1 -1
  139. data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +1 -1
  140. data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +1 -1
  141. data/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb +19 -19
  142. data/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb +1 -1
  143. data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +1 -1
  144. data/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object.rb +19 -19
  145. data/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb +67 -67
  146. data/lib/klaviyo-api-sdk/models/metric_create_query.rb +1 -1
  147. data/lib/klaviyo-api-sdk/models/profile_create_query.rb +1 -1
  148. data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb +19 -19
  149. data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object_attributes.rb +39 -39
  150. data/lib/klaviyo-api-sdk/models/profile_enum.rb +1 -1
  151. data/lib/klaviyo-api-sdk/models/profile_location.rb +38 -38
  152. data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +1 -1
  153. data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +1 -1
  154. data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +1 -1
  155. data/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb +19 -19
  156. data/lib/klaviyo-api-sdk/models/{onsite_profile_create_query_resource_object_attributes.rb → profile_partial_update_query_resource_object_attributes.rb} +48 -48
  157. data/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb +1 -1
  158. data/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb +1 -1
  159. data/lib/klaviyo-api-sdk/models/profile_unsubscription_bulk_create_job_enum.rb +1 -1
  160. data/lib/klaviyo-api-sdk/models/profile_unsuppression_bulk_create_job_enum.rb +1 -1
  161. data/lib/klaviyo-api-sdk/models/segment_enum.rb +1 -1
  162. data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +1 -1
  163. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb +19 -19
  164. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object_attributes.rb +1 -1
  165. data/lib/klaviyo-api-sdk/models/send_options_sub_object.rb +1 -1
  166. data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +17 -17
  167. data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +15 -15
  168. data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +1 -1
  169. data/lib/klaviyo-api-sdk/models/subscription.rb +15 -15
  170. data/lib/klaviyo-api-sdk/models/subscription_channels.rb +17 -17
  171. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +1 -1
  172. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb +19 -19
  173. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb +23 -23
  174. data/lib/klaviyo-api-sdk/models/suppression.rb +1 -1
  175. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +1 -1
  176. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb +19 -19
  177. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes.rb +1 -1
  178. data/lib/klaviyo-api-sdk/models/tag_campaign_op.rb +1 -1
  179. data/lib/klaviyo-api-sdk/models/tag_campaign_op_data_inner.rb +1 -1
  180. data/lib/klaviyo-api-sdk/models/tag_create_query.rb +1 -1
  181. data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object.rb +19 -19
  182. data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_attributes.rb +15 -15
  183. data/lib/klaviyo-api-sdk/models/tag_enum.rb +1 -1
  184. data/lib/klaviyo-api-sdk/models/tag_flow_op.rb +1 -1
  185. data/lib/klaviyo-api-sdk/models/tag_flow_op_data_inner.rb +1 -1
  186. data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +1 -1
  187. data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb +19 -19
  188. data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object_attributes.rb +14 -14
  189. data/lib/klaviyo-api-sdk/models/tag_group_enum.rb +1 -1
  190. data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +1 -1
  191. data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb +19 -19
  192. data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object_attributes.rb +14 -14
  193. data/lib/klaviyo-api-sdk/models/tag_list_op.rb +1 -1
  194. data/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb +1 -1
  195. data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +1 -1
  196. data/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb +1 -1
  197. data/lib/klaviyo-api-sdk/models/tag_update_query.rb +1 -1
  198. data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb +19 -19
  199. data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object_attributes.rb +1 -1
  200. data/lib/klaviyo-api-sdk/models/template_clone_query.rb +1 -1
  201. data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb +19 -19
  202. data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object_attributes.rb +17 -17
  203. data/lib/klaviyo-api-sdk/models/template_create_query.rb +1 -1
  204. data/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb +19 -19
  205. data/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb +32 -32
  206. data/lib/klaviyo-api-sdk/models/template_enum.rb +1 -1
  207. data/lib/klaviyo-api-sdk/models/template_render_query.rb +1 -1
  208. data/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb +19 -19
  209. data/lib/klaviyo-api-sdk/models/template_render_query_resource_object_attributes.rb +17 -17
  210. data/lib/klaviyo-api-sdk/models/template_update_query.rb +1 -1
  211. data/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb +19 -19
  212. data/lib/klaviyo-api-sdk/models/template_update_query_resource_object_attributes.rb +16 -16
  213. data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +20 -20
  214. data/lib/klaviyo-api-sdk/models/tracking_options_sub_object.rb +15 -15
  215. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query.rb +1 -1
  216. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_resource_object.rb +19 -19
  217. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_resource_object_attributes.rb +18 -18
  218. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query.rb +1 -1
  219. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_resource_object.rb +19 -19
  220. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_resource_object_attributes.rb +1 -1
  221. data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +1 -1
  222. data/lib/klaviyo-api-sdk/version.rb +1 -1
  223. data/lib/klaviyo-api-sdk.rb +10 -46
  224. metadata +16 -558
  225. data/Gemfile +0 -9
  226. data/Rakefile +0 -10
  227. data/docs/AudiencesSubObject.md +0 -20
  228. data/docs/CampaignCloneQuery.md +0 -18
  229. data/docs/CampaignCloneQueryResourceObject.md +0 -20
  230. data/docs/CampaignCloneQueryResourceObjectAttributes.md +0 -20
  231. data/docs/CampaignCreateQuery.md +0 -18
  232. data/docs/CampaignCreateQueryResourceObject.md +0 -20
  233. data/docs/CampaignCreateQueryResourceObjectAttributes.md +0 -28
  234. data/docs/CampaignEnum.md +0 -15
  235. data/docs/CampaignMessageAssignTemplateQuery.md +0 -18
  236. data/docs/CampaignMessageAssignTemplateQueryResourceObject.md +0 -20
  237. data/docs/CampaignMessageAssignTemplateQueryResourceObjectAttributes.md +0 -20
  238. data/docs/CampaignMessageEnum.md +0 -15
  239. data/docs/CampaignMessagePartialUpdateQuery.md +0 -18
  240. data/docs/CampaignMessagePartialUpdateQueryResourceObject.md +0 -22
  241. data/docs/CampaignMessagePartialUpdateQueryResourceObjectAttributes.md +0 -20
  242. data/docs/CampaignPartialUpdateQuery.md +0 -18
  243. data/docs/CampaignPartialUpdateQueryResourceObject.md +0 -22
  244. data/docs/CampaignPartialUpdateQueryResourceObjectAttributes.md +0 -26
  245. data/docs/CampaignRecipientEstimationEnum.md +0 -15
  246. data/docs/CampaignRecipientEstimationJobCreateQuery.md +0 -18
  247. data/docs/CampaignRecipientEstimationJobCreateQueryResourceObject.md +0 -20
  248. data/docs/CampaignRecipientEstimationJobCreateQueryResourceObjectAttributes.md +0 -18
  249. data/docs/CampaignRecipientEstimationJobEnum.md +0 -15
  250. data/docs/CampaignSendJobCreateQuery.md +0 -18
  251. data/docs/CampaignSendJobCreateQueryResourceObject.md +0 -20
  252. data/docs/CampaignSendJobCreateQueryResourceObjectAttributes.md +0 -18
  253. data/docs/CampaignSendJobEnum.md +0 -15
  254. data/docs/CampaignSendJobPartialUpdateQuery.md +0 -18
  255. data/docs/CampaignSendJobPartialUpdateQueryResourceObject.md +0 -22
  256. data/docs/CampaignSendJobPartialUpdateQueryResourceObjectAttributes.md +0 -18
  257. data/docs/CampaignsApi.md +0 -1275
  258. data/docs/CatalogCategoryBulkCreateJobEnum.md +0 -15
  259. data/docs/CatalogCategoryBulkDeleteJobEnum.md +0 -15
  260. data/docs/CatalogCategoryBulkUpdateJobEnum.md +0 -15
  261. data/docs/CatalogCategoryCreateJobCreateQuery.md +0 -18
  262. data/docs/CatalogCategoryCreateJobCreateQueryResourceObject.md +0 -20
  263. data/docs/CatalogCategoryCreateJobCreateQueryResourceObjectAttributes.md +0 -18
  264. data/docs/CatalogCategoryCreateQuery.md +0 -18
  265. data/docs/CatalogCategoryCreateQueryResourceObject.md +0 -22
  266. data/docs/CatalogCategoryCreateQueryResourceObjectAttributes.md +0 -24
  267. data/docs/CatalogCategoryDeleteJobCreateQuery.md +0 -18
  268. data/docs/CatalogCategoryDeleteJobCreateQueryResourceObject.md +0 -20
  269. data/docs/CatalogCategoryDeleteJobCreateQueryResourceObjectAttributes.md +0 -18
  270. data/docs/CatalogCategoryDeleteQueryResourceObject.md +0 -20
  271. data/docs/CatalogCategoryEnum.md +0 -15
  272. data/docs/CatalogCategoryItemOp.md +0 -18
  273. data/docs/CatalogCategoryUpdateJobCreateQuery.md +0 -18
  274. data/docs/CatalogCategoryUpdateJobCreateQueryResourceObject.md +0 -20
  275. data/docs/CatalogCategoryUpdateJobCreateQueryResourceObjectAttributes.md +0 -18
  276. data/docs/CatalogCategoryUpdateQuery.md +0 -18
  277. data/docs/CatalogCategoryUpdateQueryResourceObject.md +0 -24
  278. data/docs/CatalogCategoryUpdateQueryResourceObjectAttributes.md +0 -18
  279. data/docs/CatalogItemBulkCreateJobEnum.md +0 -15
  280. data/docs/CatalogItemBulkDeleteJobEnum.md +0 -15
  281. data/docs/CatalogItemBulkUpdateJobEnum.md +0 -15
  282. data/docs/CatalogItemCategoryOp.md +0 -18
  283. data/docs/CatalogItemCreateJobCreateQuery.md +0 -18
  284. data/docs/CatalogItemCreateJobCreateQueryResourceObject.md +0 -20
  285. data/docs/CatalogItemCreateJobCreateQueryResourceObjectAttributes.md +0 -18
  286. data/docs/CatalogItemCreateQuery.md +0 -18
  287. data/docs/CatalogItemCreateQueryResourceObject.md +0 -22
  288. data/docs/CatalogItemCreateQueryResourceObjectAttributes.md +0 -40
  289. data/docs/CatalogItemCreateQueryResourceObjectRelationships.md +0 -18
  290. data/docs/CatalogItemCreateQueryResourceObjectRelationshipsCategories.md +0 -18
  291. data/docs/CatalogItemCreateQueryResourceObjectRelationshipsCategoriesDataInner.md +0 -20
  292. data/docs/CatalogItemDeleteJobCreateQuery.md +0 -18
  293. data/docs/CatalogItemDeleteJobCreateQueryResourceObject.md +0 -20
  294. data/docs/CatalogItemDeleteJobCreateQueryResourceObjectAttributes.md +0 -18
  295. data/docs/CatalogItemDeleteQueryResourceObject.md +0 -20
  296. data/docs/CatalogItemEnum.md +0 -15
  297. data/docs/CatalogItemUpdateJobCreateQuery.md +0 -18
  298. data/docs/CatalogItemUpdateJobCreateQueryResourceObject.md +0 -20
  299. data/docs/CatalogItemUpdateJobCreateQueryResourceObjectAttributes.md +0 -18
  300. data/docs/CatalogItemUpdateQuery.md +0 -18
  301. data/docs/CatalogItemUpdateQueryResourceObject.md +0 -24
  302. data/docs/CatalogItemUpdateQueryResourceObjectAttributes.md +0 -34
  303. data/docs/CatalogJobErrorPayload.md +0 -26
  304. data/docs/CatalogVariantBulkCreateJobEnum.md +0 -15
  305. data/docs/CatalogVariantBulkDeleteJobEnum.md +0 -15
  306. data/docs/CatalogVariantBulkUpdateJobEnum.md +0 -15
  307. data/docs/CatalogVariantCreateJobCreateQuery.md +0 -18
  308. data/docs/CatalogVariantCreateJobCreateQueryResourceObject.md +0 -20
  309. data/docs/CatalogVariantCreateJobCreateQueryResourceObjectAttributes.md +0 -18
  310. data/docs/CatalogVariantCreateQuery.md +0 -18
  311. data/docs/CatalogVariantCreateQueryResourceObject.md +0 -22
  312. data/docs/CatalogVariantCreateQueryResourceObjectAttributes.md +0 -46
  313. data/docs/CatalogVariantCreateQueryResourceObjectRelationships.md +0 -18
  314. data/docs/CatalogVariantCreateQueryResourceObjectRelationshipsItems.md +0 -18
  315. data/docs/CatalogVariantCreateQueryResourceObjectRelationshipsItemsDataInner.md +0 -20
  316. data/docs/CatalogVariantDeleteJobCreateQuery.md +0 -18
  317. data/docs/CatalogVariantDeleteJobCreateQueryResourceObject.md +0 -20
  318. data/docs/CatalogVariantDeleteJobCreateQueryResourceObjectAttributes.md +0 -18
  319. data/docs/CatalogVariantDeleteQueryResourceObject.md +0 -20
  320. data/docs/CatalogVariantEnum.md +0 -15
  321. data/docs/CatalogVariantUpdateJobCreateQuery.md +0 -18
  322. data/docs/CatalogVariantUpdateJobCreateQueryResourceObject.md +0 -20
  323. data/docs/CatalogVariantUpdateJobCreateQueryResourceObjectAttributes.md +0 -18
  324. data/docs/CatalogVariantUpdateQuery.md +0 -18
  325. data/docs/CatalogVariantUpdateQueryResourceObject.md +0 -22
  326. data/docs/CatalogVariantUpdateQueryResourceObjectAttributes.md +0 -40
  327. data/docs/CatalogsApi.md +0 -4032
  328. data/docs/ClientApi.md +0 -205
  329. data/docs/CollectionLinks.md +0 -26
  330. data/docs/ContentSubObject.md +0 -28
  331. data/docs/DataPrivacyApi.md +0 -78
  332. data/docs/DataPrivacyCreateDeletionJobQuery.md +0 -18
  333. data/docs/DataPrivacyCreateDeletionJobQueryResourceObject.md +0 -20
  334. data/docs/DataPrivacyCreateDeletionJobQueryResourceObjectAttributes.md +0 -22
  335. data/docs/DataPrivacyDeletionJobEnum.md +0 -15
  336. data/docs/EmailChannel.md +0 -18
  337. data/docs/EmailMarketing.md +0 -32
  338. data/docs/EmailMarketingListSuppression.md +0 -22
  339. data/docs/EmailMarketingSuppression.md +0 -20
  340. data/docs/EmailMessageContent.md +0 -24
  341. data/docs/EmailTrackingOptions.md +0 -24
  342. data/docs/ErrorSource.md +0 -18
  343. data/docs/EventCreateQuery.md +0 -18
  344. data/docs/EventCreateQueryResourceObject.md +0 -20
  345. data/docs/EventCreateQueryResourceObjectAttributes.md +0 -28
  346. data/docs/EventEnum.md +0 -15
  347. data/docs/EventsApi.md +0 -544
  348. data/docs/FlowActionEnum.md +0 -15
  349. data/docs/FlowEnum.md +0 -15
  350. data/docs/FlowMessageEnum.md +0 -15
  351. data/docs/FlowUpdateQuery.md +0 -18
  352. data/docs/FlowUpdateQueryResourceObject.md +0 -22
  353. data/docs/FlowUpdateQueryResourceObjectAttributes.md +0 -18
  354. data/docs/FlowsApi.md +0 -1173
  355. data/docs/GetCampaigns4XXResponse.md +0 -18
  356. data/docs/GetCampaigns4XXResponseErrorsInner.md +0 -26
  357. data/docs/GetCampaigns4XXResponseErrorsInnerSource.md +0 -20
  358. data/docs/ListCreateQuery.md +0 -18
  359. data/docs/ListCreateQueryResourceObject.md +0 -20
  360. data/docs/ListCreateQueryResourceObjectAttributes.md +0 -18
  361. data/docs/ListEnum.md +0 -15
  362. data/docs/ListMembersAddQuery.md +0 -18
  363. data/docs/ListMembersAddQueryDataInner.md +0 -20
  364. data/docs/ListMembersDeleteQuery.md +0 -18
  365. data/docs/ListPartialUpdateQuery.md +0 -18
  366. data/docs/ListPartialUpdateQueryResourceObject.md +0 -22
  367. data/docs/ListsApi.md +0 -832
  368. data/docs/MetricAggregateEnum.md +0 -15
  369. data/docs/MetricAggregateQuery.md +0 -18
  370. data/docs/MetricAggregateQueryResourceObject.md +0 -20
  371. data/docs/MetricAggregateQueryResourceObjectAttributes.md +0 -36
  372. data/docs/MetricAggregateRowDTO.md +0 -20
  373. data/docs/MetricCreateQuery.md +0 -20
  374. data/docs/MetricEnum.md +0 -15
  375. data/docs/MetricsApi.md +0 -233
  376. data/docs/ObjectLinks.md +0 -18
  377. data/docs/OnsiteProfileCreateQuery.md +0 -18
  378. data/docs/OnsiteProfileCreateQueryResourceObject.md +0 -22
  379. data/docs/OnsiteProfileCreateQueryResourceObjectAttributes.md +0 -38
  380. data/docs/OnsiteProfileMeta.md +0 -18
  381. data/docs/OnsiteProfileMetaIdentifiers.md +0 -28
  382. data/docs/OnsiteSubscriptionCreateQuery.md +0 -18
  383. data/docs/OnsiteSubscriptionCreateQueryResourceObject.md +0 -20
  384. data/docs/OnsiteSubscriptionCreateQueryResourceObjectAttributes.md +0 -26
  385. data/docs/PredictiveAnalytics.md +0 -34
  386. data/docs/ProfileAggregateEnum.md +0 -15
  387. data/docs/ProfileCreateQuery.md +0 -18
  388. data/docs/ProfileCreateQueryResourceObject.md +0 -20
  389. data/docs/ProfileCreateQueryResourceObjectAttributes.md +0 -36
  390. data/docs/ProfileEnum.md +0 -15
  391. data/docs/ProfileLocation.md +0 -34
  392. data/docs/ProfileLocationLatitude.md +0 -49
  393. data/docs/ProfileLocationLongitude.md +0 -49
  394. data/docs/ProfilePartialUpdateQuery.md +0 -18
  395. data/docs/ProfilePartialUpdateQueryResourceObject.md +0 -22
  396. data/docs/ProfileSubscriptionBulkCreateJobEnum.md +0 -15
  397. data/docs/ProfileSuppressionBulkCreateJobEnum.md +0 -15
  398. data/docs/ProfileUnsubscriptionBulkCreateJobEnum.md +0 -15
  399. data/docs/ProfileUnsuppressionBulkCreateJobEnum.md +0 -15
  400. data/docs/ProfilesApi.md +0 -909
  401. data/docs/SMSChannel.md +0 -18
  402. data/docs/SMSMarketing.md +0 -24
  403. data/docs/SMSMessageContent.md +0 -20
  404. data/docs/SMSRenderOptions.md +0 -24
  405. data/docs/SMSTrackingOptions.md +0 -20
  406. data/docs/STOScheduleOptions.md +0 -18
  407. data/docs/SegmentEnum.md +0 -15
  408. data/docs/SegmentPartialUpdateQuery.md +0 -18
  409. data/docs/SegmentPartialUpdateQueryResourceObject.md +0 -22
  410. data/docs/SegmentPartialUpdateQueryResourceObjectAttributes.md +0 -18
  411. data/docs/SegmentsApi.md +0 -543
  412. data/docs/SendOptions.md +0 -20
  413. data/docs/SendOptionsSubObject.md +0 -18
  414. data/docs/SendStrategySubObject.md +0 -24
  415. data/docs/SendTimeSubObject.md +0 -20
  416. data/docs/StaticScheduleOptions.md +0 -22
  417. data/docs/Subscription.md +0 -24
  418. data/docs/SubscriptionChannels.md +0 -20
  419. data/docs/SubscriptionCreateJobCreateQuery.md +0 -18
  420. data/docs/SubscriptionCreateJobCreateQueryResourceObject.md +0 -20
  421. data/docs/SubscriptionCreateJobCreateQueryResourceObjectAttributes.md +0 -22
  422. data/docs/SubscriptionEnum.md +0 -15
  423. data/docs/Subscriptions.md +0 -20
  424. data/docs/Suppression.md +0 -18
  425. data/docs/SuppressionCreateJobCreateQuery.md +0 -18
  426. data/docs/SuppressionCreateJobCreateQueryResourceObject.md +0 -20
  427. data/docs/SuppressionCreateJobCreateQueryResourceObjectAttributes.md +0 -18
  428. data/docs/TagCampaignOp.md +0 -18
  429. data/docs/TagCampaignOpDataInner.md +0 -20
  430. data/docs/TagCreateQuery.md +0 -18
  431. data/docs/TagCreateQueryResourceObject.md +0 -20
  432. data/docs/TagCreateQueryResourceObjectAttributes.md +0 -20
  433. data/docs/TagEnum.md +0 -15
  434. data/docs/TagFlowOp.md +0 -18
  435. data/docs/TagFlowOpDataInner.md +0 -20
  436. data/docs/TagGroupCreateQuery.md +0 -18
  437. data/docs/TagGroupCreateQueryResourceObject.md +0 -20
  438. data/docs/TagGroupCreateQueryResourceObjectAttributes.md +0 -20
  439. data/docs/TagGroupEnum.md +0 -15
  440. data/docs/TagGroupUpdateQuery.md +0 -18
  441. data/docs/TagGroupUpdateQueryResourceObject.md +0 -22
  442. data/docs/TagGroupUpdateQueryResourceObjectAttributes.md +0 -20
  443. data/docs/TagListOp.md +0 -18
  444. data/docs/TagListOpDataInner.md +0 -20
  445. data/docs/TagSegmentOp.md +0 -18
  446. data/docs/TagSegmentOpDataInner.md +0 -20
  447. data/docs/TagUpdateQuery.md +0 -18
  448. data/docs/TagUpdateQueryResourceObject.md +0 -22
  449. data/docs/TagUpdateQueryResourceObjectAttributes.md +0 -18
  450. data/docs/TagsApi.md +0 -1923
  451. data/docs/TemplateCloneQuery.md +0 -18
  452. data/docs/TemplateCloneQueryResourceObject.md +0 -20
  453. data/docs/TemplateCloneQueryResourceObjectAttributes.md +0 -22
  454. data/docs/TemplateCreateQuery.md +0 -18
  455. data/docs/TemplateCreateQueryResourceObject.md +0 -20
  456. data/docs/TemplateCreateQueryResourceObjectAttributes.md +0 -32
  457. data/docs/TemplateEnum.md +0 -15
  458. data/docs/TemplateRenderQuery.md +0 -18
  459. data/docs/TemplateRenderQueryResourceObject.md +0 -20
  460. data/docs/TemplateRenderQueryResourceObjectAttributes.md +0 -22
  461. data/docs/TemplateUpdateQuery.md +0 -18
  462. data/docs/TemplateUpdateQueryResourceObject.md +0 -22
  463. data/docs/TemplateUpdateQueryResourceObjectAttributes.md +0 -30
  464. data/docs/TemplatesApi.md +0 -525
  465. data/docs/TestApiAnalyticsSampleEnum.md +0 -15
  466. data/docs/TestListEnum.md +0 -15
  467. data/docs/ThrottledScheduleOptions.md +0 -20
  468. data/docs/TrackingOptionsSubObject.md +0 -24
  469. data/docs/UTMParamsSubObject.md +0 -20
  470. data/docs/UnsubscriptionCreateJobCreateQuery.md +0 -18
  471. data/docs/UnsubscriptionCreateJobCreateQueryResourceObject.md +0 -20
  472. data/docs/UnsubscriptionCreateJobCreateQueryResourceObjectAttributes.md +0 -22
  473. data/docs/UnsuppressionCreateJobCreateQuery.md +0 -18
  474. data/docs/UnsuppressionCreateJobCreateQueryResourceObject.md +0 -20
  475. data/docs/UnsuppressionCreateJobCreateQueryResourceObjectAttributes.md +0 -18
  476. data/docs/UtmParamInfo.md +0 -20
  477. data/git_push.sh +0 -57
  478. data/lib/klaviyo-api-sdk/api/client_api.rb +0 -249
  479. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_enum.rb +0 -36
  480. data/lib/klaviyo-api-sdk/models/catalog_job_error_payload.rb +0 -284
  481. data/lib/klaviyo-api-sdk/models/collection_links.rb +0 -260
  482. data/lib/klaviyo-api-sdk/models/email_channel.rb +0 -219
  483. data/lib/klaviyo-api-sdk/models/email_marketing.rb +0 -298
  484. data/lib/klaviyo-api-sdk/models/email_marketing_list_suppression.rb +0 -255
  485. data/lib/klaviyo-api-sdk/models/email_marketing_suppression.rb +0 -240
  486. data/lib/klaviyo-api-sdk/models/email_message_content.rb +0 -266
  487. data/lib/klaviyo-api-sdk/models/email_tracking_options.rb +0 -268
  488. data/lib/klaviyo-api-sdk/models/error_source.rb +0 -227
  489. data/lib/klaviyo-api-sdk/models/flow_action_enum.rb +0 -36
  490. data/lib/klaviyo-api-sdk/models/flow_message_enum.rb +0 -36
  491. data/lib/klaviyo-api-sdk/models/metric_aggregate_row_dto.rb +0 -242
  492. data/lib/klaviyo-api-sdk/models/metric_enum.rb +0 -36
  493. data/lib/klaviyo-api-sdk/models/object_links.rb +0 -224
  494. data/lib/klaviyo-api-sdk/models/onsite_profile_create_query.rb +0 -224
  495. data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object.rb +0 -247
  496. data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +0 -224
  497. data/lib/klaviyo-api-sdk/models/onsite_profile_meta_identifiers.rb +0 -269
  498. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query.rb +0 -224
  499. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_resource_object.rb +0 -238
  500. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_resource_object_attributes.rb +0 -265
  501. data/lib/klaviyo-api-sdk/models/predictive_analytics.rb +0 -300
  502. data/lib/klaviyo-api-sdk/models/profile_aggregate_enum.rb +0 -36
  503. data/lib/klaviyo-api-sdk/models/send_options.rb +0 -238
  504. data/lib/klaviyo-api-sdk/models/send_time_sub_object.rb +0 -240
  505. data/lib/klaviyo-api-sdk/models/sms_channel.rb +0 -219
  506. data/lib/klaviyo-api-sdk/models/sms_marketing.rb +0 -270
  507. data/lib/klaviyo-api-sdk/models/sms_message_content.rb +0 -238
  508. data/lib/klaviyo-api-sdk/models/sms_render_options.rb +0 -266
  509. data/lib/klaviyo-api-sdk/models/sms_tracking_options.rb +0 -240
  510. data/lib/klaviyo-api-sdk/models/subscription_enum.rb +0 -36
  511. data/lib/klaviyo-api-sdk/models/subscriptions.rb +0 -228
  512. data/lib/klaviyo-api-sdk/models/test_api_analytics_sample_enum.rb +0 -36
  513. data/lib/klaviyo-api-sdk/models/test_list_enum.rb +0 -36
  514. data/lib/klaviyo-api-sdk/models/utm_param_info.rb +0 -238
  515. data/spec/api/campaigns_api_spec.rb +0 -255
  516. data/spec/api/catalogs_api_spec.rb +0 -751
  517. data/spec/api/client_api_spec.rb +0 -74
  518. data/spec/api/data_privacy_api_spec.rb +0 -47
  519. data/spec/api/events_api_spec.rb +0 -132
  520. data/spec/api/flows_api_spec.rb +0 -247
  521. data/spec/api/lists_api_spec.rb +0 -180
  522. data/spec/api/metrics_api_spec.rb +0 -74
  523. data/spec/api/profiles_api_spec.rb +0 -194
  524. data/spec/api/segments_api_spec.rb +0 -130
  525. data/spec/api/tags_api_spec.rb +0 -367
  526. data/spec/api/templates_api_spec.rb +0 -124
  527. data/spec/api_client_spec.rb +0 -226
  528. data/spec/configuration_spec.rb +0 -42
  529. data/spec/models/audiences_sub_object_spec.rb +0 -40
  530. data/spec/models/campaign_clone_query_resource_object_attributes_spec.rb +0 -40
  531. data/spec/models/campaign_clone_query_resource_object_spec.rb +0 -40
  532. data/spec/models/campaign_clone_query_spec.rb +0 -34
  533. data/spec/models/campaign_create_query_resource_object_attributes_spec.rb +0 -64
  534. data/spec/models/campaign_create_query_resource_object_spec.rb +0 -40
  535. data/spec/models/campaign_create_query_spec.rb +0 -34
  536. data/spec/models/campaign_enum_spec.rb +0 -28
  537. data/spec/models/campaign_message_assign_template_query_resource_object_attributes_spec.rb +0 -40
  538. data/spec/models/campaign_message_assign_template_query_resource_object_spec.rb +0 -40
  539. data/spec/models/campaign_message_assign_template_query_spec.rb +0 -34
  540. data/spec/models/campaign_message_enum_spec.rb +0 -28
  541. data/spec/models/campaign_message_partial_update_query_resource_object_attributes_spec.rb +0 -40
  542. data/spec/models/campaign_message_partial_update_query_resource_object_spec.rb +0 -46
  543. data/spec/models/campaign_message_partial_update_query_spec.rb +0 -34
  544. data/spec/models/campaign_partial_update_query_resource_object_attributes_spec.rb +0 -58
  545. data/spec/models/campaign_partial_update_query_resource_object_spec.rb +0 -46
  546. data/spec/models/campaign_partial_update_query_spec.rb +0 -34
  547. data/spec/models/campaign_recipient_estimation_enum_spec.rb +0 -28
  548. data/spec/models/campaign_recipient_estimation_job_create_query_resource_object_attributes_spec.rb +0 -34
  549. data/spec/models/campaign_recipient_estimation_job_create_query_resource_object_spec.rb +0 -40
  550. data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +0 -34
  551. data/spec/models/campaign_recipient_estimation_job_enum_spec.rb +0 -28
  552. data/spec/models/campaign_send_job_create_query_resource_object_attributes_spec.rb +0 -34
  553. data/spec/models/campaign_send_job_create_query_resource_object_spec.rb +0 -40
  554. data/spec/models/campaign_send_job_create_query_spec.rb +0 -34
  555. data/spec/models/campaign_send_job_enum_spec.rb +0 -28
  556. data/spec/models/campaign_send_job_partial_update_query_resource_object_attributes_spec.rb +0 -34
  557. data/spec/models/campaign_send_job_partial_update_query_resource_object_spec.rb +0 -46
  558. data/spec/models/campaign_send_job_partial_update_query_spec.rb +0 -34
  559. data/spec/models/catalog_category_bulk_create_job_enum_spec.rb +0 -28
  560. data/spec/models/catalog_category_bulk_delete_job_enum_spec.rb +0 -28
  561. data/spec/models/catalog_category_bulk_update_job_enum_spec.rb +0 -28
  562. data/spec/models/catalog_category_create_job_create_query_resource_object_attributes_spec.rb +0 -34
  563. data/spec/models/catalog_category_create_job_create_query_resource_object_spec.rb +0 -40
  564. data/spec/models/catalog_category_create_job_create_query_spec.rb +0 -34
  565. data/spec/models/catalog_category_create_query_resource_object_attributes_spec.rb +0 -56
  566. data/spec/models/catalog_category_create_query_resource_object_spec.rb +0 -46
  567. data/spec/models/catalog_category_create_query_spec.rb +0 -34
  568. data/spec/models/catalog_category_delete_job_create_query_resource_object_attributes_spec.rb +0 -34
  569. data/spec/models/catalog_category_delete_job_create_query_resource_object_spec.rb +0 -40
  570. data/spec/models/catalog_category_delete_job_create_query_spec.rb +0 -34
  571. data/spec/models/catalog_category_delete_query_resource_object_spec.rb +0 -40
  572. data/spec/models/catalog_category_enum_spec.rb +0 -28
  573. data/spec/models/catalog_category_item_op_spec.rb +0 -34
  574. data/spec/models/catalog_category_update_job_create_query_resource_object_attributes_spec.rb +0 -34
  575. data/spec/models/catalog_category_update_job_create_query_resource_object_spec.rb +0 -40
  576. data/spec/models/catalog_category_update_job_create_query_spec.rb +0 -34
  577. data/spec/models/catalog_category_update_query_resource_object_attributes_spec.rb +0 -34
  578. data/spec/models/catalog_category_update_query_resource_object_spec.rb +0 -52
  579. data/spec/models/catalog_category_update_query_spec.rb +0 -34
  580. data/spec/models/catalog_item_bulk_create_job_enum_spec.rb +0 -28
  581. data/spec/models/catalog_item_bulk_delete_job_enum_spec.rb +0 -28
  582. data/spec/models/catalog_item_bulk_update_job_enum_spec.rb +0 -28
  583. data/spec/models/catalog_item_category_op_spec.rb +0 -34
  584. data/spec/models/catalog_item_create_job_create_query_resource_object_attributes_spec.rb +0 -34
  585. data/spec/models/catalog_item_create_job_create_query_resource_object_spec.rb +0 -40
  586. data/spec/models/catalog_item_create_job_create_query_spec.rb +0 -34
  587. data/spec/models/catalog_item_create_query_resource_object_attributes_spec.rb +0 -104
  588. data/spec/models/catalog_item_create_query_resource_object_relationships_categories_data_inner_spec.rb +0 -44
  589. data/spec/models/catalog_item_create_query_resource_object_relationships_categories_spec.rb +0 -34
  590. data/spec/models/catalog_item_create_query_resource_object_relationships_spec.rb +0 -34
  591. data/spec/models/catalog_item_create_query_resource_object_spec.rb +0 -46
  592. data/spec/models/catalog_item_create_query_spec.rb +0 -34
  593. data/spec/models/catalog_item_delete_job_create_query_resource_object_attributes_spec.rb +0 -34
  594. data/spec/models/catalog_item_delete_job_create_query_resource_object_spec.rb +0 -40
  595. data/spec/models/catalog_item_delete_job_create_query_spec.rb +0 -34
  596. data/spec/models/catalog_item_delete_query_resource_object_spec.rb +0 -40
  597. data/spec/models/catalog_item_enum_spec.rb +0 -28
  598. data/spec/models/catalog_item_update_job_create_query_resource_object_attributes_spec.rb +0 -34
  599. data/spec/models/catalog_item_update_job_create_query_resource_object_spec.rb +0 -40
  600. data/spec/models/catalog_item_update_job_create_query_spec.rb +0 -34
  601. data/spec/models/catalog_item_update_query_resource_object_attributes_spec.rb +0 -82
  602. data/spec/models/catalog_item_update_query_resource_object_spec.rb +0 -52
  603. data/spec/models/catalog_item_update_query_spec.rb +0 -34
  604. data/spec/models/catalog_job_error_payload_spec.rb +0 -58
  605. data/spec/models/catalog_variant_bulk_create_job_enum_spec.rb +0 -28
  606. data/spec/models/catalog_variant_bulk_delete_job_enum_spec.rb +0 -28
  607. data/spec/models/catalog_variant_bulk_update_job_enum_spec.rb +0 -28
  608. data/spec/models/catalog_variant_create_job_create_query_resource_object_attributes_spec.rb +0 -34
  609. data/spec/models/catalog_variant_create_job_create_query_resource_object_spec.rb +0 -40
  610. data/spec/models/catalog_variant_create_job_create_query_spec.rb +0 -34
  611. data/spec/models/catalog_variant_create_query_resource_object_attributes_spec.rb +0 -126
  612. data/spec/models/catalog_variant_create_query_resource_object_relationships_items_data_inner_spec.rb +0 -44
  613. data/spec/models/catalog_variant_create_query_resource_object_relationships_items_spec.rb +0 -34
  614. data/spec/models/catalog_variant_create_query_resource_object_relationships_spec.rb +0 -34
  615. data/spec/models/catalog_variant_create_query_resource_object_spec.rb +0 -46
  616. data/spec/models/catalog_variant_create_query_spec.rb +0 -34
  617. data/spec/models/catalog_variant_delete_job_create_query_resource_object_attributes_spec.rb +0 -34
  618. data/spec/models/catalog_variant_delete_job_create_query_resource_object_spec.rb +0 -40
  619. data/spec/models/catalog_variant_delete_job_create_query_spec.rb +0 -34
  620. data/spec/models/catalog_variant_delete_query_resource_object_spec.rb +0 -40
  621. data/spec/models/catalog_variant_enum_spec.rb +0 -28
  622. data/spec/models/catalog_variant_update_job_create_query_resource_object_attributes_spec.rb +0 -34
  623. data/spec/models/catalog_variant_update_job_create_query_resource_object_spec.rb +0 -40
  624. data/spec/models/catalog_variant_update_job_create_query_spec.rb +0 -34
  625. data/spec/models/catalog_variant_update_query_resource_object_attributes_spec.rb +0 -104
  626. data/spec/models/catalog_variant_update_query_resource_object_spec.rb +0 -46
  627. data/spec/models/catalog_variant_update_query_spec.rb +0 -34
  628. data/spec/models/collection_links_spec.rb +0 -58
  629. data/spec/models/content_sub_object_spec.rb +0 -64
  630. data/spec/models/data_privacy_create_deletion_job_query_resource_object_attributes_spec.rb +0 -46
  631. data/spec/models/data_privacy_create_deletion_job_query_resource_object_spec.rb +0 -40
  632. data/spec/models/data_privacy_create_deletion_job_query_spec.rb +0 -34
  633. data/spec/models/data_privacy_deletion_job_enum_spec.rb +0 -28
  634. data/spec/models/email_channel_spec.rb +0 -34
  635. data/spec/models/email_marketing_list_suppression_spec.rb +0 -46
  636. data/spec/models/email_marketing_spec.rb +0 -76
  637. data/spec/models/email_marketing_suppression_spec.rb +0 -40
  638. data/spec/models/email_message_content_spec.rb +0 -52
  639. data/spec/models/email_tracking_options_spec.rb +0 -52
  640. data/spec/models/error_source_spec.rb +0 -34
  641. data/spec/models/event_create_query_resource_object_attributes_spec.rb +0 -64
  642. data/spec/models/event_create_query_resource_object_spec.rb +0 -40
  643. data/spec/models/event_create_query_spec.rb +0 -34
  644. data/spec/models/event_enum_spec.rb +0 -28
  645. data/spec/models/flow_action_enum_spec.rb +0 -28
  646. data/spec/models/flow_enum_spec.rb +0 -28
  647. data/spec/models/flow_message_enum_spec.rb +0 -28
  648. data/spec/models/flow_update_query_resource_object_attributes_spec.rb +0 -34
  649. data/spec/models/flow_update_query_resource_object_spec.rb +0 -46
  650. data/spec/models/flow_update_query_spec.rb +0 -34
  651. data/spec/models/get_campaigns4_xx_response_errors_inner_source_spec.rb +0 -40
  652. data/spec/models/get_campaigns4_xx_response_errors_inner_spec.rb +0 -58
  653. data/spec/models/get_campaigns4_xx_response_spec.rb +0 -34
  654. data/spec/models/list_create_query_resource_object_attributes_spec.rb +0 -34
  655. data/spec/models/list_create_query_resource_object_spec.rb +0 -40
  656. data/spec/models/list_create_query_spec.rb +0 -34
  657. data/spec/models/list_enum_spec.rb +0 -28
  658. data/spec/models/list_members_add_query_data_inner_spec.rb +0 -44
  659. data/spec/models/list_members_add_query_spec.rb +0 -34
  660. data/spec/models/list_members_delete_query_spec.rb +0 -34
  661. data/spec/models/list_partial_update_query_resource_object_spec.rb +0 -46
  662. data/spec/models/list_partial_update_query_spec.rb +0 -34
  663. data/spec/models/metric_aggregate_enum_spec.rb +0 -28
  664. data/spec/models/metric_aggregate_query_resource_object_attributes_spec.rb +0 -104
  665. data/spec/models/metric_aggregate_query_resource_object_spec.rb +0 -40
  666. data/spec/models/metric_aggregate_query_spec.rb +0 -34
  667. data/spec/models/metric_aggregate_row_dto_spec.rb +0 -40
  668. data/spec/models/metric_create_query_spec.rb +0 -40
  669. data/spec/models/metric_enum_spec.rb +0 -28
  670. data/spec/models/object_links_spec.rb +0 -34
  671. data/spec/models/onsite_profile_create_query_resource_object_attributes_spec.rb +0 -94
  672. data/spec/models/onsite_profile_create_query_resource_object_spec.rb +0 -46
  673. data/spec/models/onsite_profile_create_query_spec.rb +0 -34
  674. data/spec/models/onsite_profile_meta_identifiers_spec.rb +0 -64
  675. data/spec/models/onsite_profile_meta_spec.rb +0 -34
  676. data/spec/models/onsite_subscription_create_query_resource_object_attributes_spec.rb +0 -58
  677. data/spec/models/onsite_subscription_create_query_resource_object_spec.rb +0 -40
  678. data/spec/models/onsite_subscription_create_query_spec.rb +0 -34
  679. data/spec/models/predictive_analytics_spec.rb +0 -82
  680. data/spec/models/profile_aggregate_enum_spec.rb +0 -28
  681. data/spec/models/profile_create_query_resource_object_attributes_spec.rb +0 -88
  682. data/spec/models/profile_create_query_resource_object_spec.rb +0 -40
  683. data/spec/models/profile_create_query_spec.rb +0 -34
  684. data/spec/models/profile_enum_spec.rb +0 -28
  685. data/spec/models/profile_location_latitude_spec.rb +0 -31
  686. data/spec/models/profile_location_longitude_spec.rb +0 -31
  687. data/spec/models/profile_location_spec.rb +0 -82
  688. data/spec/models/profile_partial_update_query_resource_object_spec.rb +0 -46
  689. data/spec/models/profile_partial_update_query_spec.rb +0 -34
  690. data/spec/models/profile_subscription_bulk_create_job_enum_spec.rb +0 -28
  691. data/spec/models/profile_suppression_bulk_create_job_enum_spec.rb +0 -28
  692. data/spec/models/profile_unsubscription_bulk_create_job_enum_spec.rb +0 -28
  693. data/spec/models/profile_unsuppression_bulk_create_job_enum_spec.rb +0 -28
  694. data/spec/models/segment_enum_spec.rb +0 -28
  695. data/spec/models/segment_partial_update_query_resource_object_attributes_spec.rb +0 -34
  696. data/spec/models/segment_partial_update_query_resource_object_spec.rb +0 -46
  697. data/spec/models/segment_partial_update_query_spec.rb +0 -34
  698. data/spec/models/send_options_spec.rb +0 -40
  699. data/spec/models/send_options_sub_object_spec.rb +0 -34
  700. data/spec/models/send_strategy_sub_object_spec.rb +0 -52
  701. data/spec/models/send_time_sub_object_spec.rb +0 -40
  702. data/spec/models/sms_channel_spec.rb +0 -34
  703. data/spec/models/sms_marketing_spec.rb +0 -52
  704. data/spec/models/sms_message_content_spec.rb +0 -40
  705. data/spec/models/sms_render_options_spec.rb +0 -52
  706. data/spec/models/sms_tracking_options_spec.rb +0 -40
  707. data/spec/models/static_schedule_options_spec.rb +0 -46
  708. data/spec/models/sto_schedule_options_spec.rb +0 -34
  709. data/spec/models/subscription_channels_spec.rb +0 -48
  710. data/spec/models/subscription_create_job_create_query_resource_object_attributes_spec.rb +0 -46
  711. data/spec/models/subscription_create_job_create_query_resource_object_spec.rb +0 -40
  712. data/spec/models/subscription_create_job_create_query_spec.rb +0 -34
  713. data/spec/models/subscription_enum_spec.rb +0 -28
  714. data/spec/models/subscription_spec.rb +0 -52
  715. data/spec/models/subscriptions_spec.rb +0 -40
  716. data/spec/models/suppression_create_job_create_query_resource_object_attributes_spec.rb +0 -34
  717. data/spec/models/suppression_create_job_create_query_resource_object_spec.rb +0 -40
  718. data/spec/models/suppression_create_job_create_query_spec.rb +0 -34
  719. data/spec/models/suppression_spec.rb +0 -34
  720. data/spec/models/tag_campaign_op_data_inner_spec.rb +0 -44
  721. data/spec/models/tag_campaign_op_spec.rb +0 -34
  722. data/spec/models/tag_create_query_resource_object_attributes_spec.rb +0 -40
  723. data/spec/models/tag_create_query_resource_object_spec.rb +0 -40
  724. data/spec/models/tag_create_query_spec.rb +0 -34
  725. data/spec/models/tag_enum_spec.rb +0 -28
  726. data/spec/models/tag_flow_op_data_inner_spec.rb +0 -44
  727. data/spec/models/tag_flow_op_spec.rb +0 -34
  728. data/spec/models/tag_group_create_query_resource_object_attributes_spec.rb +0 -40
  729. data/spec/models/tag_group_create_query_resource_object_spec.rb +0 -40
  730. data/spec/models/tag_group_create_query_spec.rb +0 -34
  731. data/spec/models/tag_group_enum_spec.rb +0 -28
  732. data/spec/models/tag_group_update_query_resource_object_attributes_spec.rb +0 -40
  733. data/spec/models/tag_group_update_query_resource_object_spec.rb +0 -46
  734. data/spec/models/tag_group_update_query_spec.rb +0 -34
  735. data/spec/models/tag_list_op_data_inner_spec.rb +0 -44
  736. data/spec/models/tag_list_op_spec.rb +0 -34
  737. data/spec/models/tag_segment_op_data_inner_spec.rb +0 -44
  738. data/spec/models/tag_segment_op_spec.rb +0 -34
  739. data/spec/models/tag_update_query_resource_object_attributes_spec.rb +0 -34
  740. data/spec/models/tag_update_query_resource_object_spec.rb +0 -46
  741. data/spec/models/tag_update_query_spec.rb +0 -34
  742. data/spec/models/template_clone_query_resource_object_attributes_spec.rb +0 -46
  743. data/spec/models/template_clone_query_resource_object_spec.rb +0 -40
  744. data/spec/models/template_clone_query_spec.rb +0 -34
  745. data/spec/models/template_create_query_resource_object_attributes_spec.rb +0 -58
  746. data/spec/models/template_create_query_resource_object_spec.rb +0 -40
  747. data/spec/models/template_create_query_spec.rb +0 -34
  748. data/spec/models/template_enum_spec.rb +0 -28
  749. data/spec/models/template_render_query_resource_object_attributes_spec.rb +0 -46
  750. data/spec/models/template_render_query_resource_object_spec.rb +0 -40
  751. data/spec/models/template_render_query_spec.rb +0 -34
  752. data/spec/models/template_update_query_resource_object_attributes_spec.rb +0 -52
  753. data/spec/models/template_update_query_resource_object_spec.rb +0 -46
  754. data/spec/models/template_update_query_spec.rb +0 -34
  755. data/spec/models/test_api_analytics_sample_enum_spec.rb +0 -28
  756. data/spec/models/test_list_enum_spec.rb +0 -28
  757. data/spec/models/throttled_schedule_options_spec.rb +0 -40
  758. data/spec/models/tracking_options_sub_object_spec.rb +0 -52
  759. data/spec/models/unsubscription_create_job_create_query_resource_object_attributes_spec.rb +0 -46
  760. data/spec/models/unsubscription_create_job_create_query_resource_object_spec.rb +0 -40
  761. data/spec/models/unsubscription_create_job_create_query_spec.rb +0 -34
  762. data/spec/models/unsuppression_create_job_create_query_resource_object_attributes_spec.rb +0 -34
  763. data/spec/models/unsuppression_create_job_create_query_resource_object_spec.rb +0 -40
  764. data/spec/models/unsuppression_create_job_create_query_spec.rb +0 -34
  765. data/spec/models/utm_param_info_spec.rb +0 -40
  766. data/spec/models/utm_params_sub_object_spec.rb +0 -40
  767. data/spec/spec_helper.rb +0 -111
data/docs/ProfilesApi.md DELETED
@@ -1,909 +0,0 @@
1
- # KlaviyoAPI::ProfilesApi
2
-
3
- All URIs are relative to *https://a.klaviyo.com*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**create_profile**](ProfilesApi.md#create_profile) | **POST** /api/profiles/ | Create Profile |
8
- | [**get_profile**](ProfilesApi.md#get_profile) | **GET** /api/profiles/{id}/ | Get Profile |
9
- | [**get_profile_lists**](ProfilesApi.md#get_profile_lists) | **GET** /api/profiles/{profile_id}/lists/ | Get Profile Lists |
10
- | [**get_profile_relationships_lists**](ProfilesApi.md#get_profile_relationships_lists) | **GET** /api/profiles/{id}/relationships/lists/ | Get Profile Relationships Lists |
11
- | [**get_profile_relationships_segments**](ProfilesApi.md#get_profile_relationships_segments) | **GET** /api/profiles/{id}/relationships/segments/ | Get Profile Relationships Segments |
12
- | [**get_profile_segments**](ProfilesApi.md#get_profile_segments) | **GET** /api/profiles/{profile_id}/segments/ | Get Profile Segments |
13
- | [**get_profiles**](ProfilesApi.md#get_profiles) | **GET** /api/profiles/ | Get Profiles |
14
- | [**subscribe_profiles**](ProfilesApi.md#subscribe_profiles) | **POST** /api/profile-subscription-bulk-create-jobs/ | Subscribe Profiles |
15
- | [**suppress_profiles**](ProfilesApi.md#suppress_profiles) | **POST** /api/profile-suppression-bulk-create-jobs/ | Suppress Profiles |
16
- | [**unsubscribe_profiles**](ProfilesApi.md#unsubscribe_profiles) | **POST** /api/profile-unsubscription-bulk-create-jobs/ | Unsubscribe Profiles |
17
- | [**unsuppress_profiles**](ProfilesApi.md#unsuppress_profiles) | **POST** /api/profile-unsuppression-bulk-create-jobs/ | Unsuppress Profiles |
18
- | [**update_profile**](ProfilesApi.md#update_profile) | **PATCH** /api/profiles/{id}/ | Update Profile |
19
-
20
-
21
- ## create_profile
22
-
23
- > Hash<String, Object> create_profile(profile_create_query, opts)
24
-
25
- Create Profile
26
-
27
- Create a new profile. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Profiles Write`
28
-
29
- ### Examples
30
-
31
- ```ruby
32
- require 'time'
33
- require 'klaviyo-api-sdk'
34
- # setup authorization
35
- KlaviyoAPI.configure do |config|
36
- # Configure API key authorization: Klaviyo-API-Key
37
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
38
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
39
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
40
- end
41
-
42
- api_instance = KlaviyoAPI::ProfilesApi.new
43
- profile_create_query = KlaviyoAPI::ProfileCreateQuery.new({data: KlaviyoAPI::ProfileCreateQueryResourceObject.new({type: KlaviyoAPI::ProfileEnum::PROFILE, attributes: KlaviyoAPI::ProfileCreateQueryResourceObjectAttributes.new})}) # ProfileCreateQuery |
44
- opts = {
45
- additional_fields_profile: ['predictive_analytics'] # Array<String> | Request additional fields not included by default in the response. Supported values: 'predictive_analytics'
46
- }
47
-
48
- begin
49
- # Create Profile
50
- result = api_instance.create_profile(profile_create_query, opts)
51
- p result
52
- rescue KlaviyoAPI::ApiError => e
53
- puts "Error when calling ProfilesApi->create_profile: #{e}"
54
- end
55
- ```
56
-
57
- #### Using the create_profile_with_http_info variant
58
-
59
- This returns an Array which contains the response data, status code and headers.
60
-
61
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> create_profile_with_http_info(profile_create_query, opts)
62
-
63
- ```ruby
64
- begin
65
- # Create Profile
66
- data, status_code, headers = api_instance.create_profile_with_http_info(profile_create_query, opts)
67
- p status_code # => 2xx
68
- p headers # => { ... }
69
- p data # => Hash&lt;String, Object&gt;
70
- rescue KlaviyoAPI::ApiError => e
71
- puts "Error when calling ProfilesApi->create_profile_with_http_info: #{e}"
72
- end
73
- ```
74
-
75
- ### Parameters
76
-
77
- | Name | Type | Description | Notes |
78
- | ---- | ---- | ----------- | ----- |
79
- | **profile_create_query** | [**ProfileCreateQuery**](ProfileCreateQuery.md) | | |
80
- | **additional_fields_profile** | [**Array&lt;String&gt;**](String.md) | Request additional fields not included by default in the response. Supported values: &#39;predictive_analytics&#39; | [optional] |
81
-
82
- ### Return type
83
-
84
- **Hash&lt;String, Object&gt;**
85
-
86
- ### Authorization
87
-
88
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
89
-
90
- ### HTTP request headers
91
-
92
- - **Content-Type**: application/json
93
- - **Accept**: application/json
94
-
95
-
96
- ## get_profile
97
-
98
- > Hash&lt;String, Object&gt; get_profile(id, opts)
99
-
100
- Get Profile
101
-
102
- Get the profile with the given profile ID. Include parameters can be provided to get the following related resource data: `lists` memberships, `segments` memberships\"<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Profiles Read`
103
-
104
- ### Examples
105
-
106
- ```ruby
107
- require 'time'
108
- require 'klaviyo-api-sdk'
109
- # setup authorization
110
- KlaviyoAPI.configure do |config|
111
- # Configure API key authorization: Klaviyo-API-Key
112
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
113
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
114
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
115
- end
116
-
117
- api_instance = KlaviyoAPI::ProfilesApi.new
118
- id = 'id_example' # String |
119
- opts = {
120
- additional_fields_profile: ['predictive_analytics'], # Array<String> | Request additional fields not included by default in the response. Supported values: 'predictive_analytics'
121
- fields_list: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
122
- fields_profile: ['email'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
123
- fields_segment: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
124
- include: ['lists'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
125
- }
126
-
127
- begin
128
- # Get Profile
129
- result = api_instance.get_profile(id, opts)
130
- p result
131
- rescue KlaviyoAPI::ApiError => e
132
- puts "Error when calling ProfilesApi->get_profile: #{e}"
133
- end
134
- ```
135
-
136
- #### Using the get_profile_with_http_info variant
137
-
138
- This returns an Array which contains the response data, status code and headers.
139
-
140
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_with_http_info(id, opts)
141
-
142
- ```ruby
143
- begin
144
- # Get Profile
145
- data, status_code, headers = api_instance.get_profile_with_http_info(id, opts)
146
- p status_code # => 2xx
147
- p headers # => { ... }
148
- p data # => Hash&lt;String, Object&gt;
149
- rescue KlaviyoAPI::ApiError => e
150
- puts "Error when calling ProfilesApi->get_profile_with_http_info: #{e}"
151
- end
152
- ```
153
-
154
- ### Parameters
155
-
156
- | Name | Type | Description | Notes |
157
- | ---- | ---- | ----------- | ----- |
158
- | **id** | **String** | | |
159
- | **additional_fields_profile** | [**Array&lt;String&gt;**](String.md) | Request additional fields not included by default in the response. Supported values: &#39;predictive_analytics&#39; | [optional] |
160
- | **fields_list** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
161
- | **fields_profile** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
162
- | **fields_segment** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
163
- | **include** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships | [optional] |
164
-
165
- ### Return type
166
-
167
- **Hash&lt;String, Object&gt;**
168
-
169
- ### Authorization
170
-
171
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
172
-
173
- ### HTTP request headers
174
-
175
- - **Content-Type**: Not defined
176
- - **Accept**: application/json
177
-
178
-
179
- ## get_profile_lists
180
-
181
- > Hash&lt;String, Object&gt; get_profile_lists(profile_id, opts)
182
-
183
- Get Profile Lists
184
-
185
- Get list memberships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `List Read` `Profiles Read`
186
-
187
- ### Examples
188
-
189
- ```ruby
190
- require 'time'
191
- require 'klaviyo-api-sdk'
192
- # setup authorization
193
- KlaviyoAPI.configure do |config|
194
- # Configure API key authorization: Klaviyo-API-Key
195
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
196
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
197
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
198
- end
199
-
200
- api_instance = KlaviyoAPI::ProfilesApi.new
201
- profile_id = 'profile_id_example' # String |
202
- opts = {
203
- fields_list: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
204
- }
205
-
206
- begin
207
- # Get Profile Lists
208
- result = api_instance.get_profile_lists(profile_id, opts)
209
- p result
210
- rescue KlaviyoAPI::ApiError => e
211
- puts "Error when calling ProfilesApi->get_profile_lists: #{e}"
212
- end
213
- ```
214
-
215
- #### Using the get_profile_lists_with_http_info variant
216
-
217
- This returns an Array which contains the response data, status code and headers.
218
-
219
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_lists_with_http_info(profile_id, opts)
220
-
221
- ```ruby
222
- begin
223
- # Get Profile Lists
224
- data, status_code, headers = api_instance.get_profile_lists_with_http_info(profile_id, opts)
225
- p status_code # => 2xx
226
- p headers # => { ... }
227
- p data # => Hash&lt;String, Object&gt;
228
- rescue KlaviyoAPI::ApiError => e
229
- puts "Error when calling ProfilesApi->get_profile_lists_with_http_info: #{e}"
230
- end
231
- ```
232
-
233
- ### Parameters
234
-
235
- | Name | Type | Description | Notes |
236
- | ---- | ---- | ----------- | ----- |
237
- | **profile_id** | **String** | | |
238
- | **fields_list** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
239
-
240
- ### Return type
241
-
242
- **Hash&lt;String, Object&gt;**
243
-
244
- ### Authorization
245
-
246
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
247
-
248
- ### HTTP request headers
249
-
250
- - **Content-Type**: Not defined
251
- - **Accept**: application/json
252
-
253
-
254
- ## get_profile_relationships_lists
255
-
256
- > Hash&lt;String, Object&gt; get_profile_relationships_lists(id)
257
-
258
- Get Profile Relationships Lists
259
-
260
- Get list memberships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `List Read` `Profiles Read`
261
-
262
- ### Examples
263
-
264
- ```ruby
265
- require 'time'
266
- require 'klaviyo-api-sdk'
267
- # setup authorization
268
- KlaviyoAPI.configure do |config|
269
- # Configure API key authorization: Klaviyo-API-Key
270
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
271
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
272
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
273
- end
274
-
275
- api_instance = KlaviyoAPI::ProfilesApi.new
276
- id = 'id_example' # String |
277
-
278
- begin
279
- # Get Profile Relationships Lists
280
- result = api_instance.get_profile_relationships_lists(id)
281
- p result
282
- rescue KlaviyoAPI::ApiError => e
283
- puts "Error when calling ProfilesApi->get_profile_relationships_lists: #{e}"
284
- end
285
- ```
286
-
287
- #### Using the get_profile_relationships_lists_with_http_info variant
288
-
289
- This returns an Array which contains the response data, status code and headers.
290
-
291
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_relationships_lists_with_http_info(id)
292
-
293
- ```ruby
294
- begin
295
- # Get Profile Relationships Lists
296
- data, status_code, headers = api_instance.get_profile_relationships_lists_with_http_info(id)
297
- p status_code # => 2xx
298
- p headers # => { ... }
299
- p data # => Hash&lt;String, Object&gt;
300
- rescue KlaviyoAPI::ApiError => e
301
- puts "Error when calling ProfilesApi->get_profile_relationships_lists_with_http_info: #{e}"
302
- end
303
- ```
304
-
305
- ### Parameters
306
-
307
- | Name | Type | Description | Notes |
308
- | ---- | ---- | ----------- | ----- |
309
- | **id** | **String** | | |
310
-
311
- ### Return type
312
-
313
- **Hash&lt;String, Object&gt;**
314
-
315
- ### Authorization
316
-
317
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
318
-
319
- ### HTTP request headers
320
-
321
- - **Content-Type**: Not defined
322
- - **Accept**: application/json
323
-
324
-
325
- ## get_profile_relationships_segments
326
-
327
- > Hash&lt;String, Object&gt; get_profile_relationships_segments(id)
328
-
329
- Get Profile Relationships Segments
330
-
331
- Get segment membership relationships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Profiles Read` `Segments Read`
332
-
333
- ### Examples
334
-
335
- ```ruby
336
- require 'time'
337
- require 'klaviyo-api-sdk'
338
- # setup authorization
339
- KlaviyoAPI.configure do |config|
340
- # Configure API key authorization: Klaviyo-API-Key
341
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
342
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
343
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
344
- end
345
-
346
- api_instance = KlaviyoAPI::ProfilesApi.new
347
- id = 'id_example' # String |
348
-
349
- begin
350
- # Get Profile Relationships Segments
351
- result = api_instance.get_profile_relationships_segments(id)
352
- p result
353
- rescue KlaviyoAPI::ApiError => e
354
- puts "Error when calling ProfilesApi->get_profile_relationships_segments: #{e}"
355
- end
356
- ```
357
-
358
- #### Using the get_profile_relationships_segments_with_http_info variant
359
-
360
- This returns an Array which contains the response data, status code and headers.
361
-
362
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_relationships_segments_with_http_info(id)
363
-
364
- ```ruby
365
- begin
366
- # Get Profile Relationships Segments
367
- data, status_code, headers = api_instance.get_profile_relationships_segments_with_http_info(id)
368
- p status_code # => 2xx
369
- p headers # => { ... }
370
- p data # => Hash&lt;String, Object&gt;
371
- rescue KlaviyoAPI::ApiError => e
372
- puts "Error when calling ProfilesApi->get_profile_relationships_segments_with_http_info: #{e}"
373
- end
374
- ```
375
-
376
- ### Parameters
377
-
378
- | Name | Type | Description | Notes |
379
- | ---- | ---- | ----------- | ----- |
380
- | **id** | **String** | | |
381
-
382
- ### Return type
383
-
384
- **Hash&lt;String, Object&gt;**
385
-
386
- ### Authorization
387
-
388
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
389
-
390
- ### HTTP request headers
391
-
392
- - **Content-Type**: Not defined
393
- - **Accept**: application/json
394
-
395
-
396
- ## get_profile_segments
397
-
398
- > Hash&lt;String, Object&gt; get_profile_segments(profile_id, opts)
399
-
400
- Get Profile Segments
401
-
402
- Get segment memberships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Profiles Read` `Segments Read`
403
-
404
- ### Examples
405
-
406
- ```ruby
407
- require 'time'
408
- require 'klaviyo-api-sdk'
409
- # setup authorization
410
- KlaviyoAPI.configure do |config|
411
- # Configure API key authorization: Klaviyo-API-Key
412
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
413
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
414
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
415
- end
416
-
417
- api_instance = KlaviyoAPI::ProfilesApi.new
418
- profile_id = 'profile_id_example' # String |
419
- opts = {
420
- fields_segment: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
421
- }
422
-
423
- begin
424
- # Get Profile Segments
425
- result = api_instance.get_profile_segments(profile_id, opts)
426
- p result
427
- rescue KlaviyoAPI::ApiError => e
428
- puts "Error when calling ProfilesApi->get_profile_segments: #{e}"
429
- end
430
- ```
431
-
432
- #### Using the get_profile_segments_with_http_info variant
433
-
434
- This returns an Array which contains the response data, status code and headers.
435
-
436
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_segments_with_http_info(profile_id, opts)
437
-
438
- ```ruby
439
- begin
440
- # Get Profile Segments
441
- data, status_code, headers = api_instance.get_profile_segments_with_http_info(profile_id, opts)
442
- p status_code # => 2xx
443
- p headers # => { ... }
444
- p data # => Hash&lt;String, Object&gt;
445
- rescue KlaviyoAPI::ApiError => e
446
- puts "Error when calling ProfilesApi->get_profile_segments_with_http_info: #{e}"
447
- end
448
- ```
449
-
450
- ### Parameters
451
-
452
- | Name | Type | Description | Notes |
453
- | ---- | ---- | ----------- | ----- |
454
- | **profile_id** | **String** | | |
455
- | **fields_segment** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
456
-
457
- ### Return type
458
-
459
- **Hash&lt;String, Object&gt;**
460
-
461
- ### Authorization
462
-
463
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
464
-
465
- ### HTTP request headers
466
-
467
- - **Content-Type**: Not defined
468
- - **Accept**: application/json
469
-
470
-
471
- ## get_profiles
472
-
473
- > Hash&lt;String, Object&gt; get_profiles(opts)
474
-
475
- Get Profiles
476
-
477
- Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `updated`, `email` You can adjust the number of results per page via the `page[size]` query parameter, e.g. `?page[size]=25`. **Default**: 20. **Max**: 100.<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `Profiles Read`
478
-
479
- ### Examples
480
-
481
- ```ruby
482
- require 'time'
483
- require 'klaviyo-api-sdk'
484
- # setup authorization
485
- KlaviyoAPI.configure do |config|
486
- # Configure API key authorization: Klaviyo-API-Key
487
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
488
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
489
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
490
- end
491
-
492
- api_instance = KlaviyoAPI::ProfilesApi.new
493
- opts = {
494
- additional_fields_profile: ['predictive_analytics'], # Array<String> | Request additional fields not included by default in the response. Supported values: 'predictive_analytics'
495
- fields_profile: ['email'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
496
- 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`, `equals`<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`external_id`: `any`, `equals`<br>`_kx`: `equals`<br>`created`: `greater-than`, `less-than`<br>`updated`: `greater-than`, `less-than`
497
- page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
498
- sort: 'created', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
499
- page_size: 56 # Integer | The number of results to return per page. Default = 20. Max = 100
500
- }
501
-
502
- begin
503
- # Get Profiles
504
- result = api_instance.get_profiles(opts)
505
- p result
506
- rescue KlaviyoAPI::ApiError => e
507
- puts "Error when calling ProfilesApi->get_profiles: #{e}"
508
- end
509
- ```
510
-
511
- #### Using the get_profiles_with_http_info variant
512
-
513
- This returns an Array which contains the response data, status code and headers.
514
-
515
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profiles_with_http_info(opts)
516
-
517
- ```ruby
518
- begin
519
- # Get Profiles
520
- data, status_code, headers = api_instance.get_profiles_with_http_info(opts)
521
- p status_code # => 2xx
522
- p headers # => { ... }
523
- p data # => Hash&lt;String, Object&gt;
524
- rescue KlaviyoAPI::ApiError => e
525
- puts "Error when calling ProfilesApi->get_profiles_with_http_info: #{e}"
526
- end
527
- ```
528
-
529
- ### Parameters
530
-
531
- | Name | Type | Description | Notes |
532
- | ---- | ---- | ----------- | ----- |
533
- | **additional_fields_profile** | [**Array&lt;String&gt;**](String.md) | Request additional fields not included by default in the response. Supported values: &#39;predictive_analytics&#39; | [optional] |
534
- | **fields_profile** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
535
- | **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;email&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;phone_number&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;external_id&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;_kx&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;greater-than&#x60;, &#x60;less-than&#x60;&lt;br&gt;&#x60;updated&#x60;: &#x60;greater-than&#x60;, &#x60;less-than&#x60; | [optional] |
536
- | **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
537
- | **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
538
- | **page_size** | **Integer** | The number of results to return per page. Default &#x3D; 20. Max &#x3D; 100 | [optional] |
539
-
540
- ### Return type
541
-
542
- **Hash&lt;String, Object&gt;**
543
-
544
- ### Authorization
545
-
546
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
547
-
548
- ### HTTP request headers
549
-
550
- - **Content-Type**: Not defined
551
- - **Accept**: application/json
552
-
553
-
554
- ## subscribe_profiles
555
-
556
- > subscribe_profiles(subscription_create_job_create_query)
557
-
558
- Subscribe Profiles
559
-
560
- Subscribe one or more profiles to email marketing, SMS marketing, or both. If the list has double opt-in enabled, profiles will receive a message requiring their confirmation before subscribing. Otherwise, profiles will be immediately subscribed without receiving a confirmation message. To add someone to a list without changing their subscription status, use [Add Profile to List](https://developers.klaviyo.com/en/reference/create_list_relationships). This API will remove any `UNSUBSCRIBE`, `SPAM_REPORT` or `USER_SUPPRESSED` suppressions from the provided profiles. Learn more about suppressed profiles in [this document](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1). Maximum number of profile can be submitted for subscription: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `List Write` `Profiles Write` `Subscriptions Write`
561
-
562
- ### Examples
563
-
564
- ```ruby
565
- require 'time'
566
- require 'klaviyo-api-sdk'
567
- # setup authorization
568
- KlaviyoAPI.configure do |config|
569
- # Configure API key authorization: Klaviyo-API-Key
570
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
571
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
572
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
573
- end
574
-
575
- api_instance = KlaviyoAPI::ProfilesApi.new
576
- subscription_create_job_create_query = KlaviyoAPI::SubscriptionCreateJobCreateQuery.new({data: KlaviyoAPI::SubscriptionCreateJobCreateQueryResourceObject.new({type: KlaviyoAPI::ProfileSubscriptionBulkCreateJobEnum::PROFILE_SUBSCRIPTION_BULK_CREATE_JOB, attributes: KlaviyoAPI::SubscriptionCreateJobCreateQueryResourceObjectAttributes.new({list_id: 'Y6nRLr', subscriptions: [KlaviyoAPI::Subscription.new]})})}) # SubscriptionCreateJobCreateQuery | Subscribes one or more profiles to marketing. Currently, supports email and SMS only. All profiles will be added to the provided list. Either email or phone number is required. Both may be specified to subscribe to both channels. If a profile cannot be found matching the given identifier(s), a new profile will be created and then subscribed.
577
-
578
- begin
579
- # Subscribe Profiles
580
- api_instance.subscribe_profiles(subscription_create_job_create_query)
581
- rescue KlaviyoAPI::ApiError => e
582
- puts "Error when calling ProfilesApi->subscribe_profiles: #{e}"
583
- end
584
- ```
585
-
586
- #### Using the subscribe_profiles_with_http_info variant
587
-
588
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
589
-
590
- > <Array(nil, Integer, Hash)> subscribe_profiles_with_http_info(subscription_create_job_create_query)
591
-
592
- ```ruby
593
- begin
594
- # Subscribe Profiles
595
- data, status_code, headers = api_instance.subscribe_profiles_with_http_info(subscription_create_job_create_query)
596
- p status_code # => 2xx
597
- p headers # => { ... }
598
- p data # => nil
599
- rescue KlaviyoAPI::ApiError => e
600
- puts "Error when calling ProfilesApi->subscribe_profiles_with_http_info: #{e}"
601
- end
602
- ```
603
-
604
- ### Parameters
605
-
606
- | Name | Type | Description | Notes |
607
- | ---- | ---- | ----------- | ----- |
608
- | **subscription_create_job_create_query** | [**SubscriptionCreateJobCreateQuery**](SubscriptionCreateJobCreateQuery.md) | Subscribes one or more profiles to marketing. Currently, supports email and SMS only. All profiles will be added to the provided list. Either email or phone number is required. Both may be specified to subscribe to both channels. If a profile cannot be found matching the given identifier(s), a new profile will be created and then subscribed. | |
609
-
610
- ### Return type
611
-
612
- nil (empty response body)
613
-
614
- ### Authorization
615
-
616
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
617
-
618
- ### HTTP request headers
619
-
620
- - **Content-Type**: application/json
621
- - **Accept**: application/json
622
-
623
-
624
- ## suppress_profiles
625
-
626
- > suppress_profiles(suppression_create_job_create_query)
627
-
628
- Suppress Profiles
629
-
630
- Manually suppress one or more profiles. Such profiles will have `USER_SUPPRESSED` as their suppression reason. Manually suppressed profiles _will not_ receive email marketing. Learn more about suppressed profiles [in this document](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1). Not supported for SMS marketing. Maximum number of profile can be submitted for suppression: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Profiles Write` `Subscriptions Write`
631
-
632
- ### Examples
633
-
634
- ```ruby
635
- require 'time'
636
- require 'klaviyo-api-sdk'
637
- # setup authorization
638
- KlaviyoAPI.configure do |config|
639
- # Configure API key authorization: Klaviyo-API-Key
640
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
641
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
642
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
643
- end
644
-
645
- api_instance = KlaviyoAPI::ProfilesApi.new
646
- suppression_create_job_create_query = KlaviyoAPI::SuppressionCreateJobCreateQuery.new({data: KlaviyoAPI::SuppressionCreateJobCreateQueryResourceObject.new({type: KlaviyoAPI::ProfileSuppressionBulkCreateJobEnum::PROFILE_SUPPRESSION_BULK_CREATE_JOB, attributes: KlaviyoAPI::SuppressionCreateJobCreateQueryResourceObjectAttributes.new({suppressions: [KlaviyoAPI::Suppression.new({email: 'matt-kemp@klaviyo-demo.com'})]})})}) # SuppressionCreateJobCreateQuery | Suppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, one will be created and immediately suppressed.
647
-
648
- begin
649
- # Suppress Profiles
650
- api_instance.suppress_profiles(suppression_create_job_create_query)
651
- rescue KlaviyoAPI::ApiError => e
652
- puts "Error when calling ProfilesApi->suppress_profiles: #{e}"
653
- end
654
- ```
655
-
656
- #### Using the suppress_profiles_with_http_info variant
657
-
658
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
659
-
660
- > <Array(nil, Integer, Hash)> suppress_profiles_with_http_info(suppression_create_job_create_query)
661
-
662
- ```ruby
663
- begin
664
- # Suppress Profiles
665
- data, status_code, headers = api_instance.suppress_profiles_with_http_info(suppression_create_job_create_query)
666
- p status_code # => 2xx
667
- p headers # => { ... }
668
- p data # => nil
669
- rescue KlaviyoAPI::ApiError => e
670
- puts "Error when calling ProfilesApi->suppress_profiles_with_http_info: #{e}"
671
- end
672
- ```
673
-
674
- ### Parameters
675
-
676
- | Name | Type | Description | Notes |
677
- | ---- | ---- | ----------- | ----- |
678
- | **suppression_create_job_create_query** | [**SuppressionCreateJobCreateQuery**](SuppressionCreateJobCreateQuery.md) | Suppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, one will be created and immediately suppressed. | |
679
-
680
- ### Return type
681
-
682
- nil (empty response body)
683
-
684
- ### Authorization
685
-
686
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
687
-
688
- ### HTTP request headers
689
-
690
- - **Content-Type**: application/json
691
- - **Accept**: application/json
692
-
693
-
694
- ## unsubscribe_profiles
695
-
696
- > unsubscribe_profiles(unsubscription_create_job_create_query)
697
-
698
- Unsubscribe Profiles
699
-
700
- Unsubscribe one or more profiles to email marketing, SMS marketing, or both. To remove someone from a list without changing their subscription status, use [Remove Profile from List](https://developers.klaviyo.com/en/reference/delete_list_relationships). Maximum number of profile can be submitted for unsubscription: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `List Write` `Profiles Write` `Subscriptions Write`
701
-
702
- ### Examples
703
-
704
- ```ruby
705
- require 'time'
706
- require 'klaviyo-api-sdk'
707
- # setup authorization
708
- KlaviyoAPI.configure do |config|
709
- # Configure API key authorization: Klaviyo-API-Key
710
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
711
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
712
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
713
- end
714
-
715
- api_instance = KlaviyoAPI::ProfilesApi.new
716
- unsubscription_create_job_create_query = KlaviyoAPI::UnsubscriptionCreateJobCreateQuery.new({data: KlaviyoAPI::UnsubscriptionCreateJobCreateQueryResourceObject.new({type: KlaviyoAPI::ProfileUnsubscriptionBulkCreateJobEnum::PROFILE_UNSUBSCRIPTION_BULK_CREATE_JOB, attributes: KlaviyoAPI::UnsubscriptionCreateJobCreateQueryResourceObjectAttributes.new})}) # UnsubscriptionCreateJobCreateQuery | Unsubscribes one or more profiles from marketing. Currently, supports email and SMS only. All profiles will be removed from the provided list. Either email or phone number is required. If a profile cannot be found matching the given identifier(s), a new profile will be created and then unsubscribed.
717
-
718
- begin
719
- # Unsubscribe Profiles
720
- api_instance.unsubscribe_profiles(unsubscription_create_job_create_query)
721
- rescue KlaviyoAPI::ApiError => e
722
- puts "Error when calling ProfilesApi->unsubscribe_profiles: #{e}"
723
- end
724
- ```
725
-
726
- #### Using the unsubscribe_profiles_with_http_info variant
727
-
728
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
729
-
730
- > <Array(nil, Integer, Hash)> unsubscribe_profiles_with_http_info(unsubscription_create_job_create_query)
731
-
732
- ```ruby
733
- begin
734
- # Unsubscribe Profiles
735
- data, status_code, headers = api_instance.unsubscribe_profiles_with_http_info(unsubscription_create_job_create_query)
736
- p status_code # => 2xx
737
- p headers # => { ... }
738
- p data # => nil
739
- rescue KlaviyoAPI::ApiError => e
740
- puts "Error when calling ProfilesApi->unsubscribe_profiles_with_http_info: #{e}"
741
- end
742
- ```
743
-
744
- ### Parameters
745
-
746
- | Name | Type | Description | Notes |
747
- | ---- | ---- | ----------- | ----- |
748
- | **unsubscription_create_job_create_query** | [**UnsubscriptionCreateJobCreateQuery**](UnsubscriptionCreateJobCreateQuery.md) | Unsubscribes one or more profiles from marketing. Currently, supports email and SMS only. All profiles will be removed from the provided list. Either email or phone number is required. If a profile cannot be found matching the given identifier(s), a new profile will be created and then unsubscribed. | |
749
-
750
- ### Return type
751
-
752
- nil (empty response body)
753
-
754
- ### Authorization
755
-
756
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
757
-
758
- ### HTTP request headers
759
-
760
- - **Content-Type**: application/json
761
- - **Accept**: application/json
762
-
763
-
764
- ## unsuppress_profiles
765
-
766
- > unsuppress_profiles(unsuppression_create_job_create_query)
767
-
768
- Unsuppress Profiles
769
-
770
- Unsuppress one or more profiles, this will remove any Manual Suppressions (USER_SUPPRESSED) on these profiles. A profile may receive email marketing after a manual suppression is removed so long as they have not revoked consent, i.e. unsubscribed. Not supported for SMS marketing. Only manual suppressions (USER_SUPPRESSED) will be removed. `UNSUBSCRIBE` and `SPAM_REPORT` suppressions are removed whenever a [profile resubscribes](https://developers.klaviyo.com/en/reference/subscribe_profiles). `INVALID_EMAIL` and `HARD_BOUNCE` suppressions cannot be removed by the API. Maximum number of profile can be submitted for unsuppression: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Subscriptions Write`
771
-
772
- ### Examples
773
-
774
- ```ruby
775
- require 'time'
776
- require 'klaviyo-api-sdk'
777
- # setup authorization
778
- KlaviyoAPI.configure do |config|
779
- # Configure API key authorization: Klaviyo-API-Key
780
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
781
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
782
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
783
- end
784
-
785
- api_instance = KlaviyoAPI::ProfilesApi.new
786
- unsuppression_create_job_create_query = KlaviyoAPI::UnsuppressionCreateJobCreateQuery.new({data: KlaviyoAPI::UnsuppressionCreateJobCreateQueryResourceObject.new({type: KlaviyoAPI::ProfileUnsuppressionBulkCreateJobEnum::PROFILE_UNSUPPRESSION_BULK_CREATE_JOB, attributes: KlaviyoAPI::UnsuppressionCreateJobCreateQueryResourceObjectAttributes.new({suppressions: [KlaviyoAPI::Suppression.new({email: 'matt-kemp@klaviyo-demo.com'})]})})}) # UnsuppressionCreateJobCreateQuery | Unsuppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, no action will be taken.
787
-
788
- begin
789
- # Unsuppress Profiles
790
- api_instance.unsuppress_profiles(unsuppression_create_job_create_query)
791
- rescue KlaviyoAPI::ApiError => e
792
- puts "Error when calling ProfilesApi->unsuppress_profiles: #{e}"
793
- end
794
- ```
795
-
796
- #### Using the unsuppress_profiles_with_http_info variant
797
-
798
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
799
-
800
- > <Array(nil, Integer, Hash)> unsuppress_profiles_with_http_info(unsuppression_create_job_create_query)
801
-
802
- ```ruby
803
- begin
804
- # Unsuppress Profiles
805
- data, status_code, headers = api_instance.unsuppress_profiles_with_http_info(unsuppression_create_job_create_query)
806
- p status_code # => 2xx
807
- p headers # => { ... }
808
- p data # => nil
809
- rescue KlaviyoAPI::ApiError => e
810
- puts "Error when calling ProfilesApi->unsuppress_profiles_with_http_info: #{e}"
811
- end
812
- ```
813
-
814
- ### Parameters
815
-
816
- | Name | Type | Description | Notes |
817
- | ---- | ---- | ----------- | ----- |
818
- | **unsuppression_create_job_create_query** | [**UnsuppressionCreateJobCreateQuery**](UnsuppressionCreateJobCreateQuery.md) | Unsuppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, no action will be taken. | |
819
-
820
- ### Return type
821
-
822
- nil (empty response body)
823
-
824
- ### Authorization
825
-
826
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
827
-
828
- ### HTTP request headers
829
-
830
- - **Content-Type**: application/json
831
- - **Accept**: application/json
832
-
833
-
834
- ## update_profile
835
-
836
- > Hash&lt;String, Object&gt; update_profile(id, profile_partial_update_query, opts)
837
-
838
- Update Profile
839
-
840
- Update the profile with the given profile ID. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Profiles Write`
841
-
842
- ### Examples
843
-
844
- ```ruby
845
- require 'time'
846
- require 'klaviyo-api-sdk'
847
- # setup authorization
848
- KlaviyoAPI.configure do |config|
849
- # Configure API key authorization: Klaviyo-API-Key
850
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
851
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
852
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
853
- end
854
-
855
- api_instance = KlaviyoAPI::ProfilesApi.new
856
- id = '01GDDKASAP8TKDDA2GRZDSVP4H' # String | Primary key that uniquely identifies this profile. Generated by Klaviyo.
857
- profile_partial_update_query = KlaviyoAPI::ProfilePartialUpdateQuery.new({data: KlaviyoAPI::ProfilePartialUpdateQueryResourceObject.new({type: KlaviyoAPI::ProfileEnum::PROFILE, id: '01GDDKASAP8TKDDA2GRZDSVP4H', attributes: KlaviyoAPI::OnsiteProfileCreateQueryResourceObjectAttributes.new})}) # ProfilePartialUpdateQuery |
858
- opts = {
859
- additional_fields_profile: ['predictive_analytics'] # Array<String> | Request additional fields not included by default in the response. Supported values: 'predictive_analytics'
860
- }
861
-
862
- begin
863
- # Update Profile
864
- result = api_instance.update_profile(id, profile_partial_update_query, opts)
865
- p result
866
- rescue KlaviyoAPI::ApiError => e
867
- puts "Error when calling ProfilesApi->update_profile: #{e}"
868
- end
869
- ```
870
-
871
- #### Using the update_profile_with_http_info variant
872
-
873
- This returns an Array which contains the response data, status code and headers.
874
-
875
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> update_profile_with_http_info(id, profile_partial_update_query, opts)
876
-
877
- ```ruby
878
- begin
879
- # Update Profile
880
- data, status_code, headers = api_instance.update_profile_with_http_info(id, profile_partial_update_query, opts)
881
- p status_code # => 2xx
882
- p headers # => { ... }
883
- p data # => Hash&lt;String, Object&gt;
884
- rescue KlaviyoAPI::ApiError => e
885
- puts "Error when calling ProfilesApi->update_profile_with_http_info: #{e}"
886
- end
887
- ```
888
-
889
- ### Parameters
890
-
891
- | Name | Type | Description | Notes |
892
- | ---- | ---- | ----------- | ----- |
893
- | **id** | **String** | Primary key that uniquely identifies this profile. Generated by Klaviyo. | |
894
- | **profile_partial_update_query** | [**ProfilePartialUpdateQuery**](ProfilePartialUpdateQuery.md) | | |
895
- | **additional_fields_profile** | [**Array&lt;String&gt;**](String.md) | Request additional fields not included by default in the response. Supported values: &#39;predictive_analytics&#39; | [optional] |
896
-
897
- ### Return type
898
-
899
- **Hash&lt;String, Object&gt;**
900
-
901
- ### Authorization
902
-
903
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
904
-
905
- ### HTTP request headers
906
-
907
- - **Content-Type**: application/json
908
- - **Accept**: application/json
909
-