Hello!
I’ve already learned the basics of working with Backendless Android API and I think it’s awesome! I’m currently making a simple web app with Backendless PHP and I’m having trouble with understanding how to handle responses …
Specifically, I’d like to know if there is a way to get async callbacks in PHP when doing a user login? I’d like to have handleResponse and handleFault just like with the Android API…
Backendless.UserService.login( username, password, new AsyncCallback<BackendlessUser>(){
public void handleResponse( BackendlessUser user )
{ // user has been logged in }
public void handleFault( BackendlessFault fault )
{ // login failed, to get the error code call fault.getCode() }});
Currently, in PHP, I have this and also no idea how to check if the login was successful or not…
\backendless\Backendless::$UserService->login($email, $pass);
// where can I get the callbacks?
Sorry if this is a noob question (I’m fairly new to PHP), but I could not find any examples…