Class: Youtube::Video
- Inherits:
-
ActiveYoutube
- Object
- ActiveResource::Base
- ActiveYoutube
- Youtube::Video
- Defined in:
- lib/simple_youtube/youtube.rb
Class Method Summary collapse
Methods inherited from ActiveYoutube
Methods included from EntryInterfaceShim
Class Method Details
.update(scope, user_name, update_xml, oauth_token, x_gdata_key) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/simple_youtube/youtube.rb', line 4 def self.update scope, user_name, update_xml, oauth_token, x_gdata_key RestClient.put( "http://gdata.youtube.com/feeds/api/users/#{user_name}/uploads/#{scope}", update_xml, { 'Authorization' => "Bearer #{oauth_token}", 'Content-Type' => 'application/atom+xml', 'GData-Version' => '2', 'X-GData-Key' => "key=#{x_gdata_key}" }) end |