Introduced a new class, KlaviyoV3Api dedicated to handling API requests and responses for Klaviyo V3. This class was modeled after @siddwarkhedkar Prestashop V3 PR.
This class is responsible for transforming request data to match the structure of the Klaviyo V3 API.
Updated API Endpoint URLs
Updated and centralized the URL endpoints for the Klaviyo V3 API within the KlaviyoV3Api class for consistency.
Added several new exception types tailored to specific error scenarios, improving the precision of error reporting and handling.
New Method handleApiResponse:
Introduced a new method called handleApiResponse in the KlaviyoV3Api class.
This method consistently handles API responses, parsing JSON data, and throwing appropriate exceptions when necessary.
Manual Testing Steps
Tested on version 2.3.7, 4.0.12
Pre-Submission Checklist:
[x] You've updated the CHANGELOG following the steps here
[ ] Internal Only - If this is a release, please confirm the following:
[x] The links in the changelog have been updated to point towards the new versions
[ ] The version has been incremented in the following places: module.xml and composer.json
NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.
Description
Introduced a new class,
KlaviyoV3Api
dedicated to handling API requests and responses for Klaviyo V3. This class was modeled after @siddwarkhedkar Prestashop V3 PR. This class is responsible for transforming request data to match the structure of the Klaviyo V3 API.Updated API Endpoint URLs
Updated and centralized the URL endpoints for the Klaviyo V3 API within the KlaviyoV3Api class for consistency.
Added several new exception types tailored to specific error scenarios, improving the precision of error reporting and handling.
New Method handleApiResponse:
Introduced a new method called handleApiResponse in the KlaviyoV3Api class. This method consistently handles API responses, parsing JSON data, and throwing appropriate exceptions when necessary.
Manual Testing Steps
Pre-Submission Checklist:
NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.