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. In this blog post, a step by step procedure is shown for integrating LinkedIn with Mule ESB LinkedIn connector.
A sample screen shot is given below
AppRegister_1
AppRegister_2
LinkedIn API Details
A sample screen and XML configuration is given below:
LinkedIn Connector_1
LinkedIn Connector_2
<linkedin:config name="LinkedIn_Confog" apiKey="${apiKey}"
apiSecret="${apiSecret}" doc:name="LinkedIn" scope="r_basicprofile,r_network">
<linkedin:oauth-callback-config domain="localhost"
localPort="3333" remotePort="3333" path="linkedinauthorize" />
</linkedin:config>
<flow name="linkedinconnectFlow1" doc:name="linkedinconnectFlow1">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="3300" doc:name="HTTP" path="linkedinconnect" />
<linkedin:authorize config-ref="LinkedIn_Confog"
doc:name="Authorize" />
<logger message="#[flowVars]" level="INFO" doc:name="Logger" />
</flow>
<flow name="linkedinconnectFlow2" doc:name="linkedinconnectFlow2">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="3300" path="getuser" doc:name="HTTP" />
<linkedin:get-profile-by-url config-ref="LinkedIn_Confog"
url="https://www.linkedin.com/pub/rupesh-sinha/23/350/200"
profileType="PUBLIC" doc:name="LinkedIn">
<linkedin:profile-fields>
<linkedin:profile-field>FIRST_NAME</linkedin:profile-field>
<linkedin:profile-field>LAST_NAME</linkedin:profile-field>
</linkedin:profile-fields>
</linkedin:get-profile-by-url>
<json:object-to-json-transformer
doc:name="Object to JSON" />
<logger message="#[payload]" level="INFO" doc:name="Logger" />
</flow>
http://localhost:3300/linkedinconnect
If you would like to find out more about how Systems Integration could help you make the most out of your current infrastructure while enabling you to open your digital horizons, do give us a call at +44 (0)203 475 7980 or email us at Salesforce@coforge.com
Other useful links:
Integration with Twitter using Mule ESB
Integration of Mule ESB with Microsoft Azure
Integration with Dropbox using Mule ESB