https://github.com/mithro/picasa-oembed
Picasa oEmbed Server (for AppEngine)
https://github.com/mithro/picasa-oembed
Last synced: 10 months ago
JSON representation
Picasa oEmbed Server (for AppEngine)
- Host: GitHub
- URL: https://github.com/mithro/picasa-oembed
- Owner: mithro
- License: other
- Created: 2012-05-18T08:20:08.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-09-29T10:40:54.000Z (over 13 years ago)
- Last Synced: 2024-10-15T15:34:12.944Z (over 1 year ago)
- Language: Python
- Homepage: http://picasa-ombed.appspot.com
- Size: 178 KB
- Stars: 3
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
oEmbed for Picasa
==============================================================================
Supports [oEmbed] output for both photos and videos uploaded to [Picasa].
[oEmbed]: http://oembed.com
[Picasa]: http://picasaweb.google.com
Supported URLs
==============================================================================
Support for Picasa URLs;
* http(s)://picasaweb.google.com/{userid}/{albumname}
Outputs "rich" element which contains the Picasa album.
* http(s)://picasaweb.google.com/{userid}/{albumname}#{photoid}
Outputs "photo" or "video" element which contains the Photo/Video.
* http(s)://picasaweb.google.com/.*/{userid}/albumid/{albumid}/photoid/{photoid}
Outputs "photo" or "video" element which contains the Photo/Video.
Don't forget to escape the *hash* in the URL! Otherwise it will never get to
the oEmbed server and you'll get album mode.
Support for the following Google+ URLs (which use Picasa in the background);
* https://plus.google.com/photos/{userid}/albums/{albumid}/{photoid}
Outputs "photo" or "video" element which contains the Photo/Video.
* https://plus.google.com/photos/{userid}/albums/{albumid}
Outputs "rich" element which contains the Picasa album.
Picasa Video Support
==============================================================================
Picasa Video support is a little tricky because the URLs that the Picasa feed
gives back have authentication tokens which expire after a short period.
To work around this the oEmbed server provides a page which uses javascript to
re-fetch the authentication tokens when the page is display. This means the
server will return an iframe element for video elements.