Skip to content

Commit c61728d

Browse files
author
klaviyo-sdk
committed
version 8.0.0
1 parent 451a3aa commit c61728d

375 files changed

Lines changed: 70602 additions & 31782 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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,46 @@ 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
11+
12+
### Added
13+
14+
- Bulk Create Events API with
15+
- We have added support for creating events in bulk via the EventsApi.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+
- `Accounts.get_account` and `Accounts.get_accounts` have been updated to return the account's locale, e.g. `"en-US"`.
22+
23+
- **Breaking**
24+
- Subscribe API Synchronous Validation Improved
25+
- 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
26+
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.
27+
2. If the account does not have a sending number in the phone number’s region.
28+
3. If the phone number is in a region not supported by Klaviyo.
29+
4. If consented_at is set and the list or global setting is double opt-in.
30+
- Pydantic V2
31+
- This SDK now uses Pydantic V2. This may cause some compatibility issues if your source code depends on Pydantic V1.
32+
- Renamed Fields in SDK
33+
- As of the 2024-05-15 release, some models fields are named differently than they appear in API documentation. These fields are
34+
- `datetime`: renamed to `datetime_`
35+
- `date`: renamed to `date_`
36+
37+
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).
38+
39+
```python
40+
class StaticScheduleOptions(BaseModel):
41+
"""
42+
StaticScheduleOptions
43+
""" # noqa: E501
44+
datetime_: datetime = Field(description="The time to send at", alias="datetime")
45+
46+
schedule_options = StaticScheduleOptions(datetime_=datetime.datetime.strptime("2024-05-19T00:00:00+00:00", "%Y-%m-%dT%H:%M:%S%z")
47+
print(schedule_options.datetime_)
48+
```
49+
1050
## [7.0.0] - revision 2024-02-15
1151

1252
### Added:

0 commit comments

Comments
 (0)