Rachelle Greenfield
06/13/2023, 9:02 PMRachelle Greenfield
06/13/2023, 9:08 PMcurl '<https://werehaus.site/api/flow_runs/filter>' \
-H 'authority: <http://werehaus.site|werehaus.site>' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'content-type: application/json' \
-H 'cookie: logged_out_marketing_header_id=blahblah; _ga=blahblah; _ga_blahblah=blahblahblah' \
-H 'origin: <https://werehaus.site>' \
-H 'referer: <https://werehaus.site/flow-runs>' \
-H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
-H 'x-prefect-ui: true' \
--data-raw '{"flow_runs":{"expected_start_time":{"before_":"2023-06-15T06:59:59.999Z","after_":"2023-06-06T07:00:00.000Z"}},"sort":"START_TIME_DESC"}' \
--compressed
Rachelle Greenfield
06/13/2023, 9:13 PMRachelle Greenfield
06/13/2023, 9:15 PMRachelle Greenfield
06/13/2023, 9:16 PMhead
, TILRachelle Greenfield
06/13/2023, 9:25 PMRachelle Greenfield
06/13/2023, 9:27 PM{
"id":"246bba3b-d01b-427a-8e1e-eb59e42d585b",
"created":"2023-06-13T11:34:44.821804+00:00",
"updated":"2023-06-13T11:43:46.647193+00:00",
"name":"curly-impala",
"flow_id":"0a5a23d3-3d0d-4a81-b114-ceb45fad54ca","state_id":"99d54758-53f8-4dfb-af4c-5d51cfb9aeb5",
"deployment_id":null,
"work_queue_id":null,
"work_queue_name":null,
"flow_version":"2d50993280a293fe8a999910e662b216",
"parameters":{
"pages":[
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<!DOCTYPE 50O MB CHONKYTONK XML FILE...."
and that’s about as far as I felt like paging downRachelle Greenfield
06/13/2023, 9:28 PMRachelle Greenfield
06/13/2023, 9:31 PMpages
parameter is the results of having to crawl a very slow and very terrible API one page at a time, but all at once because they page by document ID and not by anything guessable and also only embed the link to the next page at the end of the previous page. much enterprise.
so I’m passing the results of that to a transform subflowRachelle Greenfield
06/13/2023, 9:32 PMDeceivious
06/14/2023, 8:47 AMRachelle Greenfield
06/15/2023, 12:28 AMRachelle Greenfield
06/15/2023, 1:16 AM