GuglielmoTor commited on
Commit
c2e55b1
·
verified ·
1 Parent(s): 575b933

Update Linkedin_Data_API_Calls.py

Browse files
Files changed (1) hide show
  1. Linkedin_Data_API_Calls.py +2 -2
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": "202402"
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"