Integration of linked in using mule esb

8
www.sanjeetpandey.com www.sanjeetpandey.com Prepared by – Sanjeet Pandey Integration of Linked-in using Mule ESB

Transcript of Integration of linked in using mule esb

Page 1: Integration of linked in using mule esb

www.sanjeetpandey.com

www.sanjeetpandey.com

Prepared by – Sanjeet Pandey

Integration of Linked-in using Mule ESB

Page 2: Integration of linked in using mule esb

www.sanjeetpandey.com

Overview

• LinkedIn is a business-oriented social networking service • LinkedIn was founded in December 2002 and launched on May 5, 2003• It is mainly used for professional networking• As  of  June  2013,  LinkedIn  reports more  than 259 million  acquired users  in more  than  200 countries and territories

2

Page 3: Integration of linked in using mule esb

www.sanjeetpandey.com

Configure LinkedIn

• Go to https://www.linkedin.com/secure/developer• Click on Add new Application• Fill in the form and click on Add Application• Make a note of the consumer key, consumer secret and the OAuth2 Redirect URL as these will be used during our Mule ESB application configuration

• Click on Done

3

Page 4: Integration of linked in using mule esb

www.sanjeetpandey.com

Mule Connector

• Create a new Mule Application• Click on Global Elements tab in your main flow• Click on Create Button• Select LinkedIn under Connector Configuration group

• Add your LinkedIn consumer key value to API Key text box

• Add your LinkedIn consumer secret value to API Secret text box

• Add “r_basicprofile,r_network” in the scope text box

• Click on Oauth tab and specify domain, local port, remote port and Path values.

• The Oauth values should be same as what is configured in LinkedIn App

• A screen shot and sample XML configuration is shown in the next slide

4

Page 5: Integration of linked in using mule esb

www.sanjeetpandey.com

Mule flow

• Install the Microsoft Linkedin Connector in Anypoint Studio (3.5 and above) http://repository.mulesoft.org/connectors/releases/3.5

• Create a new Anypoint Studio Project and Flow.

5

Page 6: Integration of linked in using mule esb

www.sanjeetpandey.com

Mule flow (Cont ..)

6

• Mule Flow XML -

Page 7: Integration of linked in using mule esb

www.sanjeetpandey.com

Running Mule Project

• We are now ready to run the project! First, let us  test run the application from Studio:• Right-click on the application in the Package Explorer pane.• Select Run As > Mule Application:• Start a browser and go to http://localhost:8081/linkedinConnect

7

Page 8: Integration of linked in using mule esb

www.sanjeetpandey.com 8