Skip to content

Commit fb58f7d

Browse files
faysal515dplewis
authored andcommitted
Support LinkedIn v2 API (parse-community#5660)
1 parent 7ee7ee2 commit fb58f7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Adapters/Auth/linkedin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const httpsRequest = require('./httpsRequest');
55
// Returns a promise that fulfills iff this user id is valid.
66
function validateAuthData(authData) {
77
return request(
8-
'people/~:(id)',
8+
'me',
99
authData.access_token,
1010
authData.is_mobile_sdk
1111
).then(data => {
@@ -36,7 +36,7 @@ function request(path, access_token, is_mobile_sdk) {
3636
}
3737
return httpsRequest.get({
3838
host: 'api.linkedin.com',
39-
path: '/v1/' + path,
39+
path: '/v2/' + path,
4040
headers: headers,
4141
});
4242
}

0 commit comments

Comments
 (0)