Message:

Subscribe rss
Blog categories
All | Backendless features
Feature 2: Registering app users with the User Registration API
January 8, 2015 by markpiller
Spread the love

We’re continuing our “Blog a Feature a Day” series. In this post I will review the user registration API (see the API documentation for Android, iOS, JavaScript, .NET, ActionScript, REST). The User Registration API is likely one of the first APIs you work with when you start with Backendless. The API handles the process of registering a user with an application so he can login and use the application. The API uses the built-in BackendlessUser class (unless you use REST where it would be just a JSON object). The code below creates a user, sets the userid/password as well as an additional “phoneNumber” registration property and calls the backend. Please note that in mobile applications, you need to use the asynchronous version of the API.

You can download complete project with the source code using the links below:

Java: https://backendless.com/documentation/samples/F2-UserRegistration-java.zip

iOS (objective-c and swift):
https:///backendless.com/documentation/samples/F2-RegisteringUsers-ios.zip 

Once you run the code, the users get registered and should be able to login (unless your Backendless backend requires them to confirm the email address, which is another Feature). You can see the registered users in Backendless Console:

  1. Navigate to console, select your app and click the Data icon.
  2. The Users table should be selected by default. The users will show up there:user registration api result - Feature 2: Registering app users with the User Registration API

Enjoy!

Share this post
Tweet about this on TwitterShare on FacebookGoogle+