Search code examples
youtube-apigoogle-developer-tools

YouTube lifetime token for a server


I'm trying yo create a private application that manages a YouTube account all time, not different ones for clients, only one and the client has access to create a video streaming or other functions with YouTube API v3. Only I found how to the clients logging and manage their accounts but not only one channel all time. How i can do that?


Solution

  • YouTube lifetime token for a server

    What you are refering to is something called service accounts. Its designed for server to server interaction. This type of autohrization is not supported by the YouTube API you need to use Oauth2.

    I'm trying yo create a private application that manages a YouTube account all time, not different ones for clients, only one and the client has access to create a video streaming or other functions with YouTube API v3.

    You may have some issues here. You will need to create a project on Google developer console for your application and create Oauth2 credetinals.

    In order to upload videos that are public your app will need to be verified. Application verification takes time with youtube api. Make sure to apply for it early.

    Only I found how to the clients logging and manage their accounts but not only one channel all time.

    YouTube authorization is channel based. Your users will need to be authorized for each one of their channels. There is no way to authorize a single user to access all of their channels in one go. It has to be per channel.