Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. require "picasa"
  2.  
  3. # get some photos in an album
  4. client = Picasa::Client.new(user_id: "your-gmail-account@gmail.com", access_token: "oauth-access-token")
  5.  
  6. albums = client.album.list.entries
  7. album = albums.find { |album| album.title == "New Album" }
  8.  
  9. photos = client.album.show(album.id).entries
  10.  
  11. photos.each { |photo| puts photo.title }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement