[ 'method' => 'GET', 'header' => "Authorization: 0jtejwpeshav\r\n" . "Content-Type: application/json\r\n" ] ]); $response = file_get_contents($apiUrl, false, $context); $posts = json_decode($response, true); if ($posts !== null && isset($posts['data']['blogs'])) { foreach ($posts['data']['blogs'] as $post) { ?>
Blog post featured image

0) { $contentItem = $contentArray[0]; echo "

" . htmlspecialchars($contentItem['content']) . "

"; } ?>

Unable to fetch blog posts..

"; } ?>