Model/Apiconnector/Client.php
public function validate($apiUsername, $apiPassword)
    {
        if ($apiUsername && $apiPassword) {
            $this->setApiUsername($apiUsername)
                ->setApiPassword($apiPassword);
            $accountInfo = $this->getAccountInfo();

            if (isset($accountInfo->message)) {
                $message = 'VALIDATION ERROR :  ' . $accountInfo->message;
                $this->helper->debug('validate', [$message]);

                return false;
            }

            return $accountInfo;
        }

        return false;
    }
public function validate($apiUsername, $apiPassword)
    {
        if ($apiUsername && $apiPassword) {
            $this->setApiUsername($apiUsername)
                ->setApiPassword($apiPassword);
            $accountInfo = $this->getAccountInfo();

            if (isset($accountInfo->message)) {
                $message = 'VALIDATION ERROR :  ' . $accountInfo->message;
                $this->helper->debug('validate', [$message]);

                return false;
            }

            return $accountInfo;
        }

        return false;
    }
public function validate ( $ apiUsername , $ apiPassword ) { if ( $ apiUsername && $ apiPassword ) { $ this -> setApiUsername ( $ apiUsername ) -> setApiPassword ( $ apiPassword ) ; $ accountInfo = $ this -> getAccountInfo ( ) ; if ( isset ( $ accountInfo -> message ) ) { $ message = 'VALIDATION ERROR :  ' . $ accountInfo -> message ; $ this -> helper -> debug ( 'validate' , [ $ message ] ) ; return false ; } return $ accountInfo ; } return false ; }
Api validation.

@param string $apiUsername
@param string $apiPassword

@return bool|mixed
Api validation .