Rest API login - http request without curl

Hi, i used this command:

curl
-H application-id:xxx
-H secret-key:xxx
-H application-type:REST
-H Content-Type:application/json
-d ‘{“login”:“mail@gmail.com”,“password”:“passwd”}’
-X POST https://api.backendless.com/v1/users/login

i want use http request via browser, it’s possible?

Hi,

you can use a JavaScript instead, if you want to make requests in browser.
Download the latest version of JS SDK (you can get it by installing from npm, bower or by downloading from out git repo (https://github.com/Backendless/JS-SDK) and follow this docs for login user:
https://backendless.com/documentation/users/js/users_login.htm

Regards,
Stanislav

i want use rest api in Unity3D–

I have to create an application in JS and recall via http request ? -

regards

R.

You can do HTTP requests from Unity, for example: Unity - Scripting API: WWW

Stanislav