Skip to main content

Install

dotnet add package Leadping.OpenApiClient
Install a Kiota HTTP adapter in the application that will call Leadping:
dotnet add package Microsoft.Kiota.Http.HttpClientLibrary

Create a client

The SDK exposes LeadpingOpenApiClient. Pass it a Kiota request adapter that attaches either Authorization: Bearer <token> or X-Leadping-Api-Key: <key>.
using Leadping.OpenApiClient;
using Microsoft.Kiota.Abstractions;

IRequestAdapter requestAdapter = CreateLeadpingRequestAdapter();
var client = new LeadpingOpenApiClient(requestAdapter);

var me = await client.Users.Me.GetAsync();
CreateLeadpingRequestAdapter is your application code. The generated SDK does not own token storage or API key handling.

Common calls

var source = await client.Sources["source-id"].GetAsync();
var lead = await client.Leads["lead-id"].GetAsync();
var currentUser = await client.Users.Me.GetAsync();
Use generated request body classes from the Leadping.OpenApiClient namespace when creating or updating records.