original_string: private function getRequestHeaders($url, array $parameters)
      {
          $headers = array();
  
          if (isset($this->clientId) && isset($this->sharedSecret)) {
              $objectIdentifier = null;
              if ($this->apiVersion === '1.1' && isset($parameters['id'])) {
                  $objectIdentifier = $parameters['id'];
              } elseif ($this->apiVersion === '1.0' && isset($parameters['api_id'])) {
                  $objectIdentifier = $parameters['api_id'];
              }
  
              $headers['X-Tulip-Client-ID'] = $this->clientId;
              $headers['X-Tulip-Client-Authentication'] = hash_hmac('sha256', $this->clientId.$url.$objectIdentifier, $this->sharedSecret);
          }
  
          return $headers;
      }
code: private function getRequestHeaders($url, array $parameters)
      {
          $headers = array();
  
          if (isset($this->clientId) && isset($this->sharedSecret)) {
              $objectIdentifier = null;
              if ($this->apiVersion === '1.1' && isset($parameters['id'])) {
                  $objectIdentifier = $parameters['id'];
              } elseif ($this->apiVersion === '1.0' && isset($parameters['api_id'])) {
                  $objectIdentifier = $parameters['api_id'];
              }
  
              $headers['X-Tulip-Client-ID'] = $this->clientId;
              $headers['X-Tulip-Client-Authentication'] = hash_hmac('sha256', $this->clientId.$url.$objectIdentifier, $this->sharedSecret);
          }
  
          return $headers;
      }
code_tokens: private function getRequestHeaders ( $ url , array $ parameters ) { $ headers = array ( ) ; if ( isset ( $ this -> clientId ) && isset ( $ this -> sharedSecret ) ) { $ objectIdentifier = null ; if ( $ this -> apiVersion === '1.1' && isset ( $ parameters [ 'id' ] ) ) { $ objectIdentifier = $ parameters [ 'id' ] ; } elseif ( $ this -> apiVersion === '1.0' && isset ( $ parameters [ 'api_id' ] ) ) { $ objectIdentifier = $ parameters [ 'api_id' ] ; } $ headers [ 'X-Tulip-Client-ID' ] = $ this -> clientId ; $ headers [ 'X-Tulip-Client-Authentication' ] = hash_hmac ( 'sha256' , $ this -> clientId . $ url . $ objectIdentifier , $ this -> sharedSecret ) ; } return $ headers ; }
docstring: Returns the request authentication headers when a client ID and shared secret are provided.
  
  @param string $url
  @param array  $parameters
  
  @return array
docstring_tokens: Returns the request authentication headers when a client ID and shared secret are provided .