Skip to content

Commit 65b5f28

Browse files
authored
Merge pull request #15 from klaviyo/20230406
20230406 release: relationship endpoints split and new profile field
2 parents 6d003fd + 37cc82d commit 65b5f28

492 files changed

Lines changed: 50259 additions & 21389 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: 44 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,56 @@
11
# Changelog
22

3-
NOTE: For more granular API-specific changes, please see our [API Changelog](https://developers.klaviyo.com/en/docs/changelog_)
4-
5-
## 1.3.0
6-
7-
### Added
8-
- `page_size`: you can now set page_size when paging through endpoints that return profiles
3+
All notable changes to this project will be documented in this file.
94

10-
## 1.2.1
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
117

12-
### Bug Fixes
13-
- Fixed bug that caused paging through events to periodically fail
8+
NOTE: For more granular API-specific changes, please see our [API Changelog](https://developers.klaviyo.com/en/docs/changelog_)
149

10+
## [2.0.0] - 2023-04-06
11+
### Changed
12+
- Relationship endpoints that were previously grouped together are now split into related-resource-specific endpoints. This means that all relationship endpoints have new function names.
13+
- Profiles API can now return predictive analytics when calling `getProfile` and `getProfiles`, by passing in `$additional_fields_profile=["predictive_analytics"]`.
1514

16-
## 1.2.0
15+
### Migration Guide
16+
- To migrate to this latest version, all calls to relationship endpoints need to be updated, as in the following example:
17+
- `getCampaignRelationships($id, "tags")` will become `getCampaignRelationshipsTags($id)`.
18+
- Because PHP is sensitive to the ordering of optional args, this is a breaking change to all `getProfile` and `getProfiles` calls that use optional args. Please refer to `getProfile` and `getProfiles` in the README for more details on ordering.
19+
- Specifically, because params are passed in alphabetical order, even if you do not intend to use this new param, you will need to shift over the params by one by passing in `$additional_fields_profile=NULL`.
1720

21+
## [1.3.0] - 2023-03-01
1822
### Added
19-
- Campaigns (which were previously in our Beta API/SDKs)
20-
21-
### Changes
22-
- Flows
23-
- Pagination changed from page offset to cursor
23+
- Added `page_size` support for paging through endpoints that return profiles.
2424

25-
## 1.1.0
25+
## [1.2.1] - 2023-02-23
26+
### Fixed
27+
- Fixed a bug that caused paging through events to periodically fail.
2628

27-
- Added the following endpoints (which were previously in our Beta API/SDKs):
28-
- Data Privacy
29-
- All Tags endpoints, as well as the following related resource-specific endpoints:
30-
- Get Flow Tags
31-
- Get List Tags
32-
- Get Segment Tags
33-
34-
## 1.0.0
35-
36-
* Initial release
29+
## [1.2.0] - 2023-02-23
30+
### Added
31+
- Added support for Campaigns (which were previously in our Beta API/SDKs).
3732

38-
Differences between 1.0.0 and BETA:
33+
### Changed
34+
- Pagination for Flows changed from page offset to cursor.
3935

40-
- Naming changes
41-
- Packagist package name: `klaviyo/sdk-beta``klaviyo/api`
42-
- Namespace: `KlaviyoBeta``KlaviyoAPI`
43-
- client name: `Client``KlaviyoAPI`
44-
- Client variable name in readme examples: `$client``$klaviyo`
45-
- Some functions have changed name
46-
- Parameter ordering: The order of params has changed; you will need to update these for your existing implementation to work
36+
## [1.1.0] - 2023-01-25
37+
### Added
38+
- Added the following endpoints (which were previously in our Beta API/SDKs):
39+
- Data Privacy
40+
- All Tags endpoints, as well as the following related resource-specific endpoints:
41+
- Get Flow Tags
42+
- Get List Tags
43+
- Get Segment Tags
44+
45+
## [1.0.0] - 2023-10-19
46+
### Added
47+
- Initial release
48+
49+
### Changed
50+
- Naming changes:
51+
- Packagist package name: `klaviyo/sdk-beta``klaviyo/api`
52+
- Namespace: `KlaviyoBeta``KlaviyoAPI`
53+
- client name: `Client``KlaviyoAPI`
54+
- Client variable name in readme examples: `$client``$klaviyo`
55+
- Some functions have changed name
56+
- Parameter ordering: The order of params has changed; you will need to update these for your existing implementation to work

0 commit comments

Comments
 (0)