PDA

View Full Version : APIs request


Nikolai
Dec-12-2004, 12:58 PM
Several users already mentioned this, so I'd like to make it "official":-)
Need the API to perform the following tasks:

getAlbumStatistics (albumid): struct
getImageStatistics (imageid): struct
createCategory (title, existingok: boolean = TRUE): categoryid or -1
createSubCategory (categoryid, title, existingok: boolean = TRUE): subcategoryid or -1
Also, for syncronization purposes, we need to extend both Upload methods to be able to REPLACE existing image instead of adding a new copy - filename (w/o path) should be the key (case insensitive, if possible:-). Optional parameter in the end of regular upload, and similarly named variable in the multipart one...

Don, I understand you have other priorities, but I would really appreciate your comments and possible ETAs

Thanks!:thumb

onethumb
Dec-12-2004, 09:05 PM
Several users already mentioned this, so I'd like to make it "official":-)
Need the API to perform the following tasks:

getAlbumStatistics (albumid): struct
getImageStatistics (imageid): struct
createCategory (title, existingok: boolean = TRUE): categoryid or -1
createSubCategory (categoryid, title, existingok: boolean = TRUE): subcategoryid or -1


These are coming. With the holidays, though, I wouldn't hold my breath. Things are going to be both busy and slow around here.


Also, for syncronization purposes, we need to extend both Upload methods to be able to REPLACE existing image instead of adding a new copy - filename (w/o path) should be the key (case insensitive, if possible:-). Optional parameter in the end of regular upload, and similarly named variable in the multipart one...

Don, I understand you have other priorities, but I would really appreciate your comments and possible ETAs

Thanks!:thumb

This, though, isn't so easy. smugmug doesn't support this across any of our architecture levels at the moment, so it's a much bigger deal than just extending the upload methods. I definitely wouldn't hold my breath for this one.

(If you want to fake it, you can upload a new image, and then set it to the position of the old image using the existing API. External links won't work properly, of course, but normally viewing the gallery would look like it'd been replaced. We need a delete method, but that's also coming.).

Don

Nikolai
Dec-12-2004, 09:27 PM
Thank you very much, Don, I really appreciate the feedback!

If you want to fake it, you can upload a new image, and then set it to the position of the old image using the existing API. External links won't work properly, of course, but normally viewing the gallery would look like it'd been replaced. We need a delete method, but that's also coming.
I got it, thank you, I see how it can work...
A bit cumbersome though, also requires quite some roundtrips: for every image find if it's there, delete, upload, and finally change the position...
Probably will park the whole sync idea for now, unless there is some very rich investor, who's just dying to have this feature..;-)