public static <T> GameDataResponse<T> getGameData(
Client client,
Class<T> dataType
) throws IOException
Retrieves global game data with Jackson compatible nested objects.
public static SuccessResponse updateGameData(
Client client,
Object data
) throws IOException
Updates global game data (requires private API token). Uses generic type for type safety.
public static <T> PlayerDataResponse<T> getPlayerData(
Client client,
String playerToken,
Class<T> dataType
) throws IOException
Retrieves a specific player's data using their authentication token with typed support.
public static SuccessResponse updatePlayerData(
Client client,
String playerToken,
Object data
) throws IOException
Updates a specific player's data like level, score, and inventory with generic type support.