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

checkConnection() public method

Check the connection
public checkConnection ( )
    public function checkConnection()
    {
        $connection = false;
        $now = new \DateTime();
        $apiURL = "https://www.viglink.com/service/v1/cuidRevenue?lastDate={$now->format("Y/m/d")}&period=month&secret={$this->_apiPassword}";
        $response = self::call($apiURL);
        if (\is_array($response)) {
            $connection = true;
        }
        return $connection;
    }