Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Login to Youtube Using PHP?

I want to use the youtube api to get the users new subscription videos with this api call:

http://gdata.youtube.com/feeds/api/users/default/newsubscriptionvideos

Without logging in I get this response:

User authentication required.
Error 401

How can I login to youtube from php?

like image 686
dan Avatar asked May 30 '10 10:05

dan


1 Answers

You can use OAuth, AuthSub, or ClientLogin. ClientLogin is simplest (it just uses a username/password), but discouraged because it requires users to turn over their credentials to you. AuthSub and OAuth do not. Google's PHP library currently seems to only support AuthSub (PHP example) and ClientLogin.

like image 113
Matthew Flaschen Avatar answered Sep 29 '22 03:09

Matthew Flaschen