trustcafe-api-wrapper/jobs/comment/create.py
2026-03-31 12:00:49 +01:00

13 lines
No EOL
411 B
Python

def create(API, payload: dict) -> dict:
"""
Creates a new comment in the API.
Args:
payload (dict): The data for the new post.
Returns:
dict: The comment data.
"""
print(f"Creating a new comment with payload: {payload}")
comment_data = API.make_request("POST", "content", "commentcreate", data=payload, authenticate=True)
return comment_data