Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.