-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
428 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
// Generated file. Do not edit by hand. Use update.php in project root. | ||
|
||
namespace PHPFUI\ConstantContact\Definition; | ||
|
||
/** | ||
* @property \PHPFUI\ConstantContact\UUID $campaign_id The ID that uniquely identifies the campaign. | ||
* @property string $campaign_name The name to associate with this campaign. | ||
* @property \PHPFUI\ConstantContact\DateTime $last_sent_date The date that the campaign was last sent. | ||
* @property \PHPFUI\ConstantContact\Definition\UniqueSmsCounts $unique_counts The total number of times each unique contact interacted with a tracked SMS campaign activity. | ||
* @property string $campaign_type The campaign type. | ||
*/ | ||
class BulkCampaignSummary extends \PHPFUI\ConstantContact\Definition\Base | ||
{ | ||
protected static array $fields = [ | ||
'campaign_id' => '\PHPFUI\ConstantContact\UUID', | ||
'campaign_name' => 'string', | ||
'last_sent_date' => '\PHPFUI\ConstantContact\DateTime', | ||
'unique_counts' => '\PHPFUI\ConstantContact\Definition\UniqueSmsCounts', | ||
'campaign_type' => 'string', | ||
|
||
]; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/ConstantContact/Definition/BulkSmsCampaignSummariesPercents.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
// Generated file. Do not edit by hand. Use update.php in project root. | ||
|
||
namespace PHPFUI\ConstantContact\Definition; | ||
|
||
/** | ||
* @property int $deliver The aggregated SMS delivery rate for all campaigns on the current results page. | ||
* @property int $click The aggregated click rate for all campaigns on the current results page. | ||
* @property int $bounce The aggregated bounce rate for all campaigns on the current results page. | ||
* @property int $unsubscribe The aggregated unsubscribe (opt-out) rate for all campaigns on the current results page. | ||
*/ | ||
class BulkSmsCampaignSummariesPercents extends \PHPFUI\ConstantContact\Definition\Base | ||
{ | ||
protected static array $fields = [ | ||
'deliver' => 'int', | ||
'click' => 'int', | ||
'bounce' => 'int', | ||
'unsubscribe' => 'int', | ||
|
||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
// Generated file. Do not edit by hand. Use update.php in project root. | ||
|
||
namespace PHPFUI\ConstantContact\Definition; | ||
|
||
/** | ||
* @property \PHPFUI\ConstantContact\Definition\ReportingsmsNext $next Contains the next link if it is available. | ||
*/ | ||
class ReportingsmsLinks extends \PHPFUI\ConstantContact\Definition\Base | ||
{ | ||
protected static array $fields = [ | ||
'next' => '\PHPFUI\ConstantContact\Definition\ReportingsmsNext', | ||
|
||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
// Generated file. Do not edit by hand. Use update.php in project root. | ||
|
||
namespace PHPFUI\ConstantContact\Definition; | ||
|
||
/** | ||
* @property string $href The next link in the page or null if there are no additional pages. | ||
*/ | ||
class ReportingsmsNext extends \PHPFUI\ConstantContact\Definition\Base | ||
{ | ||
protected static array $fields = [ | ||
'href' => 'string', | ||
|
||
]; | ||
} |
20 changes: 20 additions & 0 deletions
20
src/ConstantContact/Definition/SmsCampaignSummariesPage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
// Generated file. Do not edit by hand. Use update.php in project root. | ||
|
||
namespace PHPFUI\ConstantContact\Definition; | ||
|
||
/** | ||
* @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. | ||
* @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. | ||
* @property \PHPFUI\ConstantContact\Definition\ReportingsmsLinks $_links HAL property that contains next link if applicable | ||
*/ | ||
class SmsCampaignSummariesPage extends \PHPFUI\ConstantContact\Definition\Base | ||
{ | ||
protected static array $fields = [ | ||
'bulk_sms_campaign_summaries' => 'array<\PHPFUI\ConstantContact\Definition\BulkCampaignSummary>', | ||
'aggregate_percents' => '\PHPFUI\ConstantContact\Definition\BulkSmsCampaignSummariesPercents', | ||
'_links' => '\PHPFUI\ConstantContact\Definition\ReportingsmsLinks', | ||
|
||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
// Generated file. Do not edit by hand. Use update.php in project root. | ||
|
||
namespace PHPFUI\ConstantContact\Definition; | ||
|
||
/** | ||
* @property int $sends The total number of unique sends. | ||
* @property int $delivers The total number of SMS delivered. | ||
* @property int $opens The total number of unique opens. | ||
* @property int $clicks The total number of unique clicks. | ||
* @property int $optouts The total number of unique opt-outs (unsubscribes). | ||
*/ | ||
class UniqueSmsCounts extends \PHPFUI\ConstantContact\Definition\Base | ||
{ | ||
protected static array $fields = [ | ||
'sends' => 'int', | ||
'delivers' => 'int', | ||
'opens' => 'int', | ||
'clicks' => 'int', | ||
'optouts' => 'int', | ||
|
||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/ConstantContact/V3/Reports/SummaryReports/SmsCampaignSummaries.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
// Generated file. Do not edit by hand. Use update.php in project root. | ||
|
||
namespace PHPFUI\ConstantContact\V3\Reports\SummaryReports; | ||
|
||
class SmsCampaignSummaries extends \PHPFUI\ConstantContact\Base | ||
{ | ||
public function __construct(\PHPFUI\ConstantContact\Client $client) | ||
{ | ||
parent::__construct($client, '/v3/reports/summary_reports/sms_campaign_summaries'); | ||
} | ||
|
||
/** | ||
* GET an SMS Campaigns Summary Report | ||
* | ||
* Use this method to get SMS campaign summary details, including the total | ||
* number of times that each contact uniquely interacted with each tracked | ||
* campaign activity and aggregate tracking statistics. Results are sorted | ||
* in descending order by the date the SMS was last sent (`last_sent_date`). | ||
* | ||
* The `start_at` date is required. Use both the `start_at` and `end_at` | ||
* date query parameters to return only SMS campaign summary details that | ||
* occurred within a specified date range. | ||
* Use the `limit` query parameter to limit the number of results returned | ||
* per page. | ||
* | ||
* @param string $limit Use to limit the number of results to return on a single page (from 1 to 50). The default setting is 50. | ||
* @param string $start_at Use to limit the results to include SMS campaign summary details for SMS campaigns sent on or after the required `start_at` date you specify. ISO 8601 format. | ||
* @param string $end_at Use to limit the results to include SMS campaign summary details for SMS campaigns sent on or before the `end_at` date you specify. ISO 8601 format. | ||
*/ | ||
public function get(?string $limit = null, string $start_at, ?string $end_at = null) : ?array | ||
{ | ||
|
||
return $this->doGet(['limit' => $limit, 'start_at' => $start_at, 'end_at' => $end_at, ]); | ||
} | ||
|
||
public function getTyped(?string $limit = null, string $start_at, ?string $end_at = null) : ?\PHPFUI\ConstantContact\Definition\SmsCampaignSummariesPage | ||
{ | ||
$data = $this->get($limit, $start_at, $end_at); | ||
|
||
return $data ? new \PHPFUI\ConstantContact\Definition\SmsCampaignSummariesPage($data) : null; | ||
} | ||
|
||
} |
Oops, something went wrong.