Skip to content

Commit

Permalink
version 7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
klaviyo-sdk committed Jun 18, 2024
1 parent 08776a8 commit c6631d2
Show file tree
Hide file tree
Showing 543 changed files with 27,932 additions and 1,374 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [7.1.0] - revision 2024-06-15

### Added
- Segments Api
- New create segment endpoint `KlaviyoAPI::Segments.create_segment()`.
- New delete segment endpoint `KlaviyoAPI::Segments.delete_segment()`.
- Updated exisiting segments endpoints to include the segment definition
- For more information, see our [Segments API overview](https://developers.klaviyo.com/en/reference/segments_api_overview).

- Flows Api
- New delete flows endpoint `KlaviyoAPI::Flows.delete_flow()`


## [7.0.0] - revision 2024-05-15

### Added
Expand Down
458 changes: 244 additions & 214 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions klaviyo-api-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.
The version of the OpenAPI document: 2024-05-15
The version of the OpenAPI document: 2024-06-15
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.2.1
Expand All @@ -17,7 +17,7 @@ require "klaviyo-api-sdk/version"

Gem::Specification.new do |s|
s.name = "klaviyo-api-sdk"
s.version = "7.0.0"
s.version = "7.1.0"
s.authors = ['Klaviyo Team']
s.email = ['[email protected]']
s.summary = 'You heard us, a Ruby wrapper for the Klaviyo API'
Expand Down
161 changes: 160 additions & 1 deletion lib/klaviyo-api-sdk.rb

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions lib/klaviyo-api-sdk/api/accounts_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.
The version of the OpenAPI document: 2024-05-15
The version of the OpenAPI document: 2024-06-15
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.2.1
Expand All @@ -23,7 +23,7 @@ def initialize(api_client = ApiClient.default)
# Retrieve a single account object by its account ID. You can only request the account by which the private API key was generated.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
# @param id [String] The ID of the account
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-06-15/reference/api-overview#sparse-fieldsets
# @return [Hash<String, Object>]
def get_account(id, opts = {})
data, _status_code, _headers = get_account_with_http_info(id, opts)
Expand All @@ -34,7 +34,7 @@ def get_account(id, opts = {})
# Retrieve a single account object by its account ID. You can only request the account by which the private API key was generated.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;1/s&#x60;&lt;br&gt;Steady: &#x60;15/m&#x60; **Scopes:** &#x60;accounts:read&#x60;
# @param id [String] The ID of the account
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-06-15/reference/api-overview#sparse-fieldsets
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
def get_account_with_http_info(id, opts = {})
if @api_client.config.debugging
Expand All @@ -58,7 +58,7 @@ def get_account_with_http_info(id, opts = {})
# header parameters
header_params = opts[:header_params] || {}
# klaviyo api revision
header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15"
header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-06-15"
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])

Expand Down Expand Up @@ -94,7 +94,7 @@ def get_account_with_http_info(id, opts = {})
# Get Accounts
# Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.<br><br>*Rate limits*:<br>Burst: `1/s`<br>Steady: `15/m` **Scopes:** `accounts:read`
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-06-15/reference/api-overview#sparse-fieldsets
# @return [Hash<String, Object>]
def get_accounts(opts = {})
data, _status_code, _headers = get_accounts_with_http_info(opts)
Expand All @@ -104,7 +104,7 @@ def get_accounts(opts = {})
# Get Accounts
# Retrieve the account(s) associated with a given private API key. This will return 1 account object within the array. You can use this to retrieve account-specific data (contact information, timezone, currency, Public API key, etc.) or test if a Private API Key belongs to the correct account prior to performing subsequent actions with the API.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;1/s&#x60;&lt;br&gt;Steady: &#x60;15/m&#x60; **Scopes:** &#x60;accounts:read&#x60;
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets
# @option opts [Array<String>] :fields_account For more information please visit https://developers.klaviyo.com/en/v2024-06-15/reference/api-overview#sparse-fieldsets
# @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
def get_accounts_with_http_info(opts = {})
if @api_client.config.debugging
Expand All @@ -124,7 +124,7 @@ def get_accounts_with_http_info(opts = {})
# header parameters
header_params = opts[:header_params] || {}
# klaviyo api revision
header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-05-15"
header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-06-15"
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])

Expand Down
Loading

0 comments on commit c6631d2

Please sign in to comment.