examples/archived/multi-service/air-scripts/curl_req.clj

19 lines
464 B
Clojure
Raw Permalink Normal View History

2021-03-04 07:57:19 +00:00
(xor
(seq
(seq
(call relay ("op" "identity") [])
(call node_1 (service "curl_request") ["https://api.duckduckgo.com/?q=homotopy&format=json"] result)
)
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") [result])
)
)
(seq
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") [%last_error%])
)
)