Last weekend we participated in the AT&T Mobile Hacktathon hosted by StackMob. Just before the event we published StackMob API plug-in in Appery.io app builder so that it would be very simple to connect to StackMob. Here is how easy it is to connect to StackMob.
In Appery.io app builder, select Create New > From Plug-in, then select the StackMob plug-in:
When you click to import the plug-in, you will be asked to enter StackMob key that identifies your app:
If you won’t enter the key right away, you can always set it by going to Services/StackMobDatabseSettings file.
The StackMob service looks like this:
You will notice that the URL has [objectName] in it. Simple set it to the object schema name defined in StackMob. My object is called messages so the updated URL would be this:
The service does a GET by default but you can set it to do any other action.
We can now instantly test the service. Open Request Parameters panel and click Test Connection:
We get result back which means our service works (you should create a few sample objects in StackMob before testing). The service input is defined, we now need to define the service output. That can be done automatically by clicking Populate Response Structure button.
Once the service is ready, add it to the page, and bind the service to the UI:
and finally run the app: