Merge pull request #419 from gitroomhq/fix/linkedin
Linkedin problems in load companies
This commit is contained in:
commit
9ffae68f9f
|
|
@ -103,6 +103,8 @@ export class LinkedinPageProvider
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${accessToken}`,
|
Authorization: `Bearer ${accessToken}`,
|
||||||
|
'X-Restli-Protocol-Version': '2.0.0',
|
||||||
|
'LinkedIn-Version': '202402',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
@ -124,7 +126,10 @@ export class LinkedinPageProvider
|
||||||
requiredId: string,
|
requiredId: string,
|
||||||
accessToken: string
|
accessToken: string
|
||||||
): Promise<AuthTokenDetails> {
|
): Promise<AuthTokenDetails> {
|
||||||
const information = await this.fetchPageInformation(accessToken, requiredId);
|
const information = await this.fetchPageInformation(
|
||||||
|
accessToken,
|
||||||
|
requiredId
|
||||||
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: information.id,
|
id: information.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue