Sha256: c70ccd8aeb4cb2a9e35dd89a366d67986268bf129f3f693927f07ebc1c5585d7
Contents?: true
Size: 528 Bytes
Versions: 19
Compression:
Stored size: 528 Bytes
Contents
require "picasa" # add tags to your photos in an album. begin client = Picasa::Client.new(:user_id => "your_gmail_account", :password => "password") albums = client.album.list.entries album = albums.find { |album| album.title == "New Album" } photos = client.album.show(album.id).entries photos.each do |photo| client.tag.create( :album_id => album.id, :photo_id => photo.id, :tag_name => "test") end rescue Picasa::ForbiddenError puts "You have the wrong user_id or password." end
Version data entries
19 entries across 19 versions & 1 rubygems