LinkedIn.CreateTextPost: Fix tool execution error (#94)
Silly typo caused a bug.
This commit is contained in:
parent
990c6243ca
commit
cc3aba61cf
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ async def create_text_post(
|
||||||
"visibility": {"com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC"},
|
"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:
|
if response.status_code >= 200 and response.status_code < 300:
|
||||||
share_id = response.json().get("id")
|
share_id = response.json().get("id")
|
||||||
return f"https://www.linkedin.com/feed/update/{share_id}/"
|
return f"https://www.linkedin.com/feed/update/{share_id}/"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue