kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

Few small fixes in: playlist, documentation and connecting to OAuth2 #103

Closed RaVbaker closed 12 years ago

RaVbaker commented 12 years ago

First one is in Readme.rdoc file which was misspelling function name. Second is for fetching data from playlist. Since now it is possible to fetch data from playlist when there are videos. Till today it works only without videos. Third adds possibility to change default connection options for OAuth2 connections.

client = YouTubeIt::OAuth2Client.new( client_access_token: yt_config["access_token"], client_refresh_token: yt_config["refresh_token"], client_id: config[:youtube_client_id], client_secret: config[:youtube_client_secret], dev_key: config[:youtube_dev_key], expires_at: 3600, connection_opts: {ssl: {verify: false}} )

Allows for tricks like this one with {ssl: {verify: false}}

What do you think about it?

chebyte commented 12 years ago

very nice features thanks!