Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use v2? #88

Open
itaydressler opened this issue Oct 25, 2018 · 16 comments
Open

How to use v2? #88

itaydressler opened this issue Oct 25, 2018 · 16 comments

Comments

@itaydressler
Copy link

Hey, thanks for this lib!

I want to use the v2 lib version in order yo use linkedin v2 api.

  1. How do I install it via npm? is it published there? I managed to install it only via the git link (npm install https://github.com/ArkeologeN/node-linkedin.git#v2.0 --save).
  2. How do I use it after installing? the index.js file is empty, so when I require the file it returns an empty object.

Any help would be greatly appreciated 🙏

@ArkeologeN
Copy link
Owner

@itaydressler it is under-development and not recommended (available) for production use :)

@kartboy16
Copy link

Looks like LinkedIn is forcing everyone to use version 2.0 by March 1, 2019.

https://engineering.linkedin.com/blog/2018/12/developer-program-updates

@YasharF
Copy link
Contributor

YasharF commented Apr 29, 2019

@ArkeologeN do you have any updates on the v2 release? I noticed that the link by @kartboy16 is stating

To reiterate: all developers need to migrate their apps to our newest APIs and OAuth 2.0 by May 1, 2019.

@captainjackrana
Copy link

I've forked the library and made some changes to allow Oauth and basic profile fields fetching to work. Till the time the author officially makes the changes to the library, anyone looking for just basic functionality can use the forked git package for now
npm install captainjackrana/node-linkedin --save

Calls that work as of now -

  • linkedin.people.me - fetches Liteprofile
  • linkedin.people.email - fetches emailAddress

@yashmurty
Copy link

Thank you @captainjackrana.
Any timeline for when this repository would also update to v2? @ArkeologeN

@YasharF
Copy link
Contributor

YasharF commented Jul 30, 2019

@yashmurty or other folks that are seeing this GitHub issue. Access to the original APIs that LinkedIn had, has been mostly removed by them. This is similar to the transition that the rest of the social media providers such as Facebook has been going through to not allow access to the data of users on their platforms. In other words, what node-LinkedIn did is considered mostly inaccessible as well. The APIs that LinkedIn provides is now mostly for their enterprise customers that have paid sales or recruiting subscriptions and listed at https://www.linkedin.com/developers/products.

What are the use cases that are driving developers to want a v2 of node-linked?

@yashmurty
Copy link

yashmurty commented Jul 30, 2019

@YasharF Thank you for the prompt reply.

What are the use cases that are driving developers to want a v2 of node-linked?

The primary reason why asked for the migration is because when I tried to run :

linkedin.people.me(function(err, $in) {
    // Loads the profile of access token owner.
});

It returned with the following message:

{ errorCode: 0,
message: 'This resource is no longer available under v1 APIs',
requestId: '****',
status: 410,
timestamp: 1564501688370 }

Hence I was asking if there is any plan to migrate to v2.

@YasharF
Copy link
Contributor

YasharF commented Jul 30, 2019

LinkedIn with v2 is no longer providing most of the data that linkedin.people.me provided. The data that is now accessible is with the scope: ['r_basicprofile', 'r_emailaddress'] as the response of the OAuth call, which includes only the user's name, profile picture URL, and email address (https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin). As long as you have a way to do an OAuth call, then there is no need for use of node-linked.

Lack of access to the user's profile is not because of upgrading this project to V2. It is that V2 from LinedIn's end does NOT provide the user's profile. It was a decision made by LinkedIn's owner, Microsoft, to remove the access. See:

@yashmurty
Copy link

yashmurty commented Jul 30, 2019

As long as you have a way to do an OAuth call, then there is no need for use of node-linked.

@YasharF Thank you for your comments. 🙏
If there is no plan to update this project to v2 then using node-linkedin to get user profile will no longer be feasible. But I'd like to hear the author @ArkeologeN thoughts on this.

@sanozie
Copy link

sanozie commented Jun 27, 2020

@ArkeologeN any updates on this issue?

@subodhk01
Copy link

Any updates on the v2 library??

@captainjackrana
Copy link

For people looking for an alternate library, I've switched over to node-linkedin-v2
Seems to be working fine, might need to write a couple of wrapper functions on top for additional customizations.

@subodhk01
Copy link

@captainjackrana But there is not documentation provided for this library, even though the source code is pretty self explanatory but still

@YasharF
Copy link
Contributor

YasharF commented Jul 4, 2020

@subodhk01 what is it that you are trying to do which you feel a v2 library would be able to solve?

@subodhk01
Copy link

@YasharF Nothing I'm just asking if there was a proper documentation for any general user.

@YasharF
Copy link
Contributor

YasharF commented Jul 7, 2020

What do you consider a General User? What is it that such a user is trying to do as a general use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants