Skip to main content

sendToUrl

sendToUrl sends the current context to a URL. The context is sent as a JSON object.

ContextType
Inputany set or collection
Outputthe same as the input
ParameterType
urlstring

Examples

Send the bat/ball pairs to a development url if they are within 0.5 meters of each other:

when 
object(type="ball").within(0.5, type="bat")
then
sendToUrl("http://localhost:8080/batball")

Notes

The URL must be a full URL, including the protocol (http or https).

We envisage that many uses of sendToUrl will be better fulfilled with integrations when they are ready.

You should not assume that sendToUrl will always send things in a particular order, or that the format is fixed - future updates may change the output format. It also does not retry if the URL is not available.