<?php
$config = require __DIR__ . '/config.php';
$url = "https://api.stlouisfed.org/fred/series/observations?series_id=DCOILBRENTEU&api_key={$config['fred_api_key']}&file_type=json&limit=1";
echo "<h2>FRED Oil Test</h2>";
echo "<pre>";
print_r(json_decode(file_get_contents($url), true));
echo "</pre>";
?>