Sometimes, it's essential to use functions or other triggers to make calls, request values, and other possibilities, and it's really embarrassing when it's returning only errs or does not work. So, here you will find a way to call an external function using parameters at the URL, you just need to take a look at the instructions below:
-
At first, you need to activate your Webhosting, click here to read more.
-
After saving the first step, you'll see something like the subdomain below:
<app_name>.b4a.app
-
Then, access your app information, available at Server Settings > Core Settings > Settings, and get the keys: appID and javascriptKey.
- Join all the information to get the result below:
https://<appID>:javascript-key=<JSKey>@<app_name>.b4a.app/functions/myTestFunction
NOTE: You need to replace the content related to your app inside '<>'. As an example, would be something like this:
https://A8fhdfhifpUBszx22HCftVTkjrei37ghA2qbS1:javascript-key=TDfegryHYDER216Voi1s6eMIs31fuhrthYchVL@mysubdomain.b4a.app/functions/myTestFunction
5. Paste this command at your terminal, using a POST method:
curl -X POST https:/<appID>:javascript-key=<JSKey>@mysubdomain.b4a.app/functions/myTestFunction
If you need any further information, contact us :)
Comments
0 comments
Please sign in to leave a comment.