Archive for category LinkedIn
To change current status of linkedin from your own site.
Add this code in the function which you call from authentication(function)
Like::
function onLinkedInAuth()
{
IN.API.Profile(“me”).fields(“id”,”firstName”, “lastName”, “industry”, “numConnections”,”educations”,”location”,”headline”,”publicProfileUrl”).result(CurrentStatus);
}
function CurrentStatus(profiles) {
member = profiles.values[0];
document.getElementById(‘LinkedIn_Id’).value=member.id;
//This function updates the status
IN.API.Raw(“/people/~/current-status”) // Update (PUT) the status
.method(“PUT”)
.body(JSON.stringify(“linked in status update via api again”))
}
Deepak Sharma help me in finding this function.
LinkedIn Login
Posted by pardeep in API, LinkedIn, Open Source Technologies on September 5, 2011
LinkedIn Page where you define your App and get an API key.
https://www.linkedin.com/secure/developer
Place where u need to have linkedin Login Button:
<script type=”in/Login”></script>
Javascript Used for LinkedIn Login, where you define the linkedin App(for which you need to login) API Key, the function run on Onload event:
<script type=”text/javascript” src=”http://platform.linkedin.com/in.js”>
api_key: 5FfrZc4k8eeN96ARU1vB-sNogP89zUSsu6T_bMEHL5qUubivfrvj-mTVCvKvjajL
onLoad: onLinkedInLoad
authorize: true
</script>
