Hello,

For the first type of URL, you can parse it and create a request that will
load that photo entry:

picasaweb.google.com/USERID/ALBUMNAME#PHOTOID becomes
picasaweb.google.com/data/entry/api/user/USERID/album/ALBUMNAME/photoid/PHOTOID

You could also omit the album name and just go with
picasaweb.google.com/data/entry/api/user/USERID/photoid/PHOTOID

Unfortunately, the second one doesn't give you any way to get the API
because it's meant to share the photo without giving any information about
the album or the rest of the photos. You could try viewing each in a
browser and try to follow them through the Belongs To link in the sidebar,
although the link to the album is only available some of the time (if the
album is visible to you, essentially).

Let me know if you have questions. Thanks.


On Tue, Jan 1, 2013 at 1:34 PM, Aimee LaPlant <[email protected]> wrote:

> Is there a way to request the API feed of a single photo through the
> regular Picasa link? For example, here is the link:
> https://picasaweb.google.com/103678735711090714596/EmmaFrostCovers#5813293248353841090.
> I'd like to access its API url, which is here:
> http://picasaweb.google.com/data/entry/api/user/103678735711090714596/albumid/5445541796857419473/photoid/5813293248353841090?kind=photo&imgmax=1280&prettyprint=true
>
> I have a column in Google Spreadsheets that is a link to the Picasa photo
> URL, however, some of the older entries contain older links to the Picasa
> photo, like so:
> http://picasaweb.google.fi/lh/photo/CvEozwnhsVMq9lqPDpi2hQ?feat=directlink
>
> For the newer entries with the hash in its link, I set up my Python code
> so that it splits the "#" into a list, and then I grab the 1st element (the
> photo ID) from the 0-indexed list and plug it into the API URL.
>
> My solution is not very fool-proof, so I'm wondering if there's an easier
> way to request the API link through the regular link -  especially
> considering the structure of the older links.
>
> I am using Python Requests, and both the spreadsheet and Picasa album are
> public, so I have not had to deal with authorization requests (yet), but I
> do have the gdata library installed.
>
> Any help appreciated. Thanks!
>
> via Nexus 7
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-picasa-data-api/-/gN4BVdJgWE0J.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-picasa-data-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to