question

Leam-0861 avatar image
0 Votes"
Leam-0861 asked ·

Is there a simple way outside of Azure to use the Youtube API to upload a video from Azure blob storage public URL?

Please correct me If I am wrong, but my initial thought was using an Azure function to upload a video to YouTube using Youtube API (using this code: https://developers.google.com/youtube/v3/docs/videos/insert) , but I realized that this approach isn't feasible. The YouTube Data API has two methods to access data, ApiKey and OAuth. The ApiKey method would be what wewant for server-to-server communication, but it's only able to access public information (list public videos, playlists, etc). We cannot upload videos to an account using the ApiKey method. The OAuth method is what allows us to upload videos, but this is an "interactive" OAuth flow, meaning it requires an interactive user to provide credentials in a device/browser. An Azure Function is not an interactive process. The solution to this would be to use a Service Account, which is for server-to-server OAuth. But YouTube does not support service account.

I am wondering what are other approaches that I could take? Is there a simple way outside of Azure to use the Youtube API to upload a video from Azure blob storage public URL? Thank you.

azure-webappsazure-webapps-development
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Leam-0861 We kindly request you to share your question here as it appears to be related to Azure Storage. Azure Storage at this time is still supported on MSDN forums until it's migrated to Q&A at a later date.

Thank you for your understanding.


0 Votes 0 ·

0 Answers