
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
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 (http://docs.linkedIn.com/api/ 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.
The npm package linkedin-node-new receives a total of 5 weekly downloads. As such, linkedin-node-new popularity was classified as not popular.
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
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.