LinkedIn API with MeteorJS

After entering the package accounts-linkedIn, how can I use the rest of the API to get a user profile, for example.

What I tried after downloading LinkedIn librairy like this:

$.getScript("http://platform.linkedin.com/in.js?async=true", function success() {
    IN.init({
        api_key: 'XXXXXXX'
    });
});

I exit for the user profile as follows:

`IN.User.Profile('me')`

But I get a message that the user is not logging in. And if I do IN.User.Authorize(), it works, but I logged in a second time with a pop-up screen that doesn't cause a feeling.

What should I do to get my Meteor login synchronization with the LinkedIn line?

+4
source share
1 answer

If you only need a user profile, is Meteor.user () not enough?

+1
source

Source: https://habr.com/ru/post/1544792/


All Articles