Hi Christian,
`login()` is analogous to HTTP Basic Auth.
public function login( string $username, string $password ): static
{
curl_setopt_array( $this->curl, array(
CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
CURLOPT_USERPWD => "{$username}:{$password}"
) );
return $this;
}
We'll update the documentation to have a non-framework example.