logo       

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

web.flickr.api

Subject: Re: [Flickr APIs] snapFlickr + questions

: 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.


: 2.) And when I run the editPhotos method, why do I need to include a
: primary_photo_id if I've already declared it in step 1?

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.


: 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.


: 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}/'


--cal



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

News | FAQ | advertise