Current Path : /home/church/michaelblakemenswear.com/wp-content/plugins/mailpoet/lib/API/JSON/v1/ |
Current File : /home/church/michaelblakemenswear.com/wp-content/plugins/mailpoet/lib/API/JSON/v1/Analytics.php |
<?php namespace MailPoet\API\JSON\v1; if (!defined('ABSPATH')) exit; use MailPoet\Analytics\Reporter; use MailPoet\API\JSON\Endpoint as APIEndpoint; use MailPoet\Config\AccessControl; class Analytics extends APIEndpoint { /** @var Reporter */ private $reporter; public $permissions = [ 'global' => AccessControl::NO_ACCESS_RESTRICTION, ]; public function __construct(Reporter $reporter) { $this->reporter = $reporter; } public function getTrackingData() { return $this->successResponse($this->reporter->getTrackingData()); } }