note on pixabay direct url implementation

This commit is contained in:
2022-01-22 20:17:04 -07:00
parent 79bb264836
commit dccf89e623

View File

@@ -22,6 +22,8 @@
(assertProcess "curl" ["--output" file url]))
file))
// TODO alternate macro: accept a direct pixabay url instead, and extract the id from the url (last token in split by -) and pass "id" instead of "query" to the API and use that image
// This macro downloads an image from the Pixabay.com API and puts it in
// your projects AssetPaths, returning the path for loadAsset().
(defMacro pixabayImage [searchQuery resultNumber]