// App.java
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.databind.JsonNode; // from Jackson
// If not in a package, no 'package' declaration is needed.
public class Numerology {
public static void main(String[] args) {
// Example usage for numerology:
String userID = System.getenv("ASTROLOGY_API_USER_ID");
String apiKey = System.getenv("ASTROLOGY_API_KEY");
AstrologyAPIClient client = new AstrologyAPIClient(userID, apiKey);
Map data = new HashMap();
data.put("name", "John Doe");
data.put("day", 8);
data.put("month", 12);
data.put("year", 2023);
JsonNode response = client.customCall(
"numero_table",
data,
"json"
);
if (response != null) {
System.out.println("Response:\n" + response.toPrettyString());
} else {
System.err.println("Failed to retrieve data.");
}
}
}