This entry is part 1 of 2 in the series Backendless with Corona

This post will go over the basics of integrating Backendless services into the Corona framework…

First, create your Backendless account and obtain the “application-id” and “secret key”. Keep those handy, you’ll be using them throughout these tutorials.

At present, there is not a proper, Corona-specific API plugin so we’ll be using the REST API for Backendless. A handy link can be found here for the REST documentation.

Managing users in the Backendless

I originally was excited about Backendless for user management. I was excited at the prospect of NOT having to “roll my own”. I was pleased to see that they provided a great and simple, yet flexible user management system. Let’s not waste any time, let’s cover the basics here first and then, let’s REALLY play with the easily customization aspects!

If you replace headers[“application-id”] and headers[“secret-key”] with your own data, and run the above code, it should create a new user with the above info. Here’s what the console should come back with something similar to this:

Yours will differ of course with the unique GUID assigned to your “objectId” and the date/time.

Now, go to your backendless dashboard, and select the data icon and select “users” and you should see the user info listed there. Refresh if it doesn’t appear right away:

Your freshly added user!

It’s that simple. You’ve just created a user programatically using Backendless!

Series NavigationBackendless and Corona: Retrieving user data >>