= GData
== DESCRIPTION:
Ruby wrapper for working with Google Data APIs
== SYNOPSIS:
yt = GData::Client::YouTube.new yt.source = 'my_cool_application' yt.clientlogin('username', 'password') yt.client_id = 'CLIENT_ID' yt.developer_key = 'DEVELOPER_KEY' feed = yt.get('http://gdata.youtube.com/feeds/api/users/default/uploads').to_xml
entry = <<-EOF <entry xmlns="http://www.w3.org/2005/Atom" xmlns:yt="http://gdata.youtube.com/schemas/2007">
<summary>This is a test playlist.</summary>
EOF
response = yt.post('http://gdata.youtube.com/feeds/api/users/default/playlists', entry).to_xml
edit_uri = response.elements["link[@rel='edit']"].attributes['href']
response.elements["summary"].text = "Updated description"
response = yt.put(edit_uri, response.to_s).to_xml
yt.delete(edit_uri).to_xml
test_movie = '/path/to/a/movie.mov' mime_type = 'video/quicktime' feed = 'http://uploads.gdata.youtube.com/feeds/api/users/default/uploads'
entry = <<EOF <entry xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007">