Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.