Spaces:
Running
Running
Update Linkedin_Data_API_Calls.py
Browse files
Linkedin_Data_API_Calls.py
CHANGED
@@ -79,8 +79,8 @@ def fetch_linkedin_posts_core(comm_client_id, community_token, org_urn, count):
|
|
79 |
token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
|
80 |
session = create_session(comm_client_id, token=token_dict)
|
81 |
session.headers.update({
|
82 |
-
"X-Restli-Protocol-Version": "2.0.0",
|
83 |
-
"LinkedIn-Version": "
|
84 |
})
|
85 |
|
86 |
posts_url = f"{API_REST_BASE}/posts?author={org_urn}&q=author&count={count}&sortBy=LAST_MODIFIED"
|
|
|
79 |
token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
|
80 |
session = create_session(comm_client_id, token=token_dict)
|
81 |
session.headers.update({
|
82 |
+
#"X-Restli-Protocol-Version": "2.0.0",
|
83 |
+
"LinkedIn-Version": "202502"
|
84 |
})
|
85 |
|
86 |
posts_url = f"{API_REST_BASE}/posts?author={org_urn}&q=author&count={count}&sortBy=LAST_MODIFIED"
|