So I am making a program to upload YouTube videos to my clan channel so that I can distribute it to the other clan members and everything is all set...
They open the program, they browse the file, set the title, the privacy and press Upload. DONE If they want they open the thumbnail changer, browse for the thumbnail press Upload. DONE
It works great!... In my computer, how can I make it that it works for everyone? because everytime I share it with one of the members... it doesn't work because they need to login using OAUTH (to one of their accounts).
Thanks for helping! I'm coding in C# but that is not relevant at all.. by the way I've already tried older methods present in the API but it returns invalid request.
答案 0 :(得分:1)
没有Oauth,无法使用YouTube API。如果要访问私有用户数据,则需要拥有拥有该数据的用户的权限。
您唯一的选择是验证您的代码一次并存储刷新令牌,并在其他人想要访问您的数据时使用它。如果您使用的是Google .net客户端库,请检查其存储刷新令牌。
答案 1 :(得分:0)
以下是在没有OAuth的情况下将视频上传到youtube的代码,您只需要API密钥,用户名,密码。
https://developers.google.com/youtube/2.0/developers_guide_dotnet?csw=1#Direct_Upload