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 ); } $url = Constants::$domain.Constants::stats_url; $result = $this->getResult($url, $fields, $retries); return $result; } } ?>