Hello Sir ,
I am working with backendless .
I have updated SDK to latest one. But i am gettings errors based on Topic. Every API giving me error.
Please check attachment for code done by us.
Intialisations :
static NSString *APP_ID = @“XXX”;
static NSString *SECRET_KEY = @“YYY”;
static NSString *BACKENDLESS_API_URL = @“http://abc.abc.com:80/api/v3”;
[backendless setHostUrl:BACKENDLESS_API_URL];
[backendless initApp:APP_ID APIKey:SECRET_KEY];
Here is code which we have done for login.
[backendless.userService login:/@“bob@foo.com”/self.emailTextField.text password:/@“bob”/self.passwordTextField.text response:^(BackendlessUser *user) {
NSArray *roles = [backendless.userService getUserRoles];
NSLog(@"ROLES: %@ ", roles);
[backendless.userService setStayLoggedIn:YES];
[backendless.data findByClassId:[BackendlessUser class] objectId:backendless.userService.currentUser.objectId response:^(id object) {
BackendlessUser user = (BackendlessUser)object;
[backendless.userService.currentUser updateProperties:[user getProperties]];
[self performSegueWithIdentifier:@“showMainScreenFromLogin” sender:self];
} error:^(Fault *fault) {
}];
} error:^(Fault *fault) {
NSLog(@"FAULT: %@", fault);
}];
Please help us what is wrong we have done in this.