mirror of
https://github.com/fluencelabs/examples
synced 2025-06-21 13:51:32 +00:00
add more AIR scripts
This commit is contained in:
18
multi-service/air-scripts/curl_req.clj
Normal file
18
multi-service/air-scripts/curl_req.clj
Normal file
@ -0,0 +1,18 @@
|
||||
(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%])
|
||||
)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user