-
Notifications
You must be signed in to change notification settings - Fork 0
Users Module
Lucas E. da Silva edited this page Apr 13, 2026
·
2 revisions
The Users service allows you to authenticate players and retrieve profile information such as usernames, IDs, and avatars.
The primary function for authentication. It validates the credentials, fetches the unique User ID, and automatically saves the data to user://gj-credentials.dat for future sessions.
-
Returns:
trueif login and data fetching were successful,falseotherwise.
Manually authenticates the user's credentials without performing the full login/save routine.
-
Returns:
trueif credentials are valid.
Fetches a user's data using their username.
- Returns: A dictionary containing user details (ID, Type, Status, Avatar URL, etc.).
Fetches a user's data using their unique User ID.
Retrieves the list of IDs for every user that is friends with the currently authenticated user.
var is_logged = await GameJoltAPI.user_login("Lucas", "my_token_123")
if is_logged:
print("Welcome back, ", GameJoltAPI.data_user.username)