Oara\Network\Publisher\Itunes::checkConnection PHP Method

checkConnection() public method

public checkConnection ( ) : boolean
return boolean
    public function checkConnection()
    {
        //If not login properly the construct launch an exception
        $connection = true;
        $result = \file_get_contents("https://{$this->_pass}@itunes-api.performancehorizon.com/user/publisher.json");
        if ($result == false) {
            $connection = false;
        }
        return $connection;
    }