From a58653ada8224030365038154ac1f24a506a1561 Mon Sep 17 00:00:00 2001 From: Faysal Ahmed Date: Tue, 11 Jun 2019 22:23:08 +0600 Subject: [PATCH] Support LinkedIn v2 API (#5660) --- src/Adapters/Auth/linkedin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapters/Auth/linkedin.js b/src/Adapters/Auth/linkedin.js index 858ecbb3..fdd793b5 100644 --- a/src/Adapters/Auth/linkedin.js +++ b/src/Adapters/Auth/linkedin.js @@ -5,7 +5,7 @@ const httpsRequest = require('./httpsRequest'); // Returns a promise that fulfills iff this user id is valid. function validateAuthData(authData) { return request( - 'people/~:(id)', + 'me', authData.access_token, authData.is_mobile_sdk ).then(data => { @@ -36,7 +36,7 @@ function request(path, access_token, is_mobile_sdk) { } return httpsRequest.get({ host: 'api.linkedin.com', - path: '/v1/' + path, + path: '/v2/' + path, headers: headers, }); }