
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
linkedin-node-new
Advanced tools
npm install linkedin-node-new
You can run the test by cloning this repo and running:
npm install
node test/test
For setting up:
var linkedInObj = require('linkedin-node-new');
var linkedIn = new linkedInObj({
id: 'MYCLIENTID',
secret: 'MYCLIENTSECRET',
scope: '', // optional, set the scope of your app
redirect_uri: 'http://localhost:9000/#!/oauth/linkedin'
});
var url = linkedIn.createURL();
After you have obtained the 'code' (either via your redirect or elsewhere):
var code = ''; // put the short-time auth code in here.
linkedIn.getAccessToken(code, function(err, access_token) {
console.log(err);
console.log(access_token);
});
If you have saved your access token in some sort of session or cookie data, you can skip the authorization request:
var linkedIn = new linkedInObj({
id: 'MYCLIENTID',
secret: 'MYCLIENTSECRET',
redirect_uri: 'http://localhost:9000/#!/oauth/linkedin',
access_token: 'MYACCESSTOKEN'
});
Once authorized, you can perform typical REST services (https://developer.linkedin.com/documents/authentication for reference):
// GET
linkedIn.get('/v1/people/~:(id,first-name,last-name,headline,positions,picture-url,email-address)', function(err, res) {
if(err) {
return console.log(err);
}
console.log(res);
console.log(res.positions.values[0]);
});
// POST
// PUT
// DELETE
Built in Ohio. www.typefoo.com
FAQs
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
We found that linkedin-node-new demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.