protected function getEbayHeaders()
    {
        $headers = [];

        // Add required headers first.
        $headers[self::HDR_AUTH_TOKEN] = 'TOKEN '.$this->getConfig('authToken');

        // Add optional headers.
        if ($this->getConfig('marketplaceId')) {
            $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId');
        }

        return $headers;
    }
protected function getEbayHeaders()
    {
        $headers = [];

        
        $headers[self::HDR_AUTH_TOKEN] = 'TOKEN '.$this->getConfig('authToken');

        
        if ($this->getConfig('marketplaceId')) {
            $headers[self::HDR_MARKETPLACE_ID] = $this->getConfig('marketplaceId');
        }

        return $headers;
    }
protected function getEbayHeaders ( ) { $ headers = [ ] ; // Add required headers first. $ headers [ self :: HDR_AUTH_TOKEN ] = 'TOKEN ' . $ this -> getConfig ( 'authToken' ) ; // Add optional headers. if ( $ this -> getConfig ( 'marketplaceId' ) ) { $ headers [ self :: HDR_MARKETPLACE_ID ] = $ this -> getConfig ( 'marketplaceId' ) ; } return $ headers ; }
Builds the needed eBay HTTP headers.

@return array An associative array of eBay HTTP headers.
Builds the needed eBay HTTP headers .