Sha256: e8351f69c8448516fc5d7da0200e714d2472eb73369c129114bad52a71142bd6
Contents?: true
Size: 540 Bytes
Versions: 19
Compression:
Stored size: 540 Bytes
Contents
require "picasa" # delete all 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| if client.tag.delete(album_id, photo.id) "#{photo.title} deleted" else "#{photo.title} failed to delete" end end rescue Picasa::ForbiddenError puts "You have the wrong user_id or password." end
Version data entries
19 entries across 19 versions & 1 rubygems