Skip to content

Commit 343c4e7

Browse files
authored
fix: upgrade deprecated linkedin api version [CM-907] (#3823)
1 parent ec6119a commit 343c4e7

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

services/libs/integrations/src/integrations/linkedin/api/commentComments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const getCommentComments = async (
2525
start,
2626
},
2727
headers: {
28-
'LinkedIn-Version': '202306',
28+
'LinkedIn-Version': '202601',
2929
Authorization: `Bearer ${accessToken}`,
3030
},
3131
}

services/libs/integrations/src/integrations/linkedin/api/organization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const getOrganization = async (
2323
},
2424
headers: {
2525
'X-Restli-Protocol-Version': '2.0.0',
26-
'LinkedIn-Version': '202306',
26+
'LinkedIn-Version': '202601',
2727
},
2828
}
2929

services/libs/integrations/src/integrations/linkedin/api/organizationPosts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const getOrganizationPosts = async (
2727
start,
2828
},
2929
headers: {
30-
'LinkedIn-Version': 202306,
30+
'LinkedIn-Version': 202601,
3131
Authorization: `Bearer ${accessToken}`,
3232
},
3333
}

services/libs/integrations/src/integrations/linkedin/api/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const getPost = async (
1818
url: `https://api.linkedin.com/rest/posts/${postId}`,
1919
headers: {
2020
'X-Restli-Protocol-Version': '2.0.0',
21-
'LinkedIn-Version': '202306',
21+
'LinkedIn-Version': '202601',
2222
},
2323
}
2424

services/libs/integrations/src/integrations/linkedin/api/postComments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const getPostComments = async (
2323
start,
2424
},
2525
headers: {
26-
'LinkedIn-Version': 202306,
26+
'LinkedIn-Version': 202601,
2727
},
2828
}
2929

services/libs/integrations/src/integrations/linkedin/api/postReactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const getPostReactions = async (
2626
},
2727
headers: {
2828
'X-Restli-Protocol-Version': '2.0.0',
29-
'LinkedIn-Version': '202306',
29+
'LinkedIn-Version': '202601',
3030
},
3131
}
3232

0 commit comments

Comments
 (0)