Video: How to Call WordPress REST API

Watch this short video to learn how to call the WordPress REST API from an Appery.io app. The video shows two approaches invoking the API.  First, it shows how to invoke an API using API Express. Second, it shows how to invoke an API from Server Code.

If you like this video, check the Appery.io YouTube channel for many more short videos to help you build apps faster.

How to Build and Test an Ionic SMS App

This video shows how to build and test an Ionic SMS app using Nexmo API. The video tutorial first shows how to create a backend to invoke Nexmo API. Then the Ionic app is created which uses the backend. The app is then tested in the browser and on the device using the Appery.io Tester app. The video also shows how to build a binary file for Android and iOS.

Looking for more videos to help build mobile apps? Check out the Appery.io YouTube channel.

What is Appery.io Database?

Appery.io Database is a cloud database for storing any information or data for your app. For example, you can store app users, orders, purchases, pictures — or anything else that your app needs to store.

The database is running in the cloud, this means that the app connects to the database via REST API.

The database has two types of collections or tables: pre-defined and custom.

There are three pre-defined collections:

  • Users – for managing users. For example, you can add user login and registration to an app.
  • Files – for storing files.
  • Devices – device information which have registered to receive Push Notifications. This collection is used to send targeted Push Notifications. For example, send a message to all users who subscribed to get news about travel.

In addition to the pre-defined collections which are automatically available in each new database, you can create any number of custom collections (tables). Custom collections can hold any data.

A collection can have any number of columns to hold the data. The following column data types are supported:

  • String
  • Number
  • Boolean
  • Date
  • Array
  • Pointer – reference to another collection
  • Object
  • Geopoint – geolocation point expressed as latitude, longitude
  • File

The database is accessed via a REST API. An API key is required to access any database collection. Further security can be added by making a database secure – this means a user login will be required before a database can be accessed from the app. The user is kept in the Users collection.

In addition to using the built-in Users collection for user management, login into an app can also be accomplished via social networks: Facebook, Twitter and Google.

More security and permissions can be specified via ACL (Access Control List). Every new records/object created in the database can have specific access control information. For example, only the user who created this object can read and write this object. Everyone else can only read the object.

A special master key is also available which gives a root-like access to the database.

The Database has a built-in Versioning feature. It allows to create an instance (copy) of the database and restore it at any point.

The Database is nicely integrated with the Server Code component. Server Code provides elegant API to access the database from a server-side script.

We have a number of short videos on using the Database on our YouTube channel here and here.

Happy coding.

How to Create and Test Uber REST API in Ionic, Angular Mobile App in 3 Minutes

This 3-minute video shows how to create and test a REST API. Uber API is used in the example.

Check out many other videos on Appery.io YoutTube channel.

Updated With More Elegant Code: Invoking Uber REST API From Server Code

Screen Shot 2015-10-14 at 2.50.55 PM
Invoking Uber API

Last Friday I blogged how to invoke Uber REST API from the server. I was looking at Uber documentation and realized there is a better and more elegant way to invoke the API. Uber specifically provides a server token. Instead of using a header parameter, I have updated the script to use the server token. This is how the code looks now:

// service input
var lat = request.get("lat");
var lng = request.get("lng");
var url = "https://api.uber.com/v1/products";
var token = "4dPYezRBsWmqpV_XOyhIb2lndGsRfJaYhhXvJBRY";

var parameters = {
  "server_token": token,
  "latitude": lat,
  "longitude": lng
};

// send Ajax request
var res = XHR2.send("GET", url, {
  parameters
});
  
// response
response.success(res, "application/json");

Also, instead of attaching the parameters to the URL, the script creates parameters object with all the inputs for the API. This script is more elegant and simpler to understand.

Learn How to Build Apps Fast with Ionic, Angular and Appery.io in Atlanta

I will be in Atlanta on September 15th showing how to rapidly build enterprise mobile apps with Ionic, Angular and Appery.io at the joint Atlanta Atlanta Mobile Developers Group and Atlanta HTML5 User Group meetup. Hope to see you there.

Screen Shot 2015-08-14 at 2.40.50 PM
Appery.io App Builder for Ionic

What

Gone are the days where you can afford to take months to build an enterprise mobile app. In today’s fast market, you need to be able to prototype the app in a few days, release the first version in a few weeks, get feedback, fix bugs, release the second version. Repeat.

In this session you will learn how to rapidly build a mobile app with AngularJS and Ionic connected to cloud APIs using Appery.io cloud platform.

When

Wednesday, September 15, 2015, 6:30 PM

Where

EHire
3500 Lenox Rd NE # 630, Atlanta, GA (map)

Attend

Yes, I want to learn how to build apps with Ionic and Angular. Register here or here.

Rapid Enterprise Mobile Development with Appery.io Platform – Utah Java Users Group

I will be in Salt Lake City, UT talking how how to rapidly build enterprise mobile apps with Appery.io. Hope to see you there.

Appery.io App Builder
Appery.io App Builder

What

Gone are the days where you can afford to take months to build an enterprise mobile app. In today’s fast market, you need to be able to prototype the app in a few days, release the first version in a few weeks, get feedback, fix bugs, release the second version. Repeat. In this session you will learn how to rapidly build a mobile app connected to cloud APIs using Appery.io cloud platform. This is a live coding session where you will be able to test the app on your device, and we will package the app for iOS/Android.

When

Thursday, August 20, 2015, 8:00 PM

Where

IHC Intermountain Medical Center’s Education Center
5121 Cottonwood St, Salt Lake City, UT (map)

Attend

Yes, I want to attend.

Using AngularJS for Rapid Mobile App Development in the Cloud – Washington DC AngularJS Meetup

I will be in Washington DC talking how to build enterprise mobile apps with Angular and Ionic. Hope to see you there.

Screen Shot 2015-08-14 at 2.40.50 PM
Appery.io App Builder for Ionic

What

Gone are the days where you can afford to take months to build an enterprise mobile app. In today’s fast market, you need to be able to prototype the app in a few days, release the first version in a few weeks, get feedback, fix bugs, release the second version. Repeat. In this session you will learn how to rapidly build a mobile app with AngularJS and Ionic connected to cloud APIs using Appery.io cloud platform. This is a live coding session where you will be able to test the app on your device, and we will package the app for iOS/Android.

When

Wednesday, August 19, 2015, 7:00 PM

Where

Difference Engine
1528 Connecticut Ave., Washington, DC (map)

Attend

Yes, I want to attend.

Webinar Recording: Offline, LDAP, New Ionic Components, Angular Scope Editor, Share Your App and More

This is a What’s New in Appery.io webinar and covers:

  • Offline support for Appery.io Database using Ionic app as example
  • LDAP and Appery.io Database support for authentication in API Express
  • New Ionic and Bootstrap UI components
  • Updated Angular scope editor
  • Share your app with anyone via Appery.io Tester App (even without Appery.io account)
  • And more

You Probably Didn’t Know These Apps Were Hybrid

You probably didn’t know that Amazon App Store, Evernote, Twitter and other are hybrid apps. Read 8 High Performance Apps You Never Knew Were Hybrid.