When trying to fetch a private video by id the request fails:
client = YouTubeIt::Client.new(:username => user, :password => password :dev_key => dev_key)
id = ARGV[0]
video = client.video_by(id)
/home/muffl0n/.gem/ruby/1.8/gems/youtube_it-2.1.7/lib/youtube_it/parser.rb:10:in `initialize': 403 (OpenURI::HTTPError)
from /home/muffl0n/.gem/ruby/1.8/gems/youtube_it-2.1.7/lib/youtube_it/client.rb:97:in `new'
from /home/muffl0n/.gem/ruby/1.8/gems/youtube_it-2.1.7/lib/youtube_it/client.rb:97:in `video_by'
from youtube.rb:7
Private, pending and rejected videos would not appear in a response to an unauthorized API request or a request for videos uploaded by someone other than the currently authenticated user.
So it seems that the API call doesn't know about the user I logged in with in the script.
When trying to fetch a private video by id the request fails:
The URL youtube_it calls is
When I switch the video to public everything works fine.
The Youtube-API-Documentation (https://developers.google.com/youtube/2.0/reference#youtubeDataAPIFeedTypes) says:
So it seems that the API call doesn't know about the user I logged in with in the script.