Unhandled Error!

File_get_contents(https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PLW6XWIuQRjOmkwZRF9dg0lx3UL3CN5Vzy&key=AIzaSyA_lfP8gPVj_sO3e5DbjUrjWoOX0pqNN2s): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

Document Video gallery with YouTube Playlists. Manage videos in YouTube.
Document type CMS page
Line 13
Exception class Cms_ExecutionException

Code Highlight

  )
);
 
$product17 = stream_context_create($p17);
 
// Open the file using the HTTP headers set above
$pv17playlistItems = file_get_contents('https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=PLW6XWIuQRjOmkwZRF9dg0lx3UL3CN5Vzy&key=AIzaSyA_lfP8gPVj_sO3e5DbjUrjWoOX0pqNN2s', false, $product17);
$pv17playlist = json_decode ($pv17playlistItems,true);
 
// Create a stream
$lvopts = array(
  'http'=>array(
    'method'=>"GET",
# Document Type
1 Video gallery with YouTube Playlists. Manage videos in YouTube. CMS page