trustcafe-api-wrapper/jobs/userprofile/get.py
2026-03-30 19:44:12 +01:00

12 lines
No EOL
423 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.
"""
print(f"Fetching profile for user slug: {user_slug}")
profile_data = API.make_request("GET", "content", f"userprofile/{user_slug}", authenticate=True)
return profile_data