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