Skip to main content

Install

pip install leadping
Install a Kiota HTTP adapter in the application that will call Leadping:
pip install microsoft-kiota-http

Create a client

The SDK exports LeadpingOpenApiClient. Pass it a Kiota request adapter that attaches either Authorization: Bearer <token> or X-Leadping-Api-Key: <key>.
from leadping import LeadpingOpenApiClient

request_adapter = create_leadping_request_adapter()
client = LeadpingOpenApiClient(request_adapter)

me = await client.users.me.get()
create_leadping_request_adapter is your application code. The generated SDK does not own token storage or API key handling.

Common calls

source = await client.sources.by_id("source-id").get()
lead = await client.leads.by_id("lead-id").get()
current_user = await client.users.me.get()
Use generated request body classes from the leadping package when creating or updating records.