Uploading video to Youtube using Youtube Data API V3 and Google API Client PHP — getting 401 (unauthorized) message

百般思念 提交于 2019-11-29 05:20:01

I had the exact same problem.

Check your youtube account. Do you have a channel created? If you don't you wont be able to add videos (via API or even in youtube).

After creating the channel in youtube it worked. no need for new code or new keys.

Aijaz

For Those who are getting the problem of Access Not Configured. Please use Google Developers Console to activate the API for your project,

code by @justine1234 is working perfectly fine. Just remove

$client->setDeveloperKey('DEVELOPER_KEY');

and run it.

Thanks a lot for the code @justine1234.

Regards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!