Skip to content

Commit 0bc4fe6

Browse files
klaviyo-sdkklaviyo-sdk
andauthored
version 14.0.2 (#77)
Co-authored-by: klaviyo-sdk <[email protected]>
1 parent 1e1b88a commit 0bc4fe6

14 files changed

Lines changed: 65 additions & 1974 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ 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+
## [14.0.2] - revision 2025-04-15
11+
### Added
12+
- Added some PHPDoc type hints
13+
1014
## [14.0.1] - revision 2025-04-15
1115
### Changed
1216
- Removed API revision from comment on files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaviyo PHP SDK
22

3-
- SDK version: 14.0.1
3+
- SDK version: 14.0.2
44
- API Revision: 2025-04-15
55

66
## Helpful Resources

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": "14.0.1",
3+
"version": "14.0.2",
44
"description": "PHP SDK for Klaviyo's API.",
55
"keywords": [
66
"openapitools",

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Configuration
100100
*
101101
* @var string
102102
*/
103-
protected $userAgent = 'klaviyo-api-php/14.0.1';
103+
protected $userAgent = 'klaviyo-api-php/14.0.2';
104104

105105
/**
106106
* Debug switch (default set to false)
@@ -433,7 +433,7 @@ public static function toDebugReport()
433433
$report .= ' OS: ' . php_uname() . PHP_EOL;
434434
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
435435
$report .= ' The version of the OpenAPI document: 2025-04-15' . PHP_EOL;
436-
$report .= ' SDK Package Version: 14.0.1' . PHP_EOL;
436+
$report .= ' SDK Package Version: 14.0.2' . PHP_EOL;
437437
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
438438

439439
return $report;

lib/KlaviyoAPI.php

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,65 @@
3030

3131

3232
class KlaviyoAPI {
33+
/** @var string */
3334
public $api_key = "API_KEY";
35+
/** @var int */
3436
public $wait_seconds;
37+
/** @var int */
3538
public $num_retries;
39+
/** @var string */
3640
public $config;
41+
/** @var array */
3742
public $guzzle_options;
43+
/** @var Subclient<AccountsApi> */
3844
public $Accounts;
45+
/** @var Subclient<CampaignsApi> */
3946
public $Campaigns;
47+
/** @var Subclient<CatalogsApi> */
4048
public $Catalogs;
49+
/** @var Subclient<CouponsApi> */
4150
public $Coupons;
51+
/** @var Subclient<DataPrivacyApi> */
4252
public $DataPrivacy;
53+
/** @var Subclient<EventsApi> */
4354
public $Events;
55+
/** @var Subclient<FlowsApi> */
4456
public $Flows;
57+
/** @var Subclient<FormsApi> */
4558
public $Forms;
59+
/** @var Subclient<ImagesApi> */
4660
public $Images;
61+
/** @var Subclient<ListsApi> */
4762
public $Lists;
63+
/** @var Subclient<MetricsApi> */
4864
public $Metrics;
65+
/** @var Subclient<ProfilesApi> */
4966
public $Profiles;
67+
/** @var Subclient<ReportingApi> */
5068
public $Reporting;
69+
/** @var Subclient<ReviewsApi> */
5170
public $Reviews;
71+
/** @var Subclient<SegmentsApi> */
5272
public $Segments;
73+
/** @var Subclient<TagsApi> */
5374
public $Tags;
75+
/** @var Subclient<TemplatesApi> */
5476
public $Templates;
77+
/** @var Subclient<TrackingSettingsApi> */
5578
public $TrackingSettings;
79+
/** @var Subclient<WebFeedsApi> */
5680
public $WebFeeds;
81+
/** @var Subclient<WebhooksApi> */
5782
public $Webhooks;
5883

5984

60-
85+
/**
86+
* @param string $api_key
87+
* @param int $num_retries
88+
* @param ?int $wait_seconds
89+
* @param array $guzzle_options
90+
* @param string $user_agent_suffix
91+
*/
6192
public function __construct($api_key, $num_retries = 3, $wait_seconds = null, $guzzle_options = [], $user_agent_suffix = "") {
6293

6394
if (gettype($num_retries) == 'NULL'){

lib/Model/CampaignValuesRequestDTOResourceObjectAttributesTimeframe.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* CampaignValuesRequestDTOResourceObjectAttributesTimeframe Class Doc Comment
3636
*
3737
* @category Class
38-
* @description The timeframe to query for data within. The max length a timeframe can be is 1 year
38+
* @description The time frame to pull data from (Max length: 1 year). See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).
3939
* @package KlaviyoAPI
4040
* @author OpenAPI Generator team
4141
* @link https://openapi-generator.tech

0 commit comments

Comments
 (0)