Sha256: 807a7afefafe888ddcded83594f3f350ae480ed1c2a072241f439f8da109f4fa

Contents?: true

Size: 340 Bytes

Versions: 17

Compression:

Stored size: 340 Bytes

Contents

require "picasa"

begin
  client = Picasa::Client.new(:user_id => "your_gmail_account", :password => "password")
  # create new album.
  client.album.create(
    :title => "New Album",
    :summary => "This is a new album.",
    :access => "protected"
  )

rescue Picasa::ForbiddenError
  puts "You have the wrong user_id or password."
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
picasa-0.8.0 examples/create_new_album.rb
picasa-0.7.5 examples/create_new_album.rb
picasa-0.7.4 examples/create_new_album.rb
picasa-0.7.3 examples/create_new_album.rb
picasa-0.7.2 examples/create_new_album.rb
picasa-0.7.1 examples/create_new_album.rb
picasa-0.7.0 examples/create_new_album.rb
picasa-0.6.7 examples/create_new_album.rb
picasa-0.6.6 examples/create_new_album.rb
picasa-0.6.5 examples/create_new_album.rb
picasa-0.6.4 examples/create_new_album.rb
picasa-0.6.3 examples/create_new_album.rb
picasa-0.6.2 examples/create_new_album.rb
picasa-0.6.1 examples/create_new_album.rb
picasa-0.6.0 examples/create_new_album.rb
picasa-0.5.4 examples/create_new_album.rb
picasa-0.5.3 examples/create_new_album.rb