eilonmore / linkedin-private-api

LinkedIn NodeJS API, written in TypeScript.
MIT License
263 stars 79 forks source link

getProfile(), getOwnProfile() return status 400 #368

Open kiloz opened 2 years ago

kiloz commented 2 years ago

FOUND: Running the example provided here: https://github.com/eilonmore/linkedin-private-api/blob/master/examples/profile.ts results in status 400 generated.

EXPECTED: Response with respective profile data types.

Thank you for investigating!

kiloz commented 2 years ago

WORKAROUND: hack node_modules/linkedin-private-api/dist/src/requests/profile.request.js replacing : decorationId: 'com.linkedin.voyager.dash.deco.identity.profile.FullProfileWithEntities-35', <-- generates 400 with: : decorationId: 'com.linkedin.voyager.dash.deco.identity.profile.TopCardSupplementary-86',<-- 200 OK

It seems that we need to dynamically learn and set the decorationId key.