Skip to content

Commit a54b844

Browse files
committed
[FIX] Set restli protocol version header back to 2.0
1 parent a9fffb6 commit a54b844

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

components/linkedin/common/constants.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const VERSION_PATH = "rest";
22
const BASE_URL = "https://api.linkedin.com/";
33
const VERSION_HEADER = "202509";
4+
const RESTLI_PROTOCOL_VERSION = "2.0.0";
45

56
const VISIBILITIES = [
67
{
@@ -86,6 +87,7 @@ export default {
8687
VERSION_PATH,
8788
BASE_URL,
8889
VERSION_HEADER,
90+
RESTLI_PROTOCOL_VERSION,
8991
VISIBILITIES,
9092
TYPES,
9193
TIME_GRANULARITY_OPTIONS,

components/linkedin/linkedin.app.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export default {
132132
"Authorization": `Bearer ${this.$auth.oauth_access_token}`,
133133
"Content-Type": "application/json",
134134
"Linkedin-Version": constants.VERSION_HEADER,
135+
"X-Restli-Protocol-Version": constants.RESTLI_PROTOCOL_VERSION,
135136
};
136137
},
137138
async _makeRequest({

components/linkedin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/linkedin",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "Pipedream Linkedin Components",
55
"main": "linkedin.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)