Java SDK
This SDK is currently in development and not yet published. The API surface described below is planned. Use the REST API directly in the meantime.
The official Java SDK for the Laddro Career API.
Installation
Package not yet published. Check back soon.
Quick Start
import com.laddro.career.LaddroClient;
var client = LaddroClient.builder()
.apiKey(System.getenv("LADDRO_API_KEY"))
.build();
// List templates
var templates = client.templates().list();
// Parse a resume
var resume = client.resumes().parse(Path.of("resume.pdf"));
// Tailor for a job
var result = client.tailor(TailorParams.builder()
.resumeId(resume.getId())
.jobDescription("Senior Engineer at...")
.build());Streaming
client.tailor(
TailorParams.builder()
.resumeId("res_abc123")
.jobDescription("...")
.build(),
event -> System.out.println(event.getSection() + ": " + event.getContent())
);Error Handling
try {
client.resumes().get("nonexistent");
} catch (LaddroApiException e) {
System.out.println(e.getStatus()); // 404
System.out.println(e.getMessage()); // "Resume not found"
}Source
Last updated on