trustcafe-api-wrapper/jobs/userprofile/get.py
2026-03-31 12:12:43 +01:00

11 lines
No EOL
364 B
Python

def get(API, user_slug: str,) -> dict:
"""
Fetches the user profile data from the API.
Args:
user_slug (str): Slug of the user whose profile to fetch.
Returns:
dict: The user profile data.
"""
profile_data = API.make_request("GET", "content", f"userprofile/{user_slug}", authenticate=True)
return profile_data