In most cases, you will want to save your Service's source-code as a Hook with an associated URL.
In other situations, you may need to send code that has to be executed immediately and without any additional requests ( such as development testing or executing dynamically created source code from a third-party service ).
hook.io provides a hot-code gateway which allows users to send code to be executed immediately. In fact, if you look at the Interactive Playground, you may notice it is powered by several hot-code gateways ( a separate gateway for each specific programming language ).
Here are two simple examples of using
curl to execute hot-code against hook.io's gateway.
echo 'print "hello world"' | curl --data-urlencode source@- http://python.hook.io/
You can also simply open a url to the gateway like this: http://python.hook.io/?source=print "hello world"
sourceparameter is not provided