I am trying to fetch YouTube subtitles using PHP, but I am encountering difficulties. Specifically, I cannot retrieve the subtitles using the typical methods, such as file_get_contents or curl_init. I would like to know how I can manage this process effectively in PHP without relying on those functions.
Additionally, I have created a project in Google Cloud Console and set up the necessary credentials, but I am still not able to retrieve the subtitles from YouTube. I would appreciate any guidance on how to properly configure my PHP code to successfully obtain YouTube subtitles and any steps I may need to follow in the Google Cloud Console to ensure everything is set up correctly.
Thank you for your help!