LinkedIn.CreateTextPost: Fix tool execution error (#94)

Silly typo caused a bug.
This commit is contained in:
Nate Barbettini 2024-10-07 09:08:30 -07:00 committed by GitHub
parent 990c6243ca
commit cc3aba61cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,7 +106,7 @@ async def create_text_post(
"visibility": {"com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC"},
}
response = await _send_linkedin_request(context, "POST", endpoint, json=payload)
response = await _send_linkedin_request(context, "POST", endpoint, json_data=payload)
if response.status_code >= 200 and response.status_code < 300:
share_id = response.json().get("id")
return f"https://www.linkedin.com/feed/update/{share_id}/"