I'm having a hard time coming up with a satisfactory way to implement the 
following:


   1. Call an API with a map from the DB containing various endpoint data 
   like URL, etc.
   2. If the response has an HTTP 200, update the map-from-db and then 
   write response body to a file.
   3. If step 2 yields a HTTP > 2xx, update the map-from-db but do not 
   write file

Because this is mostly imperative it feels "icky" in Clojure.  I would just 
call the api query function mapped across them all, but I am making many 
API requests and writing many files.  It seemed better to attempt them one 
at a time.  Is this wrong-headed?

Suggestions?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to