in modules/quanthub_sdmx_sync/src/QuanthubSdmxClient.php [206:235]
public function datasetAvaiability(string $urn) {
$baseUri = getenv('SDMX_API_URL') . '/workspaces/' . getenv('SDMX_WORKSPACE_ID') . '/registry/sdmx-plus/availability/dataflow/';
$guzzleClient = $this->httpClientFactory->fromOptions([
'base_uri' => $baseUri,
'headers' => $this->headers,
]);
$urn_for_url = $this->transformUrn($urn);
$empty_body = [
'endPeriod' => '9999A',
'filters' => [],
'mode' => 'available',
'references' => 'none',
'startPeriod' => '0001A',
];
try {
return json_decode($guzzleClient->post(
$urn_for_url,
[RequestOptions::JSON => $empty_body]
)->getBody(), TRUE);
}
catch (\Exception $e) {
$this->logger->error('Failed to retrieve dataset structure: @error.', [
'@error' => $e->getMessage(),
]);
}
}