However, from what I can tell, it doesn’t support using OAuth 2.0 to request permissions from another user, and query the API using authorised credentials.
I haven’t used the LinkedIn API, but I believe I’ve gone through the same thing with the Soundcloud API. I used a Soundcloud OAuth package to integrate login with accounts, but the API didn’t work properly through the package. So I ended up just doing HTTP requests straight to the REST API using the auth token stored in accounts.
I’m in the same situation. I’m trying to load the linkedIn profile of a user without logging him inside the app.
So using those 2 packages : pauli:accounts-linkedin & khamoud:linkedin-api, I’m doing the following :
LinkedIn.requestCredential(loadLinkedInProfile);
loadLinkedInProfile = function(tokenOrError){
if(tokenOrError && tokenOrError instanceof Error){
console.log(error);
}
else{
var linkedin = Linkedin().init(tokenOrError);
linkedin.people.me(function(err, $in) {
//Do whatever you want with the profile object $in
});
}
};