Skip to content

Commit 90fc841

Browse files
committed
V24.4.0 - 2024-04-16
1 parent c423f74 commit 90fc841

File tree

9 files changed

+336
-4
lines changed

9 files changed

+336
-4
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property \PHPFUI\ConstantContact\UUID $campaign_id The ID that uniquely identifies the campaign.
9+
* @property string $campaign_name The name to associate with this campaign.
10+
* @property \PHPFUI\ConstantContact\DateTime $last_sent_date The date that the campaign was last sent.
11+
* @property \PHPFUI\ConstantContact\Definition\UniqueSmsCounts $unique_counts Aggregate counts for email tracking metrics unique across contacts and channels
12+
* @property string $campaign_type The campaign type.
13+
*/
14+
class BulkCampaignSummary extends \PHPFUI\ConstantContact\Definition\Base
15+
{
16+
protected static array $fields = [
17+
'campaign_id' => '\PHPFUI\ConstantContact\UUID',
18+
'campaign_name' => 'string',
19+
'last_sent_date' => '\PHPFUI\ConstantContact\DateTime',
20+
'unique_counts' => '\PHPFUI\ConstantContact\Definition\UniqueSmsCounts',
21+
'campaign_type' => 'string',
22+
23+
];
24+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property int $deliver The aggregated SMS delivery rate for all campaigns on the current results page.
9+
* @property int $click The aggregated click rate for all campaigns on the current results page.
10+
* @property int $bounce The aggregated bounce rate for all campaigns on the current results page.
11+
* @property int $unsubscribe The aggregated unsubscribe (opt-out) rate for all campaigns on the current results page.
12+
*/
13+
class BulkSmsCampaignSummariesPercents extends \PHPFUI\ConstantContact\Definition\Base
14+
{
15+
protected static array $fields = [
16+
'deliver' => 'int',
17+
'click' => 'int',
18+
'bounce' => 'int',
19+
'unsubscribe' => 'int',
20+
21+
];
22+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property \PHPFUI\ConstantContact\Definition\ReportingsmsNext $next Contains the next link if it is available.
9+
*/
10+
class ReportingsmsLinks extends \PHPFUI\ConstantContact\Definition\Base
11+
{
12+
protected static array $fields = [
13+
'next' => '\PHPFUI\ConstantContact\Definition\ReportingsmsNext',
14+
15+
];
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property string $href The next link in the page or null if there are no additional pages.
9+
*/
10+
class ReportingsmsNext extends \PHPFUI\ConstantContact\Definition\Base
11+
{
12+
protected static array $fields = [
13+
'href' => 'string',
14+
15+
];
16+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property array<\PHPFUI\ConstantContact\Definition\BulkCampaignSummary> $bulk_sms_campaign_summaries Provides details about each SMS campaign, including the total unique counts for each tracked campaign activity.
9+
* @property \PHPFUI\ConstantContact\Definition\BulkSmsCampaignSummariesPercents $aggregate_percents Campaign activity aggregate percents, including <code>click</code>, <code> deliver</code>, <code> bounce</code>, and <code>unsubscribe</code>, for all SMS campaigns returned on a page of results.
10+
* @property \PHPFUI\ConstantContact\Definition\ReportingsmsLinks $_links HAL property that contains next link if applicable
11+
*/
12+
class SmsCampaignSummariesPage extends \PHPFUI\ConstantContact\Definition\Base
13+
{
14+
protected static array $fields = [
15+
'bulk_sms_campaign_summaries' => 'array<\PHPFUI\ConstantContact\Definition\BulkCampaignSummary>',
16+
'aggregate_percents' => '\PHPFUI\ConstantContact\Definition\BulkSmsCampaignSummariesPercents',
17+
'_links' => '\PHPFUI\ConstantContact\Definition\ReportingsmsLinks',
18+
19+
];
20+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property int $sends The total number of unique sends.
9+
* @property int $clicks The total number of unique clicks.
10+
* @property int $optouts The total number of unique opt-outs (unsubscribes).
11+
* @property int $delivers The total number of SMS delivered.
12+
* @property int $bounces The total number of unique bounces.
13+
*/
14+
class UniqueSmsCounts extends \PHPFUI\ConstantContact\Definition\Base
15+
{
16+
protected static array $fields = [
17+
'sends' => 'int',
18+
'clicks' => 'int',
19+
'optouts' => 'int',
20+
'delivers' => 'int',
21+
'bounces' => 'int',
22+
23+
];
24+
}

src/ConstantContact/V3/Partner/Accounts/Users/Sso.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
1515
* POST a User Under a Partner's SSO-Enabled Client Account
1616
*
1717
* Use this endpoint to create a new user under a partner client account
18-
* that has the Single Sign On (SSO) for all users feature is enabled.
19-
*
18+
* that has the Single Sign On (SSO) for all users feature enabled.
2019
*
2120
* @param string $encoded_account_id The encoded account ID that identifies the partner's client account to which to add the new user.
2221
* @param \PHPFUI\ConstantContact\Definition\SSOUser $SSO_User The JSON payload used to create a new user under the specified partner's client account. All request body properties are required (`first_name`, `last_name`, `role_name`, `contact_email`, `login_name`, `external_id`, `external_provider`).
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\V3\Reports\SummaryReports;
6+
7+
class SmsCampaignSummaries extends \PHPFUI\ConstantContact\Base
8+
{
9+
public function __construct(\PHPFUI\ConstantContact\Client $client)
10+
{
11+
parent::__construct($client, '/v3/reports/summary_reports/sms_campaign_summaries');
12+
}
13+
14+
/**
15+
* GET an SMS Campaigns Summary Report
16+
*
17+
* Use this method to get a summary of aggregate tracking statistics for
18+
* up to 500 SMS campaigns.
19+
* The response results include the total number of times that each contact
20+
* uniquely interacted with each tracked campaign activity. Results are
21+
* sorted in descending order by the date the SMS was last sent (`last_sent_date`).
22+
* Use the `limit` query parameter to limit the number of results returned
23+
* per page. For example, if you may want to compare the tracking statistics
24+
* for the last five SMS campaigns to those in the previous five SMS campaigns,
25+
* set the `limit` parameter to `5`.
26+
*
27+
* @param string $limit Use to limit the number of results to return on a single page. The default is `50` and the maximum is `500` per page.
28+
*/
29+
public function get(?string $limit = null) : array
30+
{
31+
32+
return $this->doGet(['limit' => $limit, ]);
33+
}
34+
}

0 commit comments

Comments
 (0)