argonath88
argonath88

Reputation: 453

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

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?

Upvotes: 5

Views: 22033

Answers (1)

Ibrahim Ulukaya
Ibrahim Ulukaya

Reputation: 12877

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.

Upvotes: 8

Related Questions