Spaces:
Running
Running
Update Linkedin_Data_API_Calls.py
Browse files
Linkedin_Data_API_Calls.py
CHANGED
@@ -133,7 +133,7 @@ def fetch_comments(comm_client_id, token_dict, post_urns, stats_map):
|
|
133 |
# LinkedIn API versions can change, ensure this is up-to-date.
|
134 |
# Using a recent version like "202402" or as per current LinkedIn docs.
|
135 |
# The user had "202502", which might be a future version. Using a slightly older one for safety.
|
136 |
-
linkedin_session.headers.update({'LinkedIn-Version': "
|
137 |
|
138 |
all_comments_by_post = {}
|
139 |
logging.info(f"Fetching comments for {len(post_urns)} posts.")
|
|
|
133 |
# LinkedIn API versions can change, ensure this is up-to-date.
|
134 |
# Using a recent version like "202402" or as per current LinkedIn docs.
|
135 |
# The user had "202502", which might be a future version. Using a slightly older one for safety.
|
136 |
+
linkedin_session.headers.update({'LinkedIn-Version': "202502"})
|
137 |
|
138 |
all_comments_by_post = {}
|
139 |
logging.info(f"Fetching comments for {len(post_urns)} posts.")
|