Setup a function
First steps in the console
You can setup your function via the schmuckliCloud console.
First, select your project and navigate in Functions overview.
Then select "Add function" in the functions overview.
Enter there a name of your function and a matching description, what your functions actuallay is doing. These paramters can be changed at any time later as well.
As soon, as we have added the function, it will show it on top. Now you can open it and will see the following.
On the left side, we see the "Events". These are the triggers, which will then execute the URL / Task given on the right side. The events are described in the introduction section of this documentation.
On the right side, you can add the URLs, which you want to be called, when the event is fired.
If the event is fired, it will append to your url the necessary parameters. For example a STORAGE_UPDATE
event gives you next to the secret and function session also the updated row id or the container, it was changed in.
Therefore it is important, not to use any additional URL parameters or hashes in the URL itself.
Create your own function
Now you have setup the function in the console. The only thing missing is the function code it self. At the moment, you have to maintain the function code by your own. For demo purposes, we can recommend you the Heroku service, allowing you to setup Node.js, PHP applications of your choice and run them on an environment.