Skip to content

Commit 600035e

Browse files
author
klaviyo-sdk
committed
version 9.0.0
1 parent c567a93 commit 600035e

File tree

378 files changed

+3584
-2905
lines changed

Some content is hidden

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

378 files changed

+3584
-2905
lines changed

CHANGELOG.md

+8-39
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,20 @@ 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.1] - revision 2024-05-15
10+
## [9.0.0] - revision 2024-06-15
1111

1212
### Added
13+
- Segments Api
14+
- New create segment endpoint `SegmentsApi.createSegment()`.
15+
- New delete segment endpoint `SegementsApi.deleteSegment()`.
16+
- Updated exisiting segments endpoints to include the segment definition
17+
- For more information, see our [Segments API overview](https://developers.klaviyo.com/en/reference/segments_api_overview).
1318

14-
- Fixes issue where `filter` query params for any API call were being duplicated on request send. See issue: https://github.com/klaviyo/klaviyo-api-python/issues/51
19+
- Flows Api
20+
- New delete flows endpoint `FlowsApi.deleteFlow()`
1521

16-
## [8.0.0] - revision 2024-05-15
1722

18-
### Added
19-
20-
- Bulk Create Events API with
21-
- We have added support for creating events in bulk via the EventsApi.bulkCreateEvents method
22-
- 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).
23-
24-
### Changed
2523

26-
- Accounts API
27-
- `Accounts.get_account` and `Accounts.get_accounts` have been updated to return the account's locale, e.g. `"en-US"`.
28-
29-
- **Breaking**
30-
- Subscribe API Synchronous Validation Improved
31-
- To provide better feedback for handling SMS subscriptions, we’ve added improved validation behavior to ProfilesApi.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
32-
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.
33-
2. If the account does not have a sending number in the phone number’s region.
34-
3. If the phone number is in a region not supported by Klaviyo.
35-
4. If consented_at is set and the list or global setting is double opt-in.
36-
- Pydantic V2
37-
- This SDK now uses Pydantic V2. This may cause some compatibility issues if your source code depends on Pydantic V1.
38-
- Renamed Fields in SDK
39-
- As of the 2024-05-15 release, some models fields are named differently than they appear in API documentation. These fields are
40-
- `datetime`: renamed to `datetime_`
41-
- `date`: renamed to `date_`
42-
43-
This is to manage compatibility with Pydantic v2. An example of this can be seen in [StaticScheduleOptions](src/openapi_client/models/static_schedule_options.py).
44-
45-
```python
46-
class StaticScheduleOptions(BaseModel):
47-
"""
48-
StaticScheduleOptions
49-
""" # noqa: E501
50-
datetime_: datetime = Field(description="The time to send at", alias="datetime")
51-
52-
schedule_options = StaticScheduleOptions(datetime_=datetime.datetime.strptime("2024-05-19T00:00:00+00:00", "%Y-%m-%dT%H:%M:%S%z")
53-
print(schedule_options.datetime_)
54-
```
5524

5625
## [7.0.0] - revision 2024-02-15
5726

0 commit comments

Comments
 (0)