public function withCredentials($username, $password)
	{
		$this->cookie = null;
		$this->credentials = array('username' => $username, 'password' => $password);
		return $this;
	}
public function withCredentials($username, $password)
	{
		$this->cookie = null;
		$this->credentials = array('username' => $username, 'password' => $password);
		return $this;
	}
public function withCredentials ( $ username , $ password ) { $ this -> cookie = null ; $ this -> credentials = array ( 'username' => $ username , 'password' => $ password ) ; return $ this ; }
Upload media by using credentials.

@param string Username
@param string Password
@return $this
Upload media by using credentials .