Closed okjuan closed 7 years ago
I'm looking at the Unsplash documentation -Can we save the photo id
as a variable and then save the photo id
rather than saving the keyword?
For example, I search for cat, I find a cat pic I like (meow) and press save in the editor. We then grab the photo id
of that photo (say it's 1414638298765-18200405ba2f
, and then append it to https://images.unsplash.com/photo-
. Then we wind up saving https://images.unsplash.com/photo-1414638298765-18200405ba2f
to the database, instead of https://source.unsplash.com/2000x1000/?$cat
Eh?
No longer hitting random photo endpoint! Selected images are now properly saved.
Still hitting the Unsplash random API at the moment, so this is only debatably an MVP. We do have an Unsplash account (see relevant documentation in "Accounts and APIs" Dropbox file), but the legwork to move over to this has not been done.