trustcafe-api-wrapper/src/trustcafeapiwrapper/jobs/vote/votecast.py
2026-04-03 00:50:38 +01:00

12 lines
No EOL
324 B
Python

def votecast(API, payload: dict) -> dict:
"""
Casts a vote in the API.
Args:
payload (dict): The data for the vote.
Returns:
dict: The vote data.
"""
vote_data = API.make_request("POST", "content", "votecast", data=payload, authenticate=True)
return vote_data