Connect With API Providers in Appery.io App Using OAuth.io

Posted: April 1st, 2014 | Author: | Filed under: API | Tags: | Comments Off

OAuth is an open protocol to allow secure authorization from web, mobile, and desktop apps. However, making  OAuth work in your mobile app is not a simple task and often takes a lot of time and effort. Using the OAuth.io service is a great and simple way to save time, and make the authentication pretty much work out-of-the-box.

oauth-io-logo

OAuth.io service can be easily integrated in Appery.io app. There are two ways to setup the OAuth.io plug-in in Appery.io app:

Include OAuth.js as JavaScript asset

This approach can be helpful when developing a mobile web app. Apps with OAuth.js included as JavaScript asset work from browser and can be quickly tested by clicking the Test button. Such approach saves development time because you don’t need to install the app on the device every time after making changes. These are the steps:

  1. Go to OAuth.io web site and download the latest JavaScript library.
  2. Upload this library to your Appery.io app by choosing Create New -> JavaScript -> Create from file.
  3. You have to remove or comment the if statement on line 193 in that file because the Appery.io app already contains some methods with “OAuth” name.

Include as PhoneGap plugin

Apps with OAuth.io service included as PhoneGap plugin will not work from the browser. Such apps should be built as binary and installed directly on the device. Steps for adding OAuth.io as PhoneGap plugin are almost identical to adding any 3rd party PhoneGap plug-in:

  1. Download repository from github plug-in page.
  2. Create new folder for this plugin in the Appery.io app and upload oauth.js:
  3. Add the following line of code to the very beginning of this file:
    • cordova.define(“com.phonegap.plugins.oauthio”, function (require, exports, module) {
      and the closing bracket to end of file “}”.
    • Edit the cordova_plugins.js file by adding plug-in description.

Once the OAuth.io included in Appery.io app the same code can be used to initialize and authenticate. See the OAuth.io documentation for code examples.

Examples

Adding Oauth.io service to your app is pretty simple.  See our detailed tutorial where we describe how to authenticate with Google and how to post to Facebook.


Appery.io + Salesforce: The Tools to Build Enterprise Mobile Apps Fast

Posted: August 1st, 2013 | Author: | Filed under: API, Enterprise, Plugin | Tags: , , | Comments Off

We just made it incredibly easy and fast to build enterprise mobile apps connected to Salesforce API with the Salesforce Mobile Pack for Appery.io. Appery.io has two plug-ins that make it super easy to connect to Salesforce:

  • Salesforce OAuth API – this plug-is includes everything you need to connect to the Salesforce API via OAuth 2. Examples include Salesforce API, SOQL, and Chatter API
  • Salesforce Contacts API Sample App – this plug-in includes the OAuth 2 implementation plus a Contacts sample app. The mobile web app allows you to view, edit and create new contacts on Salesforce using the REST API.

A step by step tutorial shows how to import and use the plug-ins.

Screen Shot 2013-07-31 at 1.31.42 PM

Adding Salesforce plug-in

The Salesforce Contacts API Sample App has a complete app that allows to view and edit contacts in your Salesforce account. Use this app to learn how to use Salesforce API or as a starting for your app.

The Salesforce OAuth API has everything you need to get started. It includes a number of examples to get you started: using Salesforce API, using SOQL, and use Chatter API.

The Appery.io drag and drop visual app builder makes it incredibly easy to build or modify the app UI. You simply drag and drop components into the phone area. For example, editing the edit contact page from Contacts app:

Screen Shot 2013-07-31 at 1.36.56 PM

Visual drag and drop editor

You are not limited to what the plug-in provides. You can build any app UI using the visual editor and connect to any Salesforce APIs. Here is an example defining a service that connects to Salesforce:

Screen Shot 2013-07-31 at 1.48.53 PM

Salesforce API

Our guide shows in detail how to setup any Salesforce API service.

By combining the power of Salesforce and Appery.io dev. tools – we just made it super easy to build enterprise mobile apps entirely in the cloud. Visit http://appery.io/saleforce for a special promo code for Salesforce developers.

 

Originally posted on Maxa blog. 


Read News, Get Information about the Latest Music, Movie, and Book Reviews with the USA Today API Plug-in

Posted: April 24th, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

usatoday_logo2

Our new USA Today API Plug-in allows you to read news from different categories offered by USA Today and get information about the latest music, movie, and book reviews. Also, you can find top salaries for different sports leagues. Read the rest of this entry »


Find Out about Tech Companies around the World with the CrunchBase API Plug-in

Posted: April 24th, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

cb01

This API allows you to interact with the huge CrunchBase database. (What is CrunchBase? CrunchBase is a free database of technology companies, people, and investors that anyone can edit.) To make it easier to use the API to make mobile apps in Appery.io, we created a plug-in with some ready-made services (interfaces) for using the CrunchBase API. Read the rest of this entry »


Interact with NY Times Best Sellers Search Data Using Our NY Times Best Sellers Search Plug-in

Posted: April 24th, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

We’ve just made the NY Times Best Sellers Search API plug-in available. The API allows you to interact with NY Times best seller data. To make it easier to use the API to make mobile apps in Appery.io, we created a plug-in with some ready-made services (interfaces) to use the NY Times API. Read the rest of this entry »


Discover Everything about the Weather with the Wunderground API Plug-in

Posted: April 24th, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

The Wunderground API allows you to receive information about weather conditions, forecasts, historical information about weather, etc. To make it easier to use the API in Appery.io, we created a plug-in with some ready-made services which use the Wunderground API. Read the rest of this entry »


Search NY Times Articles with the NY Times Article Search Plug-in

Posted: April 24th, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

We’ve just made the NY Times Article Search Plug-in available. The API allows you to interact with NY Times articles. To make it easier to use the API to make mobile apps in Appery.io, we created a plug-in with some ready-made services (interfaces) to use the NY Times Article Search API. Read the rest of this entry »


Interact with Media Data Using the Tribune Company API and Sample App Plug-in

Posted: April 24th, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

We’ve just made the Media/Tribune Company API and Sample App plug-in available. The API allows you to interact with Tribune Company media data. To make it easier to use the API and make mobile apps in Appery.io, we created a plug-in with some ready-made services (interfaces) to use the Tribune Company API. Read the rest of this entry »


Get Access to Your Instagram Account, Find Users, and Watch Popular Photos with Our New Instagram API Plug-in

Posted: April 24th, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

We’ve just made the Instagram API plug-in available. The Instagram API plug-in can be instantly added to any new or existing app and allows a user to view his photo, search popular photos, find photos on the Google map, find photos in the same location, search for a user and look at the user’s photo, and read comments. The Instagram API offers a REST services that help you to use Instagram in many ways. Read the rest of this entry »


Manage Your Health and Share Information with the CarePass Plug-in

Posted: April 22nd, 2013 | Author: | Filed under: API, Plugin | Tags: , | Comments Off

img_CarePassSync

CarePass Sync is a secure personal health, wellness, and nutrition cloud created for all consumers. It enables users to consolidate their data from all of the CarePass Sync enabled apps that they use in a single location.

We’ve just made the CarePass plug-in available. You can log in to the consumer-facing https://www.carepass.com to view your CarePass profile and update or add information. Your profile will contain the aggregated information from all of the CarePass-enabled apps that you use. Read the rest of this entry »