Skip to content

Instantly share code, notes, and snippets.

@joesavak
Created June 3, 2011 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joesavak/1006916 to your computer and use it in GitHub Desktop.
Save joesavak/1006916 to your computer and use it in GitHub Desktop.
linkednpost
function postToLinkedIn(comment) {
IN.API.Raw("people/~/current-status")
.method("PUT")
.body(JSON.stringify(comment))
.result(handleLIResults)
.error(handleLIErrors);
};
function handleLIErrors(error) {
var errmsg = error.message
if (errmsg == "Unhandled exception of type: com.linkedin.security.pub.NoPermissionException") {
$.post('/users/removeliuid', {
},function(data) {
}, "json");
}
};
function handleLIResults(result) {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment