picasa 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.sw?
2
+ .DS_Store
3
+ coverage
4
+ rdoc
5
+ pkg
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Wojciech Wnętrzak
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,30 @@
1
+ = Picasa
2
+
3
+ Simple google picasa managment.
4
+ Only for public albums so far.
5
+
6
+ = Installation
7
+
8
+ <b>deprecated!</b>
9
+ gem sources -a http://gems.github.com
10
+ sudo gem install morgoth-picasa
11
+
12
+ <b>actual</b>
13
+ sudo gem install picasa --source http://gemcutter.org
14
+
15
+ In RAILS_ROOT/config/environment.rb
16
+
17
+ config.gem "picasa"
18
+
19
+ == Usage
20
+
21
+ Picasa.albums(:google_user => 'google_username')
22
+ #=> [ {:id => "666", :title => "satan-album", :photos_count => 6}, {another one} ]
23
+
24
+ Picasa.photos(:google_user => 'google_username', :album_id => 'album_id')
25
+ #=> {:photos => [{ :title, :thumbnail_1, :thumbnail_2, :thumbnail_3, :photo },{}],
26
+ # :slideshow => "link to picasa slideshow"}
27
+
28
+ = Copyright
29
+
30
+ Copyright (c) 2009 Wojciech Wnętrzak, released under the MIT license.
data/Rakefile ADDED
@@ -0,0 +1,59 @@
1
+ # encoding: UTF-8
2
+
3
+ require 'rubygems'
4
+ require 'rake'
5
+
6
+ begin
7
+ require 'jeweler'
8
+ Jeweler::Tasks.new do |gem|
9
+ gem.name = "picasa"
10
+ gem.summary = %Q{simple google picasa managment}
11
+ gem.email = "w.wnetrzak@gmail.com"
12
+ gem.homepage = "http://github.com/morgoth/picasa"
13
+ gem.authors = ["Wojciech Wnętrzak"]
14
+ gem.add_dependency('xml-simple')
15
+
16
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
+ end
18
+ rescue LoadError
19
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
20
+ end
21
+
22
+ require 'rake/testtask'
23
+ Rake::TestTask.new(:test) do |test|
24
+ test.libs << 'lib' << 'test'
25
+ test.pattern = 'test/**/*_test.rb'
26
+ test.verbose = true
27
+ end
28
+
29
+ begin
30
+ require 'rcov/rcovtask'
31
+ Rcov::RcovTask.new do |test|
32
+ test.libs << 'test'
33
+ test.pattern = 'test/**/*_test.rb'
34
+ test.verbose = true
35
+ end
36
+ rescue LoadError
37
+ task :rcov do
38
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
39
+ end
40
+ end
41
+
42
+
43
+ task :default => :test
44
+
45
+ require 'rake/rdoctask'
46
+ Rake::RDocTask.new do |rdoc|
47
+ if File.exist?('VERSION.yml')
48
+ config = YAML.load(File.read('VERSION.yml'))
49
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
50
+ else
51
+ version = ""
52
+ end
53
+
54
+ rdoc.rdoc_dir = 'rdoc'
55
+ rdoc.title = "picasa #{version}"
56
+ rdoc.rdoc_files.include('README*')
57
+ rdoc.rdoc_files.include('lib/**/*.rb')
58
+ end
59
+
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 1
4
+ :patch: 5
data/lib/picasa.rb ADDED
@@ -0,0 +1,18 @@
1
+ require 'net/http'
2
+ require "xmlsimple"
3
+ require 'picasa/web_albums'
4
+
5
+ module Picasa
6
+ def self.albums(options = {})
7
+ raise ArgumentError.new("You must specify google_user") unless options[:google_user]
8
+ web_albums = Picasa::WebAlbums.new(options[:google_user])
9
+ web_albums.albums
10
+ end
11
+
12
+ def self.photos(options = {})
13
+ raise ArgumentError.new("You must specify google_user") unless options[:google_user]
14
+ raise ArgumentError.new("You must specify album_id") unless options[:album_id]
15
+ web_albums = Picasa::WebAlbums.new(options[:google_user])
16
+ web_albums.photos(options[:album_id])
17
+ end
18
+ end
@@ -0,0 +1,47 @@
1
+ module Picasa
2
+ class WebAlbums
3
+ attr_accessor :google_user
4
+
5
+ def initialize(google_user)
6
+ @google_user = google_user
7
+ end
8
+
9
+ def albums
10
+ data = connect("/data/feed/api/user/#{google_user}")
11
+ xml=XmlSimple.xml_in(data)
12
+ albums = []
13
+ xml['entry'].each do |album|
14
+ attributes = {}
15
+ attributes[:id] = album['id'][1]
16
+ attributes[:title] = album['title'][0]['content']
17
+ attributes[:photos_count] = album['numphotos'][0].to_i
18
+ albums << attributes
19
+ end
20
+ albums
21
+ end
22
+
23
+ def photos(album_id)
24
+ data = connect("/data/feed/api/user/#{google_user}/albumid/#{album_id}")
25
+ xml = XmlSimple.xml_in(data)
26
+ photos = []
27
+ xml['entry'].each do |photo|
28
+ attributes = {}
29
+ attributes[:title] = photo['group'][0]['description'][0]['content'] #returns nil if empty
30
+ attributes[:thumbnail_1] = photo['group'][0]['thumbnail'][0]['url']
31
+ attributes[:thumbnail_2] = photo['group'][0]['thumbnail'][1]['url']
32
+ attributes[:thumbnail_3] = photo['group'][0]['thumbnail'][2]['url']
33
+ #attributes[:photo] << photo['group'][0]['content']['url']
34
+ attributes[:photo] = photo['content']['src']
35
+ photos << attributes
36
+ end
37
+ { :photos => photos, :slideshow => xml['link'][2]['href'] }
38
+ end
39
+
40
+ private
41
+
42
+ def connect(url)
43
+ full_url = "http://picasaweb.google.com" + url
44
+ Net::HTTP.get(URI.parse(full_url))
45
+ end
46
+ end
47
+ end
data/picasa.gemspec ADDED
@@ -0,0 +1,55 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{picasa}
8
+ s.version = "0.1.5"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Wojciech Wnętrzak"]
12
+ s.date = %q{2009-10-09}
13
+ s.email = %q{w.wnetrzak@gmail.com}
14
+ s.extra_rdoc_files = [
15
+ "LICENSE",
16
+ "README.rdoc"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ ".gitignore",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION.yml",
25
+ "lib/picasa.rb",
26
+ "lib/picasa/web_albums.rb",
27
+ "picasa.gemspec",
28
+ "test/fixtures/albums",
29
+ "test/fixtures/photos",
30
+ "test/picasa_test.rb",
31
+ "test/test_helper.rb"
32
+ ]
33
+ s.homepage = %q{http://github.com/morgoth/picasa}
34
+ s.rdoc_options = ["--charset=UTF-8"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = %q{1.3.5}
37
+ s.summary = %q{simple google picasa managment}
38
+ s.test_files = [
39
+ "test/picasa_test.rb",
40
+ "test/test_helper.rb"
41
+ ]
42
+
43
+ if s.respond_to? :specification_version then
44
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
45
+ s.specification_version = 3
46
+
47
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
48
+ s.add_runtime_dependency(%q<xml-simple>, [">= 0"])
49
+ else
50
+ s.add_dependency(%q<xml-simple>, [">= 0"])
51
+ end
52
+ else
53
+ s.add_dependency(%q<xml-simple>, [">= 0"])
54
+ end
55
+ end
@@ -0,0 +1,15 @@
1
+ HTTP/1.1 200 OK
2
+ Set-Cookie: _rtok=AziiH0EtTyNj; Path=/; HttpOnly
3
+ Set-Cookie: S=photos_html=xofVMm768HlBTGmKQ1JSkA; Domain=.google.com; Path=/; HttpOnly
4
+ Content-Type: application/atom+xml; charset=UTF-8
5
+ Expires: Wed, 20 May 2009 10:51:15 GMT
6
+ Date: Wed, 20 May 2009 10:51:15 GMT
7
+ Cache-Control: private, must-revalidate, max-age=0
8
+ Vary: Accept, X-GData-Authorization, GData-Version, Cookie
9
+ GData-Version: 1.0
10
+ Last-Modified: Tue, 17 Mar 2009 19:20:57 GMT
11
+ Transfer-Encoding: chunked
12
+ X-Content-Type-Options: nosniff
13
+ Server: GFE/2.0
14
+
15
+ <?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gml='http://www.opengis.net/gml' xmlns:georss='http://www.georss.org/georss'><id>http://picasaweb.google.com/data/feed/api/user/saps.gliwice</id><updated>2009-03-17T19:20:57.566Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#user'/><title type='text'>saps.gliwice</title><subtitle type='text'/><icon>http://lh4.ggpht.com/_Kp7xCOU0f_U/AAAAv-j9-Ok/AAAAAAAAAAA/_BgLoHE7Zi4/s64-c/saps.gliwice.jpg</icon><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice'/><link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='http://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fsaps.gliwice%3Falt%3Drss'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice?start-index=1&amp;max-results=1000'/><author><name>saps</name><uri>http://picasaweb.google.com/saps.gliwice</uri></author><generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>1000</openSearch:itemsPerPage><gphoto:user>saps.gliwice</gphoto:user><gphoto:nickname>saps</gphoto:nickname><gphoto:thumbnail>http://lh4.ggpht.com/_Kp7xCOU0f_U/AAAAv-j9-Ok/AAAAAAAAAAA/_BgLoHE7Zi4/s64-c/saps.gliwice.jpg</gphoto:thumbnail><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5277503612406515713</id><published>2008-12-08T08:00:00.000Z</published><updated>2008-12-08T20:08:43.193Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/><title type='text'>SAPS in da akcion :P</title><summary type='text'/><rights type='text'>public</rights><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5277503612406515713'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/SAPSInDaAkcionP'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5277503612406515713'/><author><name>saps</name><uri>http://picasaweb.google.com/saps.gliwice</uri></author><gphoto:id>5277503612406515713</gphoto:id><gphoto:name>SAPSInDaAkcionP</gphoto:name><gphoto:location/><gphoto:access>public</gphoto:access><gphoto:timestamp>1228723200000</gphoto:timestamp><gphoto:numphotos>24</gphoto:numphotos><gphoto:user>saps.gliwice</gphoto:user><gphoto:nickname>saps</gphoto:nickname><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><media:group><media:content url='http://lh3.ggpht.com/_Kp7xCOU0f_U/ST11kvZUyAE/AAAAAAAAALU/58tz4_Wtfog/SAPSInDaAkcionP.jpg' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/ST11kvZUyAE/AAAAAAAAALU/58tz4_Wtfog/s160-c/SAPSInDaAkcionP.jpg' height='160' width='160'/><media:title type='plain'>SAPS in da akcion :P</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261533261668505297</id><published>2008-10-26T07:00:00.000Z</published><updated>2008-10-26T18:36:44.610Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/><title type='text'>SAPS team 2008/2009</title><summary type='text'/><rights type='text'>public</rights><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261533261668505297'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/SAPSTeam20082009'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261533261668505297'/><author><name>saps</name><uri>http://picasaweb.google.com/saps.gliwice</uri></author><gphoto:id>5261533261668505297</gphoto:id><gphoto:name>SAPSTeam20082009</gphoto:name><gphoto:location/><gphoto:access>public</gphoto:access><gphoto:timestamp>1225004400000</gphoto:timestamp><gphoto:numphotos>1</gphoto:numphotos><gphoto:user>saps.gliwice</gphoto:user><gphoto:nickname>saps</gphoto:nickname><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><media:group><media:content url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS4n-unVtE/AAAAAAAAAFg/Xfjm4-qftBA/SAPSTeam20082009.jpg' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS4n-unVtE/AAAAAAAAAFg/Xfjm4-qftBA/s160-c/SAPSTeam20082009.jpg' height='160' width='160'/><media:title type='plain'>SAPS team 2008/2009</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881</id><published>2008-10-26T07:00:00.000Z</published><updated>2008-10-26T18:56:58.374Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/><title type='text'>Team 2008/2009</title><summary type='text'/><rights type='text'>public</rights><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881'/><author><name>saps</name><uri>http://picasaweb.google.com/saps.gliwice</uri></author><gphoto:id>5261535952634946881</gphoto:id><gphoto:name>Team20082009</gphoto:name><gphoto:location>Gliwice</gphoto:location><gphoto:access>public</gphoto:access><gphoto:timestamp>1225004400000</gphoto:timestamp><gphoto:numphotos>10</gphoto:numphotos><gphoto:user>saps.gliwice</gphoto:user><gphoto:nickname>saps</gphoto:nickname><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><media:group><media:content url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS7EnXApUE/AAAAAAAAAG4/GCR_5kg2NYU/Team20082009.jpg' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS7EnXApUE/AAAAAAAAAG4/GCR_5kg2NYU/s160-c/Team20082009.jpg' height='160' width='160'/><media:title type='plain'>Team 2008/2009</media:title></media:group><georss:where><gml:Envelope><gml:lowerCorner>50.220199 18.566352</gml:lowerCorner><gml:upperCorner>50.3687849 18.7764079</gml:upperCorner></gml:Envelope><gml:Point><gml:pos>50.294492 18.67138</gml:pos></gml:Point></georss:where></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5246551360727918433</id><published>2008-09-16T07:00:00.000Z</published><updated>2008-09-16T12:26:28.900Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/><title type='text'>Knurów 2006-2007</title><summary type='text'/><rights type='text'>public</rights><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5246551360727918433'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/KnurW20062007'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5246551360727918433'/><author><name>saps</name><uri>http://picasaweb.google.com/saps.gliwice</uri></author><gphoto:id>5246551360727918433</gphoto:id><gphoto:name>KnurW20062007</gphoto:name><gphoto:location/><gphoto:access>public</gphoto:access><gphoto:timestamp>1221548400000</gphoto:timestamp><gphoto:numphotos>7</gphoto:numphotos><gphoto:user>saps.gliwice</gphoto:user><gphoto:nickname>saps</gphoto:nickname><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><media:group><media:content url='http://lh4.ggpht.com/_Kp7xCOU0f_U/SM9-qkgHp2E/AAAAAAAAAEE/Vv03h7QxJBc/KnurW20062007.jpg' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh4.ggpht.com/_Kp7xCOU0f_U/SM9-qkgHp2E/AAAAAAAAAEE/Vv03h7QxJBc/s160-c/KnurW20062007.jpg' height='160' width='160'/><media:title type='plain'>Knurów 2006-2007</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5244336073288688689</id><published>2008-09-10T07:00:00.000Z</published><updated>2008-10-26T19:03:05.457Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/><title type='text'>Team 2007/2008</title><summary type='text'>Zdjęcia zespołu</summary><rights type='text'>public</rights><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5244336073288688689'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20072008'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5244336073288688689'/><author><name>saps</name><uri>http://picasaweb.google.com/saps.gliwice</uri></author><gphoto:id>5244336073288688689</gphoto:id><gphoto:name>Team20072008</gphoto:name><gphoto:location>Gliwice</gphoto:location><gphoto:access>public</gphoto:access><gphoto:timestamp>1221030000000</gphoto:timestamp><gphoto:numphotos>7</gphoto:numphotos><gphoto:user>saps.gliwice</gphoto:user><gphoto:nickname>saps</gphoto:nickname><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><media:group><media:content url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SMef33sjpDE/AAAAAAAAACY/ClGSirNcwCs/Team20072008.jpg' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'>Zdjęcia zespołu</media:description><media:keywords/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SMef33sjpDE/AAAAAAAAACY/ClGSirNcwCs/s160-c/Team20072008.jpg' height='160' width='160'/><media:title type='plain'>Team 2007/2008</media:title></media:group><georss:where><gml:Envelope><gml:lowerCorner>50.220199 18.566352</gml:lowerCorner><gml:upperCorner>50.3687849 18.7764079</gml:upperCorner></gml:Envelope><gml:Point><gml:pos>50.294492 18.67138</gml:pos></gml:Point></georss:where></entry></feed>
@@ -0,0 +1,15 @@
1
+ HTTP/1.1 200 OK
2
+ Set-Cookie: _rtok=toYoCneG4KvW; Path=/; HttpOnly
3
+ Set-Cookie: S=photos_html=bberUsX9KFDRZRPPfSpnjg; Domain=.google.com; Path=/; HttpOnly
4
+ Content-Type: application/atom+xml; charset=UTF-8
5
+ Expires: Wed, 20 May 2009 10:50:55 GMT
6
+ Date: Wed, 20 May 2009 10:50:55 GMT
7
+ Cache-Control: private, must-revalidate, max-age=0
8
+ Vary: Accept, X-GData-Authorization, GData-Version, Cookie
9
+ GData-Version: 1.0
10
+ Last-Modified: Sun, 26 Oct 2008 18:56:58 GMT
11
+ Transfer-Encoding: chunked
12
+ X-Content-Type-Options: nosniff
13
+ Server: GFE/2.0
14
+
15
+ <?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:exif='http://schemas.google.com/photos/exif/2007' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gml='http://www.opengis.net/gml' xmlns:georss='http://www.georss.org/georss'><id>http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881</id><updated>2008-10-26T18:56:58.374Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/><title type='text'>Team 2008/2009</title><subtitle type='text'/><rights type='text'>public</rights><icon>http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS7EnXApUE/AAAAAAAAAG4/GCR_5kg2NYU/s160-c/Team20082009.jpg</icon><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009'/><link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='http://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&amp;RGB=0x000000&amp;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fsaps.gliwice%2Falbumid%2F5261535952634946881%3Falt%3Drss'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881?start-index=1&amp;max-results=1000'/><author><name>saps</name><uri>http://picasaweb.google.com/saps.gliwice</uri></author><generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>1000</openSearch:itemsPerPage><gphoto:id>5261535952634946881</gphoto:id><gphoto:name>Team20082009</gphoto:name><gphoto:location>Gliwice</gphoto:location><gphoto:access>public</gphoto:access><gphoto:timestamp>1225004400000</gphoto:timestamp><gphoto:numphotos>10</gphoto:numphotos><gphoto:user>saps.gliwice</gphoto:user><gphoto:nickname>saps</gphoto:nickname><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><georss:where><gml:Envelope><gml:lowerCorner>50.220199 18.566352</gml:lowerCorner><gml:upperCorner>50.3687849 18.7764079</gml:upperCorner></gml:Envelope><gml:Point><gml:pos>50.294492 18.67138</gml:pos></gml:Point></georss:where><gphoto:allowPrints>true</gphoto:allowPrints><gphoto:allowDownloads>true</gphoto:allowDownloads><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537043099704882</id><published>2008-10-26T18:50:56.000Z</published><updated>2008-10-26T18:50:56.916Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Jurek.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8EFqEXjI/AAAAAAAAAFo/aUOA6byXAuE/Jurek.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537043099704882'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261537043099704882'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/dp-TCDjCP_p_tGPRErr3HA'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537043099704882'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261537043099704882'/><gphoto:id>5261537043099704882</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>1.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>2162541</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224627009000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224627009000</exif:time><exif:imageUniqueID>0337dc0e7a350da08c0d7fe2cbe86c8d</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8EFqEXjI/AAAAAAAAAFo/aUOA6byXAuE/Jurek.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8EFqEXjI/AAAAAAAAAFo/aUOA6byXAuE/s72/Jurek.JPG' height='72' width='54'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8EFqEXjI/AAAAAAAAAFo/aUOA6byXAuE/s144/Jurek.JPG' height='144' width='108'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8EFqEXjI/AAAAAAAAAFo/aUOA6byXAuE/s288/Jurek.JPG' height='288' width='216'/><media:title type='plain'>Jurek.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537057590431250</id><published>2008-10-26T18:50:59.000Z</published><updated>2008-10-26T18:50:59.078Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Maciek.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8E7o7ThI/AAAAAAAAAFw/52iGjGddYc4/Maciek.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537057590431250'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261537057590431250'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/r7xKhDQrsvhWF2W56yfhLA'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537057590431250'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261537057590431250'/><gphoto:id>5261537057590431250</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>2.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>2091006</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224626996000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224626996000</exif:time><exif:imageUniqueID>6db0fea8761fcafd12f73e2901335175</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8E7o7ThI/AAAAAAAAAFw/52iGjGddYc4/Maciek.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8E7o7ThI/AAAAAAAAAFw/52iGjGddYc4/s72/Maciek.JPG' height='72' width='54'/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8E7o7ThI/AAAAAAAAAFw/52iGjGddYc4/s144/Maciek.JPG' height='144' width='108'/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8E7o7ThI/AAAAAAAAAFw/52iGjGddYc4/s288/Maciek.JPG' height='288' width='216'/><media:title type='plain'>Maciek.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537071404849746</id><published>2008-10-26T18:51:02.000Z</published><updated>2008-10-26T18:51:02.007Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Marek.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8FvGimlI/AAAAAAAAAF4/idtsaIX_O8k/Marek.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537071404849746'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261537071404849746'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/NK09qiFvwR3Qf0Vz2LW6FA'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537071404849746'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261537071404849746'/><gphoto:id>5261537071404849746</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>3.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>1877609</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224627113000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224627113000</exif:time><exif:imageUniqueID>0da3b8d86762df6d5f90d938c86401f6</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8FvGimlI/AAAAAAAAAF4/idtsaIX_O8k/Marek.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8FvGimlI/AAAAAAAAAF4/idtsaIX_O8k/s72/Marek.JPG' height='72' width='54'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8FvGimlI/AAAAAAAAAF4/idtsaIX_O8k/s144/Marek.JPG' height='144' width='108'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8FvGimlI/AAAAAAAAAF4/idtsaIX_O8k/s288/Marek.JPG' height='288' width='216'/><media:title type='plain'>Marek.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537078797926466</id><published>2008-10-26T18:51:04.000Z</published><updated>2008-10-26T18:51:04.090Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Mariusz.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8GKpMAEI/AAAAAAAAAGA/PevdfmsExig/Mariusz.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537078797926466'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261537078797926466'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/fGqOkuOLRToBfGPQfe2G5A'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537078797926466'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261537078797926466'/><gphoto:id>5261537078797926466</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>4.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>1800266</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224627034000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224627034000</exif:time><exif:imageUniqueID>376b017df1ddb237904b19c2c6525157</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8GKpMAEI/AAAAAAAAAGA/PevdfmsExig/Mariusz.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8GKpMAEI/AAAAAAAAAGA/PevdfmsExig/s72/Mariusz.JPG' height='72' width='54'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8GKpMAEI/AAAAAAAAAGA/PevdfmsExig/s144/Mariusz.JPG' height='144' width='108'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8GKpMAEI/AAAAAAAAAGA/PevdfmsExig/s288/Mariusz.JPG' height='288' width='216'/><media:title type='plain'>Mariusz.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537090756407714</id><published>2008-10-26T18:51:07.000Z</published><updated>2008-10-26T18:51:07.303Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Olek.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8G3MT8aI/AAAAAAAAAGI/FxUtP4Hr8iQ/Olek.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537090756407714'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261537090756407714'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/Wq9SwgbkuR_cAZHiHDwkcA'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261537090756407714'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261537090756407714'/><gphoto:id>5261537090756407714</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>5.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>2037847</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224626982000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224626982000</exif:time><exif:imageUniqueID>f8b75ca922998f474608057db6602d44</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8G3MT8aI/AAAAAAAAAGI/FxUtP4Hr8iQ/Olek.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8G3MT8aI/AAAAAAAAAGI/FxUtP4Hr8iQ/s72/Olek.JPG' height='72' width='54'/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8G3MT8aI/AAAAAAAAAGI/FxUtP4Hr8iQ/s144/Olek.JPG' height='144' width='108'/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS8G3MT8aI/AAAAAAAAAGI/FxUtP4Hr8iQ/s288/Olek.JPG' height='288' width='216'/><media:title type='plain'>Olek.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538541670409106</id><published>2008-10-26T18:56:45.000Z</published><updated>2008-10-26T18:56:45.777Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Paweł.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh4.ggpht.com/_Kp7xCOU0f_U/SQS9bURKo5I/AAAAAAAAAGU/paIbDE5zqvU/Pawe%C5%82.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538541670409106'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261538541670409106'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/AkA_aQY6HsHS7km6wYWJIw'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538541670409106'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261538541670409106'/><gphoto:id>5261538541670409106</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>5.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>2037347</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224627014000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224627014000</exif:time><exif:imageUniqueID>fa34cf09c6fbd973ab6196f727799213</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh4.ggpht.com/_Kp7xCOU0f_U/SQS9bURKo5I/AAAAAAAAAGU/paIbDE5zqvU/Pawe%C5%82.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh4.ggpht.com/_Kp7xCOU0f_U/SQS9bURKo5I/AAAAAAAAAGU/paIbDE5zqvU/s72/Pawe%C5%82.JPG' height='72' width='54'/><media:thumbnail url='http://lh4.ggpht.com/_Kp7xCOU0f_U/SQS9bURKo5I/AAAAAAAAAGU/paIbDE5zqvU/s144/Pawe%C5%82.JPG' height='144' width='108'/><media:thumbnail url='http://lh4.ggpht.com/_Kp7xCOU0f_U/SQS9bURKo5I/AAAAAAAAAGU/paIbDE5zqvU/s288/Pawe%C5%82.JPG' height='288' width='216'/><media:title type='plain'>Paweł.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538559193119954</id><published>2008-10-26T18:56:49.000Z</published><updated>2008-10-26T18:56:49.171Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Piotrek.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS9cVi5_NI/AAAAAAAAAGc/C1RjEZVkkbA/Piotrek.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538559193119954'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261538559193119954'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/yZ3wuD7UztbqoHRlUMGmPQ'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538559193119954'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261538559193119954'/><gphoto:id>5261538559193119954</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>6.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>1814615</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224626990000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224626990000</exif:time><exif:imageUniqueID>7167d9b7c69c1e6c6a266dded08977a3</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS9cVi5_NI/AAAAAAAAAGc/C1RjEZVkkbA/Piotrek.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS9cVi5_NI/AAAAAAAAAGc/C1RjEZVkkbA/s72/Piotrek.JPG' height='72' width='54'/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS9cVi5_NI/AAAAAAAAAGc/C1RjEZVkkbA/s144/Piotrek.JPG' height='144' width='108'/><media:thumbnail url='http://lh3.ggpht.com/_Kp7xCOU0f_U/SQS9cVi5_NI/AAAAAAAAAGc/C1RjEZVkkbA/s288/Piotrek.JPG' height='288' width='216'/><media:title type='plain'>Piotrek.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538568463044914</id><published>2008-10-26T18:56:51.000Z</published><updated>2008-10-26T18:56:51.606Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Wojtek.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9c4FB0TI/AAAAAAAAAGk/m7Ek6EU6QRY/Wojtek.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538568463044914'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261538568463044914'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/MXavw5gmHp4uCRwYDcujwg'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538568463044914'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261538568463044914'/><gphoto:id>5261538568463044914</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>7.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>2147066</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224627028000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>800</exif:iso><exif:time>1224627028000</exif:time><exif:imageUniqueID>588b71b7120b68dc515d6a10947d62e8</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9c4FB0TI/AAAAAAAAAGk/m7Ek6EU6QRY/Wojtek.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9c4FB0TI/AAAAAAAAAGk/m7Ek6EU6QRY/s72/Wojtek.JPG' height='72' width='54'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9c4FB0TI/AAAAAAAAAGk/m7Ek6EU6QRY/s144/Wojtek.JPG' height='144' width='108'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9c4FB0TI/AAAAAAAAAGk/m7Ek6EU6QRY/s288/Wojtek.JPG' height='288' width='216'/><media:title type='plain'>Wojtek.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538580755612114</id><published>2008-10-26T18:56:54.000Z</published><updated>2008-10-26T18:56:54.191Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Andrzej.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS9dl3zgdI/AAAAAAAAAGs/hlVDlQHBo1s/Andrzej.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538580755612114'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261538580755612114'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/MDyGx4xg-ryXfXsa5pnHwA'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538580755612114'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261538580755612114'/><gphoto:id>5261538580755612114</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>8.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>2018612</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224627023000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224627023000</exif:time><exif:imageUniqueID>65513557cab5a626eff52b35b3390c01</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS9dl3zgdI/AAAAAAAAAGs/hlVDlQHBo1s/Andrzej.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS9dl3zgdI/AAAAAAAAAGs/hlVDlQHBo1s/s72/Andrzej.JPG' height='72' width='54'/><media:thumbnail url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS9dl3zgdI/AAAAAAAAAGs/hlVDlQHBo1s/s144/Andrzej.JPG' height='144' width='108'/><media:thumbnail url='http://lh6.ggpht.com/_Kp7xCOU0f_U/SQS9dl3zgdI/AAAAAAAAAGs/hlVDlQHBo1s/s288/Andrzej.JPG' height='288' width='216'/><media:title type='plain'>Andrzej.JPG</media:title></media:group></entry><entry><id>http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538588577505986</id><published>2008-10-26T18:56:56.000Z</published><updated>2008-10-26T18:56:56.056Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#photo'/><title type='text'>Adam.JPG</title><summary type='text'/><content type='image/jpeg' src='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9eDAsIsI/AAAAAAAAAG0/OKrpgnwCq4M/Adam.JPG'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538588577505986'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/saps.gliwice/Team20082009#5261538588577505986'/><link rel='http://schemas.google.com/photos/2007#canonical' type='text/html' href='http://picasaweb.google.com/lh/photo/k-xQ66TeNnNFZYlJ89lqJQ'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/saps.gliwice/albumid/5261535952634946881/photoid/5261538588577505986'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=saps.gliwice&amp;aid=5261535952634946881&amp;iid=5261538588577505986'/><gphoto:id>5261538588577505986</gphoto:id><gphoto:version>1</gphoto:version><gphoto:position>9.0</gphoto:position><gphoto:albumid>5261535952634946881</gphoto:albumid><gphoto:access>public</gphoto:access><gphoto:width>2448</gphoto:width><gphoto:height>3264</gphoto:height><gphoto:size>1840330</gphoto:size><gphoto:client/><gphoto:checksum/><gphoto:timestamp>1224627049000</gphoto:timestamp><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><exif:tags><exif:fstop>2.7</exif:fstop><exif:make>SONY</exif:make><exif:model>DSC-H9</exif:model><exif:exposure>0.016666668</exif:exposure><exif:flash>false</exif:flash><exif:focallength>5.2</exif:focallength><exif:iso>640</exif:iso><exif:time>1224627049000</exif:time><exif:imageUniqueID>8493d0ca5af65e26cc3463d05e1f12a2</exif:imageUniqueID></exif:tags><media:group><media:content url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9eDAsIsI/AAAAAAAAAG0/OKrpgnwCq4M/Adam.JPG' height='1600' width='1200' type='image/jpeg' medium='image'/><media:credit>saps</media:credit><media:description type='plain'/><media:keywords/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9eDAsIsI/AAAAAAAAAG0/OKrpgnwCq4M/s72/Adam.JPG' height='72' width='54'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9eDAsIsI/AAAAAAAAAG0/OKrpgnwCq4M/s144/Adam.JPG' height='144' width='108'/><media:thumbnail url='http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS9eDAsIsI/AAAAAAAAAG0/OKrpgnwCq4M/s288/Adam.JPG' height='288' width='216'/><media:title type='plain'>Adam.JPG</media:title></media:group></entry></feed>
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class PicasaTest < Test::Unit::TestCase
4
+ context 'with albums page' do
5
+ setup do
6
+ page = fixture_file('albums')
7
+ FakeWeb.register_uri(:get, "picasaweb.google.com/data/feed/api/user/some.user", :response => page)
8
+ end
9
+
10
+ should 'parse it' do
11
+ albums = Picasa.albums(:google_user => 'some.user')
12
+ assert_equal 5, albums.count
13
+ assert_equal "SAPS in da akcion :P", albums.first[:title]
14
+ assert_equal 10, albums[2][:photos_count]
15
+ assert_equal "5277503612406515713", albums.first[:id]
16
+ end
17
+ end
18
+
19
+ context 'with photos page' do
20
+ setup do
21
+ page = fixture_file('photos')
22
+ FakeWeb.register_uri(:get, "picasaweb.google.com/data/feed/api/user/some.user/albumid/666", :response => page)
23
+ end
24
+
25
+ should 'parse it' do
26
+ photos = Picasa.photos(:google_user => 'some.user', :album_id => '666')
27
+ assert_equal 10, photos[:photos].count
28
+ assert_not_nil photos[:slideshow]
29
+ assert_not_nil photos[:photos].first[:thumbnail_1]
30
+ assert_not_nil photos[:photos].first[:thumbnail_2]
31
+ assert_not_nil photos[:photos].first[:thumbnail_3]
32
+ assert_nil photos[:photos].first[:title]
33
+ assert_equal "http://lh5.ggpht.com/_Kp7xCOU0f_U/SQS8EFqEXjI/AAAAAAAAAFo/aUOA6byXAuE/Jurek.JPG",
34
+ photos[:photos].first[:photo]
35
+ end
36
+ end
37
+
38
+ should "Raise argument error if google user is not present" do
39
+ assert_raise ArgumentError do
40
+ Picasa.albums
41
+ end
42
+ end
43
+
44
+ should "Raise argument error if album_id is not present" do
45
+ assert_raise ArgumentError do
46
+ Picasa.photos :google_user => 'some.user'
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,17 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+ require 'fakeweb'
5
+
6
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
8
+ require 'picasa'
9
+
10
+ class Test::Unit::TestCase
11
+ end
12
+
13
+ def fixture_file(filename)
14
+ return '' if filename == ''
15
+ file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/' + filename)
16
+ File.read(file_path)
17
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: picasa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
+ platform: ruby
6
+ authors:
7
+ - "Wojciech Wn\xC4\x99trzak"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-10-09 00:00:00 +02:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: xml-simple
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description:
26
+ email: w.wnetrzak@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.rdoc
34
+ files:
35
+ - .document
36
+ - .gitignore
37
+ - LICENSE
38
+ - README.rdoc
39
+ - Rakefile
40
+ - VERSION.yml
41
+ - lib/picasa.rb
42
+ - lib/picasa/web_albums.rb
43
+ - picasa.gemspec
44
+ - test/fixtures/albums
45
+ - test/fixtures/photos
46
+ - test/picasa_test.rb
47
+ - test/test_helper.rb
48
+ has_rdoc: true
49
+ homepage: http://github.com/morgoth/picasa
50
+ licenses: []
51
+
52
+ post_install_message:
53
+ rdoc_options:
54
+ - --charset=UTF-8
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ version:
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ version:
69
+ requirements: []
70
+
71
+ rubyforge_project:
72
+ rubygems_version: 1.3.5
73
+ signing_key:
74
+ specification_version: 3
75
+ summary: simple google picasa managment
76
+ test_files:
77
+ - test/picasa_test.rb
78
+ - test/test_helper.rb