Spaces:
Running
Running
Update Linkedin_Data_API_Calls.py
Browse files
Linkedin_Data_API_Calls.py
CHANGED
@@ -79,7 +79,6 @@ 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": "202502"
|
84 |
})
|
85 |
|
@@ -204,8 +203,7 @@ def fetch_comments(comm_client_id, community_token, post_urns, stats_map):
|
|
204 |
token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
|
205 |
linkedin_session = create_session(comm_client_id, token=token_dict)
|
206 |
linkedin_session.headers.update({
|
207 |
-
'LinkedIn-Version': "
|
208 |
-
"X-Restli-Protocol-Version": "2.0.0"
|
209 |
})
|
210 |
|
211 |
all_comments_by_post = {}
|
|
|
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 |
"LinkedIn-Version": "202502"
|
83 |
})
|
84 |
|
|
|
203 |
token_dict = community_token if isinstance(community_token, dict) else {'access_token': community_token, 'token_type': 'Bearer'}
|
204 |
linkedin_session = create_session(comm_client_id, token=token_dict)
|
205 |
linkedin_session.headers.update({
|
206 |
+
'LinkedIn-Version': "202502"
|
|
|
207 |
})
|
208 |
|
209 |
all_comments_by_post = {}
|