kylejginavan/youtube_it — pull request #107 by nazarhussain (2012-07-13 11:16:30+00:00)
Title: Youtube Captions API integeration

Hi,

I embedded Youtube Captions API (https://developers.google.com/youtube/2.0/developers_guide_protocol_captions) which was needed for one of my project.

The `captions_update` methods can be used to add new or update existing captions. This is the current options that are supported for this methods.

```ruby
{
:language => 'en-US',
:slug => ''"
}
```

Its signature is `captions_update(video_id,data,opts)` where as data is the content of captions file which can easily be get from `File.read`.

In future, I will embed other features of captions as well and send you the pull requests.

Thanks.