Hello,
I need to add
CURLOPT_HTTPHEADER => array(
"x-api-version: 2.0",
"Authorization: ApiKey key=\"{{api-key}}\""
)
in my request. How to achieve that in external_entities ?
I tried this but it didn't work :
/**
* Gets the HTTP headers to add to a request.
*
* @return array
* Associative array of headers to add to the request.
*/
public function getHttpHeaders() {
$headers = ['x-api-version' => '2.0'];
if ($this->configuration['api_key']['header_name'] && $this->configuration['api_key']['key']) {
$headers[$this->configuration['api_key']['header_name']] = $this->configuration['api_key']['key'];
}
return $headers;
}
Thank for your help
Active
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.