src/AuthorizesWithApiKey.php
protected function getAuthorizationHeader()
    {
        if (empty($this->apiKeyHeader) || empty($this->apiKey)) {
            throw new \Exception('API key is not set.');
        }

        return [$this->apiKeyHeader => $this->apiKey];
    }
protected function getAuthorizationHeader()
    {
        if (empty($this->apiKeyHeader) || empty($this->apiKey)) {
            throw new \Exception('API key is not set.');
        }

        return [$this->apiKeyHeader => $this->apiKey];
    }
protected function getAuthorizationHeader ( ) { if ( empty ( $ this -> apiKeyHeader ) || empty ( $ this -> apiKey ) ) { throw new \ Exception ( 'API key is not set.' ) ; } return [ $ this -> apiKeyHeader => $ this -> apiKey ] ; }
Get the authorization header for a request

@return null|array
@throws \Exception
Get the authorization header for a request