Java Overview
Transaction Class
Overview
Example Usage: Fetching Transactions
Transaction transaction = new Transaction()
.setApiKey("your_api_key_here").setPlayerName("Nelson");
try {
Transaction[] transactions = transaction.getTransactions();
if (transactions.length > 0) {
for (Transaction trans : transactions) {
System.out.println("Player: " + trans.player_name + ", Product: " + trans.product_name + ", Amount: " + trans.product_amount);
}
} else {
System.out.println("No transactions found for the player.");
}
} catch (Exception e) {
System.err.println("Error fetching transactions: " + e.getMessage());
}Constructor
Methods
Fields
Exception
Post Class
Overview
Methods
Helper Methods
Exceptions
Last updated