0

Is it possible to upload videos to YouTube using the YouTube Data API v3 in PHP in the background? I.e. without user interaction.

I've tried a few examples with OAuth2 and it always redirects me to a login page with a google account. Sometimes you even want to verify your identity via SMS. I read the YouTube Data API documentation perhaps in its entirety. The examples on developers.google.com only work with some redirects.

This is not usable for background video uploading. Is it even possible?

Thanks.

stvar
  • 6,551
  • 2
  • 13
  • 28
Jarda
  • 89
  • 5
  • 2
    https://developers.google.com/youtube/registering_an_application: _"This API supports two types of credentials. Create whichever credentials are appropriate for your project: [...]"_ – CBroe Sep 22 '21 at 11:14
  • 1
    This is the answer to your question: [How to get my own Google API access token without using "Log in with Google"?](https://stackoverflow.com/a/69149937/8327971) – stvar Sep 22 '21 at 11:58
  • You may also tailor to your needs this sample code from Google: [resumable_upload.php](https://github.com/youtube/api-samples/blob/master/php/resumable_upload.php). – stvar Sep 22 '21 at 12:05
  • RE: "This API supports two types of credentials. Create whichever credentials are appropriate for your project: [...]" : However, API keys for upload cannot be used. Upload requires user authentication. – Jarda Sep 23 '21 at 12:15
  • All of the above examples require manual verification. The expiration time is one hour and then verified again. It is therefore not usable for automatic background synchronization. – Jarda Oct 05 '21 at 15:00
  • @Jarda could you solve your problems? – squadwuschel Mar 04 '23 at 10:09

0 Answers0