- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable
public final class PicasawebClient
extends java.lang.Object
implements java.io.Closeable
This is a simple client that provides high-level operations on the Picasa Web
Albums GData API. It can also be used as a command-line application to test
out some of the features of the API.
Note that even though this class is in principle thread-safe, it uses a single-connection http client internally, which means
that multiple method calls are not guaranteed to work at the same time.
To get user details (albums etc):
https://picasaweb.google.com/data/feed/api/user/114407540644219368282 (or with e.g. /user/otula123)
- albums: in "entry" -elements: in gphoto:id the id of the album
to get album details:
https://picasaweb.google.com/data/feed/api/user/114407540644219368282/albumid/5789788743364446385 (or with otula123
and Private = name of the album)
- photos: from entry, get link (rel="self", type="application/atom+xml", optionally: get id from gphoto:id
to get static access URL:
https://picasaweb.google.com/data/entry/api/user/114407540644219368282/albumid/5789788743364446385/photoid/
5789788743072584594
- in content -element (src), or in media:group/media:content (url)
NOTE: This client is may not work on private folders, it is recommended to use public folders, and because of buggy API on Google's side, there might be issues when retrieving more than 998 photos.