Spaces:
Running
Running
Update Linkedin_Data_API_Calls.py
Browse files
Linkedin_Data_API_Calls.py
CHANGED
@@ -313,7 +313,7 @@ def fetch_comments(comm_client_id, community_token, post_urns, stats_map):
|
|
313 |
try:
|
314 |
# IMPORTANT: Use the correct endpoint structure from your working code.
|
315 |
# The post_urn goes directly into the path and should NOT be URL-encoded here.
|
316 |
-
url = f"{API_REST_BASE}/socialActions/{post_urn}/comments
|
317 |
# If you want to add other parameters like 'count' or 'start', append them, e.g.,
|
318 |
# url = f"{API_REST_BASE}/socialActions/{post_urn}/comments?sortOrder=CHRONOLOGICAL&count=10"
|
319 |
|
|
|
313 |
try:
|
314 |
# IMPORTANT: Use the correct endpoint structure from your working code.
|
315 |
# The post_urn goes directly into the path and should NOT be URL-encoded here.
|
316 |
+
url = f"{API_REST_BASE}/socialActions/{post_urn}/comments"
|
317 |
# If you want to add other parameters like 'count' or 'start', append them, e.g.,
|
318 |
# url = f"{API_REST_BASE}/socialActions/{post_urn}/comments?sortOrder=CHRONOLOGICAL&count=10"
|
319 |
|