13 lines
No EOL
411 B
Python
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 |