New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

linkedin-node-new

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkedin-node-new - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

35

package.json
{
"name": "linkedin-node-new",
"description": "A NodeJS connector for LinkedIn OAuth2",
"version": "0.0.4",
"author": {
"name": "uh-sem-blee, Co. | typefoo",
"email": "hello@typefoo.com"
"name": "linkedin-node-new ",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"maintainers": [
{
"name": "jjosef",
"email": "john@typefoo.com"
}
],
"repository": {
"type": "git",
"url": "https://github.com/typefoo/linkedin-node-new"
"url": "git+https://github.com/npm/deprecate-holder.git"
},
"devDependencies": {
"prompt": ">= 0.2.11"
},
"main": "./lib/linkedin",
"engines": {
"node": ">= 0.10.0"
},
"readmeFilename": "README.md",
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/typefoo/linkedin-node-new/issues"
"url": "https://github.com/npm/deprecate-holder/issues"
},
"_id": "linkedin-node-new@0.0.2",
"_from": "linkedin-node-new@"
"homepage": "https://github.com/npm/deprecate-holder#readme"
}

@@ -1,59 +0,5 @@

# LinkedIn Node
# Deprecated Package
npm install linkedin-node-new
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
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
Please contact support@npmjs.com if you have questions about this package.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc