|
Hey - I'd like this too if it's available
Posted 32 months ago.
(permalink)
|
|
This would be really neat!
Posted 31 months ago.
(permalink)
|
|
There already are API methods for galleries; you can inspect them via tools like Firebug. The ones I've found are flickr.galleries.getList, flickr.galleries.create, flickr.galleries.addPhoto, flickr.galleries.removePhoto, flickr.galleries.editPhotos, and flickr.galleries.delete.
However, for the moment it seems as if they're only accessible to Flickr's own API keys: they don't work when I try them with mine. Hopefully, they'll be enabled and documented sooner or later.
Posted 31 months ago.
(permalink)
|
|
I just hope this will be available soon officially.
Posted 30 months ago.
(permalink)
|
|
that plus being able to manage contacts through the api would make my day! well, several of them, for sure :)
Posted 30 months ago.
(permalink)
|
|
I have emailed flickr a request for a slideshow option for galleries to start with
Posted 30 months ago.
(permalink)
|
|
I know it's not what you want, but while I'm sorting out the the larger gallery API methods, I've added a flag to photos.search that allows the search results to be scoped to only photos in galleries.
Posted 30 months ago.
(permalink)
|
|
A galleries feed would be VERY helpful
Posted 30 months ago.
(permalink)
|
|
Thanks for the flag kellan.
Posted 30 months ago.
(permalink)
|
|
soy nuevo en esto como funciona?
Posted 30 months ago.
(permalink)
|
|
I think I'm missing something here. I considered a gallery to be a "Set". I create my own "Gallery" in a browser with a series of API calls, first looking for a username, then a set name and then I grab all the urls. I create the "Gallery" in the browser using any number of methods - JQUery plugins or just write the javascript myself. Here's the api call's I use: (I know this code formatting will look ugly in this forum)
$.getJSON('http://api.flickr.com/services/rest/?&method=flickr.people.findByUsername&api_key=' + apiKey + '&username=' + screenName + '&format=json&jsoncallback=?',
function(data){
if (data.stat == "fail")
{
alert("Screen name not found : " + screenName);
}
else
{
var userID = data.user.id;
//Get list of photosets for the userID
$.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photosets.getList&api_key=' + apiKey + '&user_id=' + userID + '&format=json&jsoncallback=?',
function(setData){
$.each(setData.photosets.photoset, function(i,item){
if (item.title._content == setName)
{
//alert("Match found : " + item.title._content + " set id: "+ item.id);
//jQuery(' ').attr('id', 'loader').attr('src', 'images/ajax-loader.gif').appendTo('#photo');
photoCount = item.photos;
var titleHtml = "" + setName + "";
$(titleHtml).appendTo('#gallery');
var photoSetID = item.id;
//Flicker call: get Photos for photosetID
$.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key=' + apiKey + '&photoset_id=' + photoSetID + '&per_page=' + photosPerPage + '&page=' + pageNumber + '&format=json&jsoncallback=?',
function(data){
//loop through the photos with the following function i=idx item=each photo object
$.each(data.photoset.photo, function(i,item){
var photoURLS = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_s.jpg';
var photoURLM = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '.jpg';
var photoHtml = " ";
$(photoHtml).appendTo('#gallery');
//Flickr Get Photo Info for photoID
$.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photos.getInfo&api_key=' + apiKey + '&photo_id=' + item.id + '&format=json&jsoncallback=?',
function(data){
$('#id' + item.id).data("photoInfo", {"title" : item.title, "description" : data.photo.description._content});
var descDiv = "" + data.photo.description._content + "";
$(descDiv).appendTo('#gallery');
bindClueTip("id" + item.id);
}); // End Callback func from get Photo info for a single photo
var anchorID = "id" + item.id; // for cluetip - id needed to be diff from the description div id
bindClick(anchorID);
}); // End loop thru photos in photoset
}); // End getPhotos JSON call
} // end if
}); //end loop through sets
}); // End lickr.photosets.getList JSON call
} // end else
}); // end original json call findByUsername
Bill
Posted 30 months ago.
(permalink)
|
|
There'll be a more formal announcement and a couple more methods soon, but these two are available:
www.flickr.com/services/api/flickr.galleries.getList.html
www.flickr.com/services/api/flickr.galleries.getListForPh...
Also we're now advertising a feed on:
flickr.com/photos/me/galleries/
More of those soon as well.
Posted 29 months ago.
(permalink)
|
|
Much welcomed, thank you!
But dare I ask about "Add to gallery"...?
Posted 29 months ago.
(permalink)
|
|
Since you asked so nicely.
www.flickr.com/services/api/flickr.galleries.addPhoto.html
Still working through some of the issues around creating galleries, and fetching the photos in a gallery.
Posted 29 months ago.
(permalink)
|
|
Thank you :-)
I look forward to the other methods (create especially), but these should keep me going for the moment
Posted 29 months ago.
(permalink)
|
|
Thanks for the excellent work, Kellan!
The stuff I have in the oven would greatly benefit from "flickr.galleries.getPhotos" as per "flickr.photosets.getPhotos". Any chance that could be in the pipeline?
Many thanks in advance! :)
Originally posted 29 months ago.
(permalink)
Fufurasu edited this topic 29 months ago.
|
|
Thanks for the updates!
Posted 29 months ago.
(permalink)
|
|
Great additions to the API. Please keep them coming ;)
Posted 29 months ago.
(permalink)
|
|
Any chance of getting the gallery equivalent of these two any time soon?
flickr.photos.comments.getList
flickr.photosets.comments.getList
flickr.galleries.comments.getList??
I did check, it's not there yet. Thought it might be lurking, but nope.
Originally posted 29 months ago.
(permalink)
clickykbd edited this topic 29 months ago.
|
|
Yes, it would be really neat to actually be able to make use of the galleryIDs we get from getList - with galleries.getPhotos, that would be great!!
Posted 29 months ago.
(permalink)
|
|
Adding my voice to those asking for something like:
flickr.galleries.getPhotos
I'm desperate to be able to get a list of photos and associated data in a given gallery.
This would drive me and the users of an app that I'm building to really make use of the galleries feature quite a bit.
Thanks!
P
Posted 28 months ago.
(permalink)
|
|
Any news on this?
galleries.getPhotos would be just great!
Posted 27 months ago.
(permalink)
|
|
I'm also waiting for flickr.galleries.getPhotos method
Posted 27 months ago.
(permalink)
|
|
I just tried to use the in_gallery option in the API explorer and the result was all 3,835 of my pics/vids. Wha?? So, I looked at the URL generated and saw that it has no value for in_gallery. So it will display here, I cut off the URL up to the "?":
?method=flickr.photos.search&api_key=b8c7425f9c86d16c7dd2a985343f8e55& user_id=21983356%40N00&in_gallery=& auth_token=72157623676215694-ccab0c923d165c33&api_sig=fcc2618d8a8d84af23f953ad7f0dfd20
Originally posted 27 months ago.
(permalink)
dopiaza (a group admin) edited this topic 27 months ago.
|
|
Melvin, you need to set in_gallery=1.
Passing it over blank is treated as false, aka ignored.
Originally posted 26 months ago.
(permalink)
kellan (a group admin) edited this topic 26 months ago.
|
|
More at: code.flickr.com/blog/2010/04/08/galleries-apis/
Posted 26 months ago.
(permalink)
|
|
any chance of getting a removePhoto function? Right now, the only way to remove a photo is to first get a list of all photos in a gallery, then send a request to editPhotos.
This requires two calls instead of just one. It also doesn't work when you want to remove a photo from a gallery containing just a single photo.
Thanks!
Posted 21 months ago.
(permalink)
|
Would you like to comment?
Sign up for a free account, or sign in (if you're already a member).
|