Call hosted business logic from js or php?

Hey there!

We are calling our hosted business logic functions from our mobile client, but could we call those same functions from a html pages javascript or php part?

If so, how do we do this?

Cheers, Juha

Hi Juha,

After deploying hosted service js-sdk is automaticlly generated. You can use it.

Regards,

Denys

Yes, you can call your hosted services from any application. Backendless generates REST routes as well as SDKs which include support for service invocation.

Hey there! Two further question related to this :slight_smile:

  1. Running Php
    I tried running a php file or a php block inside a html file (both under files/web), but neither run. Is there a way to enable this?

  2. Modifying html page from hosted business logic
    You previously said I could call the hosted business logic as javascript - can use this hosted business logic to modify the html page from which we call the hosted business logic?

  1. Running PHP code inside of a HTML file is not supported.

  2. The code on the server cannot modify your HTML page. HTML page is rendered by a browser, business logic runs on our servers.