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

checkConnection() public method

public checkConnection ( ) : boolean
return boolean
    public function checkConnection()
    {
        $connection = false;
        // If not login properly the construct launch an exception
        $result = self::request("https://api.commissionfactory.com.au/V1/Affiliate/Merchants?apiKey={$this->_apiKey}&status=Joined");
        if (count($result) > 0) {
            $connection = true;
        }
        return $connection;
    }