0
我需要在Rails上使用picasaweb中的圖像(添加,刪除,查看)。我嘗試了一些寶石(picasa等)。但寶石和json只返回相冊,圖像數組是空的。來自picasaweb on Rails的圖片
我需要在Rails上使用picasaweb中的圖像(添加,刪除,查看)。我嘗試了一些寶石(picasa等)。但寶石和json只返回相冊,圖像數組是空的。來自picasaweb on Rails的圖片
使用這種寶石與例如:
require "picasa"
# get some photos in an album
client = Picasa::Client.new(user_id: "[email protected]", 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
你有,你實現這個功能的項目? –