Skip to content

Commit cae52db

Browse files
author
klaviyo-sdk
committed
version 8.0.0
1 parent 2094d2f commit cae52db

384 files changed

Lines changed: 8459 additions & 2282 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
NOTE: For more granular API-specific changes, please see our [API Changelog](https://developers.klaviyo.com/en/docs/changelog_)
99

10+
## [8.0.0] - revision 2024-05-15
1011

12+
### Added
13+
14+
- Bulk Create Events API with
15+
- We have added support for creating events in bulk via the `$klaviyo->Events->bulkCreateEvents` method
16+
- Create multiple events for new and existing profiles and/or update profile properties in a single API call. For more information, see our [Events API overview](https://developers.klaviyo.com/en/reference/events_api_overview).
17+
18+
### Changed
19+
20+
- Accounts Api
21+
- `$klaviyo->Accounts->getAccounts` and `$klaviyo->Accounts->getAccount` have been updated to return the account's locale, e.g. `en-US`.
22+
23+
- **Breaking** Subscribe API Synchronous Validation Improved
24+
- To provide better feedback for handling SMS subscriptions, we’ve added improved validation behavior to `$klaviyo->Profiles->subscribeProfiles` method. In prior revisions, such requests may appear as 202s but will fail to update SMS consent. To handle this issue, 400 validation errors are returned for the following cases
25+
1. If a profile is subscribed to SMS marketing and [age-gating is enabled](https://help.klaviyo.com/hc/en-us/articles/4408311712667) but age_gated_date_of_birth is not provided, or the DOB does not meet the region's requirements.
26+
2. If the account does not have a sending number in the phone number’s region.
27+
3. If the phone number is in a region not supported by Klaviyo.
28+
4. If consented_at is set and the list or global setting is double opt-in.
1129

1230
## [7.1.2] - revision 2024-02-15
1331

README.md

Lines changed: 224 additions & 211 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "klaviyo/api",
3-
"version": "7.1.2",
3+
"version": "8.0.0",
44
"description": "PHP SDK for Klaviyo's API.",
55
"keywords": [
66
"openapitools",

lib/API/AccountsApi.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details.
1616
*
17-
* The version of the OpenAPI document: 2024-02-15
17+
* The version of the OpenAPI document: 2024-05-15
1818
* Contact: [email protected]
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 6.1.0
@@ -122,7 +122,7 @@ public function getConfig()
122122
* Get Account
123123
*
124124
* @param string $id The ID of the account (required)
125-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
125+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
126126
*
127127
* @throws \KlaviyoAPI\ApiException on non-2xx response
128128
* @throws \InvalidArgumentException
@@ -140,7 +140,7 @@ public function getAccount($id, $fields_account = null, $apiKey = null)
140140
* Get Account
141141
*
142142
* @param string $id The ID of the account (required)
143-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
143+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
144144
*
145145
* @throws \KlaviyoAPI\ApiException on non-2xx response
146146
* @throws \InvalidArgumentException
@@ -309,7 +309,7 @@ public function getAccountWithHttpInfo($id, $fields_account = null, $apiKey = nu
309309
* Get Account
310310
*
311311
* @param string $id The ID of the account (required)
312-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
312+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
313313
*
314314
* @throws \InvalidArgumentException
315315
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -330,7 +330,7 @@ function ($response) {
330330
* Get Account
331331
*
332332
* @param string $id The ID of the account (required)
333-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
333+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
334334
*
335335
* @throws \InvalidArgumentException
336336
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -385,7 +385,7 @@ function ($exception) {
385385
* Create request for operation 'getAccount'
386386
*
387387
* @param string $id The ID of the account (required)
388-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
388+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
389389
*
390390
* @throws \InvalidArgumentException
391391
* @return \GuzzleHttp\Psr7\Request
@@ -478,7 +478,7 @@ public function getAccountRequest($id, $fields_account = null, $apiKey = null)
478478
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
479479
}
480480

481-
$defaultHeaders['revision'] = ['2024-02-15'];
481+
$defaultHeaders['revision'] = ['2024-05-15'];
482482

483483
$headers = array_merge(
484484
$defaultHeaders,
@@ -500,7 +500,7 @@ public function getAccountRequest($id, $fields_account = null, $apiKey = null)
500500
*
501501
* Get Accounts
502502
*
503-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
503+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
504504
*
505505
* @throws \KlaviyoAPI\ApiException on non-2xx response
506506
* @throws \InvalidArgumentException
@@ -517,7 +517,7 @@ public function getAccounts($fields_account = null, $apiKey = null)
517517
*
518518
* Get Accounts
519519
*
520-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
520+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
521521
*
522522
* @throws \KlaviyoAPI\ApiException on non-2xx response
523523
* @throws \InvalidArgumentException
@@ -685,7 +685,7 @@ public function getAccountsWithHttpInfo($fields_account = null, $apiKey = null)
685685
*
686686
* Get Accounts
687687
*
688-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
688+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
689689
*
690690
* @throws \InvalidArgumentException
691691
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -705,7 +705,7 @@ function ($response) {
705705
*
706706
* Get Accounts
707707
*
708-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
708+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
709709
*
710710
* @throws \InvalidArgumentException
711711
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -759,7 +759,7 @@ function ($exception) {
759759
/**
760760
* Create request for operation 'getAccounts'
761761
*
762-
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-02-15/reference/api-overview#sparse-fieldsets (optional)
762+
* @param string[] $fields_account For more information please visit https://developers.klaviyo.com/en/v2024-05-15/reference/api-overview#sparse-fieldsets (optional)
763763
*
764764
* @throws \InvalidArgumentException
765765
* @return \GuzzleHttp\Psr7\Request
@@ -838,7 +838,7 @@ public function getAccountsRequest($fields_account = null, $apiKey = null)
838838
$defaultHeaders['User-Agent'] = $this->config->getUserAgent();
839839
}
840840

841-
$defaultHeaders['revision'] = ['2024-02-15'];
841+
$defaultHeaders['revision'] = ['2024-05-15'];
842842

843843
$headers = array_merge(
844844
$defaultHeaders,

0 commit comments

Comments
 (0)