5.2 - CMS Based Server Side Code
Server side code can be run in an interaction, via the CMS system.
MADL Interactions
A MADL Interaction (when you create a new interaction, you can select MADL as a type) is PHP based server side code. This can be handy for applications where a page needs to be run server side, but can also be used as an API endpoint, which is more common in newer app designs.
Once you've created your MADL Interaction, on the Edit Interaction page you will see an option for MADL Code. Click on the Edit link to open up a code editor box.
You can now add your PHP code into this code editor box. You do not need to include <?php ... ?> tags.
Once you click the Save button, your MADL Interaction will now be live and accessible.
Using as an API End Point
To access this as an API End Point, you can use the URL structure:
https://blinkm.co/_api/interaction/run/ANSWERSPACE/INTERACTION
ANSWERSPACE is the name of your answerSpace
INTERACTION is the name of the interaction you just created
Next
5.3 - Accessing BMP Code via the CLI Tool