YouTube Data API: OAuth Authentication for service

2019-01-12 01:37发布

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?

1条回答
叼着烟拽天下
2楼-- · 2019-01-12 02:05

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.

查看更多
登录 后发表回答