Pomax / node-flickrapi

A node.js (and client-library) implementation of the Flickr API with oauth API key authentication and API method proxying
177 stars 52 forks source link

Replace #72

Closed kzeng10 closed 8 years ago

kzeng10 commented 8 years ago

This API has the upload function, but what about replace? It's essentially the same as upload, but you'll just have to change the url from https://up.flickr.com/services/upload/ to https://up.flickr.com/services/replace/

Pomax commented 8 years ago

essentially, but also very different: uploading is non destructive (no data is lost), whereas replacing destroys what was on Flickr, so that's going to need user permissions. I'm happy to offer a simple utility function for uploads, but for replacement you're going to have to write your own function (you can of course just copy what's in the utils.js file and adapt it for replace) because there is no good way to safely do those replacements without application-specific logic to ensure the user gave their permission to destroy photos already on Flickr.