Model/Apiconnector/Rest.php
private function setAuth(&$ch)
    {
        if ($this->apiUsername !== null && $this->apiPassword !== null) {
            curl_setopt($ch, CURLAUTH_BASIC, CURLAUTH_DIGEST);
            curl_setopt(
                $ch,
                CURLOPT_USERPWD,
                $this->apiUsername . ':' . $this->apiPassword
            );
        }
    }
private function setAuth(&$ch)
    {
        if ($this->apiUsername !== null && $this->apiPassword !== null) {
            curl_setopt($ch, CURLAUTH_BASIC, CURLAUTH_DIGEST);
            curl_setopt(
                $ch,
                CURLOPT_USERPWD,
                $this->apiUsername . ':' . $this->apiPassword
            );
        }
    }
private function setAuth ( & $ ch ) { if ( $ this -> apiUsername !== null && $ this -> apiPassword !== null ) { curl_setopt ( $ ch , CURLAUTH_BASIC , CURLAUTH_DIGEST ) ; curl_setopt ( $ ch , CURLOPT_USERPWD , $ this -> apiUsername . ':' . $ this -> apiPassword ) ; } }
Basic auth.

@param mixed $ch

@return null
Basic auth .