Our new LinkedIn Plug-in allows you to get access to your LinkedIn account, read your profile data, read data from your connection profile, get a list of connections, search people and companies, and read data from a company profile.
To add this plug-in to an app, you will just need to follow these steps in Appery.io:
- From the Appery.io builder, select Create New and then From Plug-in.
- Click the check box for LinkedIn oAuth API and then click on the Import selected plugins button.
- Open the Services/LINKEDIN_Settings file and set your API key and Secret Key. If you don’t have them, register on http://developer.linkedin.com/ and get the keys for your services.
Once you’ve created a new app based on this plug-in, you actually have a simple demo app with login page and services that can be used for creating other pages you want to have. In this tutorial, we’ll first walk through the sample app which can be built using the services included with the plug-in. Then, we’ll show you what’s “under the hood”.
You can build the app that will allow you to do the following:
- On the start page log in with your LinkedIn credentials:
- Look at your profile:
- Search connections:
- Search companies:
- Look at a company or connection profile:
You can build pages looking like shown here or create another design of pages using the services described below.
Under the Hood
Now let’s take that peek under the hood.
Services from the plug-in are linked to UI components as part of the design of the app. The following REST services that are defined in the LinkedIn plug-in are used in the app.
To read data from your profile you, should use the LINKEDIN_getProfile service. The REST Service Properties tab displays the URL, main settings, and whether a proxy is used:
The Request Parameters tab contains the parameters sent to the LinkedIn service:
(You can find the list at http://developer.linkedin.com/documents/profile-fields.)
The service can be tested and then the returned data (from a successful test) can be used to automatically create a response parameter structure for the service:
The other services are set in the same way with their own parameters.
To read data from connection profile you should use the LINKEDIN_getSelectedConnection service. The various service properties are shown below:
To get list of your connections use the LINKEDIN_getConnections service. The various service properties are shown below:
You can search for people on the LinkedIn network using the LINKEDIN_searchPeople service. The various service properties are shown below:
You can search for companies on the LinkedIn network using the LINKEDIN_companySearch service. The various service properties are shown below:
To read data from the profile of a company you should use the LINKEDIN_getCompany service. The various service properties are shown below:
To find out about the LinkedIn API, go to http://developer.linkedin.com/.