YouTube Data API: OAuth Authentication for services using V3 without user intervention

17,660

You can do so by getting a refresh token from OAuth2 Playground and setting it in your youtube object.

Here it explains a little more.

And a step by step video.

Share:
17,660
avillagomez
Author by

avillagomez

Updated on June 04, 2022

Comments

  • avillagomez
    avillagomez almost 2 years

    I'm implementing a service that automatically uploads videos to a YouTube channel once they are uploaded on a different server.

    When I first started I was using ClientLogin authentication and YouTube API v2.0 – Direct Uploading and everything worked perfectly. However, since ClientLogin is deprecated, I'm trying to update to use v3.0.

    I checked this documentation and it assumes that the file is stored locally, which in my case is not, and this service will not be running on my local machine, and I'm not able to get the access token for OAuth 2.0.

    Can anybody provide guidance?