src/WebRequest.php
public function setCredentials($username, $password)
    {
        $this->setCurlOption(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
        $this->setCurlOption(CURLOPT_USERPWD, $username . ":" . $password);
    }
public function setCredentials($username, $password)
    {
        $this->setCurlOption(CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
        $this->setCurlOption(CURLOPT_USERPWD, $username . ":" . $password);
    }
public function setCredentials ( $ username , $ password ) { $ this -> setCurlOption ( CURLOPT_HTTPAUTH , CURLAUTH_BASIC ) ; $ this -> setCurlOption ( CURLOPT_USERPWD , $ username . ":" . $ password ) ; }
Defines Basic credentials for access the service.

@param string $username
@param string $password
Defines Basic credentials for access the service .