Search the web
Sign In
New User? Sign Up
yws-flickr · YDN Flickr Developer Support Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
error in flickr.photos.getContactsPhotos with include_self optio   Message List  
Reply | Forward Message #4308 of 5438 |
Hey all, I'm new to developing using the flickr API, but am enjoying
the work and finding it mostly easy to make progress.

I think I may have found a bug in the flickr.photos.getContactsPhotos
method.

On the documentation page: http://www.flickr.com/services/api/
flickr.photos.getContactsPhotos.html
it states:

[quote]
include_self (Optional)
Set to 1 to include photos from the calling user.
[/quote]

I tested this whilst signed in and as myself, using the api explorer
tool here: http://www.flickr.com/services/api/explore/?
method=flickr.photos.getContactsPhotos

I clicked the check box for include_self, and set the value to be 1
and chose to sign the call with my authentication token

getting the url: http://api.flickr.com/services/rest/?
method=flickr.photos.getContactsPhotos&api_key=a310d43768d493377921f8f56c0b2b67&\
include_self=1&auth_token=*********&api_sig=*********

Now when I go to this url in my browser, and check the source, I get
the following:

[quote]
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photos>
<photo id="2829778245" secret="b6e927bda0" server="3266"
farm="4" owner="*****" username="******" title="*******" />
</photos>
</rsp>
[/quote]

now that photo is a public photo of my one and only contact.
I myself have 3 photos, 1 public, 1 private, and 1 private + friend,
and none of them are included in this response.

Just to note, I get the same response, when not using the
include_self option.

My idea was to use this method, with the extra param: owner_name, to
get just the logged in users photos, since nowhere in the api is
there a getAllYourPhotos sort of method. I have however found the
photos.search method allows you to specify an optional user_id and no
search string, which will give you all your photos, including private
ones if you are logged in, which is exactly what I need.

I hope this information helps.

Andrew Parlane




Fri Sep 5, 2008 1:26 pm

andrew_parlane
Offline Offline
Send Email Send Email

Forward
Message #4308 of 5438 |
Expand Messages Author Sort by Date

Hey all, I'm new to developing using the flickr API, but am enjoying the work and finding it mostly easy to make progress. I think I may have found a bug in...
andrew_parlane
Offline Send Email
Sep 5, 2008
1:26 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help