logo       

Re: [Flickr APIs] snapFlickr + questions: msg#00006

web.flickr.api

Subject: Re: [Flickr APIs] snapFlickr + questions

Cal Henderson wrote:
: 1.) Why do I need a primary_photo_id when I create a new set? : (Especially when there are no photos in the set yet.)

as eric said, because you can't have empty sets in flickr.

I must have missed eric's email...sorry, I'm still getting the filters for this group set up. (Could someone send it my way?)

Since you can't have an empty set, you may want to consider adding the photo_ids attribute to the photosets.create method, so someone could just add all of the photos they want when they create the set.

because you could be removing it from the set, or changing
the primary photo in the set. editPhotos is used for both
adding/removing photos, setting the photo order and setting
the primary photo.

Ahh, thanks!

: 3.) The count seems to be off on the photoset via the API (one higher). : Maybe this has something to do with questions 1 and 2? ;)

both flickr.photosets.getList and flickr.photosets.getPhotos return the correct count for me.

Sorry, I should have been more clear here. When I'm in Organizr, inside of a set I created via the API, Organizr says: "This set contains 7 photos." There are actually 6 photos in the set. The set in question is here:

http://www.flickr.com/photos/pb/sets/3155/

: 4.) Finally (shew!) can I get a URL to a photoset once it's created?

you can use the new flickr.urls.getUserPhotos method:
http://www.flickr.com/services/api/flickr.urls.getUserPhotos.html

it'll return a url like:
http://www.flickr.com/photos/bees/
or
http://www.flickr.com/photos/12037949754@N01/

the url to a set is '{photos_url}/sets/{set_id}/'

You may want to consider sending the permanent URL for a set as part of the response (in addition to the set ID). This would save a call on my end. :) But now I'm just being picky/lazy.

Thanks for the quick help and explanations, I appreciate it.
--
pb





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise