图片来自 Rails 上的 picasaweb

Images from picasaweb on Rails

我需要在 Rails 上处理来自 picasaweb 的图像(添加、删除、查看)。我尝试了一些 gems(picasa 等)。但是gem和jsonreturn只有相册,图片数组是空的。

使用此 gem 示例:

require "picasa"

# get some photos in an album
client = Picasa::Client.new(user_id: "your-gmail-account@gmail.com", access_token: "oauth-access-token")

albums = client.album.list.entries
album = albums.find { |album| album.title == "New Album" }

photos = client.album.show(album.id).entries

photos.each { |photo| puts photo.title }

https://github.com/morgoth/picasa

https://github.com/morgoth/picasa/blob/master/examples/get_some_photos.rb