public function checkConnection()
{
$connection = false;
try {
$date = new \DateTime();
$url = "https://partner-int-api.groupon.com/reporting/v2/order.json?clientId={$this->_credentials['apipassword']}&group=order&date=[{$date->format('Y-m-d')}&date={$date->format('Y-m-d')}]";
$valuesFormExport = array();
$urls = array();
$urls[] = new \Oara\Curl\Request($url, $valuesFormExport);
$exportReport = $this->_client->get($urls);
if ($exportReport[0] === false) {
throw new \Exception("API key not valid");
}
$connection = true;
} catch (\Exception $e) {
}
return $connection;
}