Laddro DocsLaddro Docs
SDKs

.NET SDK

.NET SDK

The official .NET SDK for the Laddro Career API.

Installation

dotnet add package Laddro.Career

Quick Start

using Laddro.Career;

var client = new LaddroClient(apiKey: Environment.GetEnvironmentVariable("LADDRO_API_KEY")!);

// List templates
var templates = await client.Templates.ListAsync();

// Parse a resume
await using var file = File.OpenRead("resume.pdf");
var resume = await client.Resumes.ParseAsync(file, "resume.pdf");

// Tailor for a job
var result = await client.TailorAsync(new TailorParams
{
    ResumeId = resume.Id,
    PositionName = "Senior Engineer",
    JobDescription = "We are looking for..."
});

Streaming

await foreach (var ev in client.TailorStreamAsync(new TailorParams
{
    ResumeId = "res_abc123",
    PositionName = "Senior Engineer",
    JobDescription = "..."
}))
{
    Console.WriteLine($"{ev.Section}: {ev.Content}");
}

Error Handling

try
{
    await client.Resumes.GetAsync("nonexistent");
}
catch (LaddroApiException ex)
{
    Console.WriteLine(ex.Status);   // 404
    Console.WriteLine(ex.Message);  // "Resume not found"
}

Source

github.com/laddro-app/laddro-career-sdk-dotnet

On this page