12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- class Stats extends HttpBase {
- private $package;
- private $bundle;
- public function __construct() {
- parent::__construct();
- $this->package = \Constants::$packageName;
- $this->bundle = \Constants::$bundle_id;
- }
- public function getStats($startDate, $endDate, $type = 'android', $retries = 1) {
- if ($type == 'ios') {
- $fields = array(
- 'start_date' => $startDate,
- 'end_date' => $endDate,
- 'restricted_package_name' => $this->bundle
- );
- } else {
- $fields = array(
- 'start_date' => $startDate,
- 'end_date' => $endDate,
- 'restricted_package_name' => $this->package
- );
- }
-
-
- $result = $this->getResult(\PushRequestPath::V1_GET_MESSAGE_COUNTERS(), $fields, $retries);
- return $result;
- }
- }
- ?>
|