Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GuzzleHttpExceptionConnectException: cURL error 7: (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /(...)/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186
- CURLE_COULDNT_CONNECT (7)
- Failed to connect() to host or proxy.
- composer require google/apiclient
- $client = new Google_Client();
- $client->setDeveloperKey($this->config->item('google_key'));
- $youtube = new Google_Service_YouTube($client);
- // The next line throws the exception:
- $response = $youtube->playlistItems->listPlaylistItems('snippet', ['playlistId' => $this->config->item('youtube_playlist_id'), 'maxResults' => 20]);
- // More code
Add Comment
Please, Sign In to add comment