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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With