@leadping/sdk
v1.0.22
Published
Typed TypeScript client for the Leadping API, generated from the Leadping OpenAPI document with Microsoft Kiota.
Maintainers
Readme
Leadping TypeScript SDK
Type-safe TypeScript client for the Leadping API.
Install
npm install @leadping/sdkThe generated client uses a Kiota request adapter. Install the default fetch adapter:
npm install @microsoft/kiota-http-fetchlibraryGitHub Packages is also available:
npm config set @leadpingai:registry https://npm.pkg.github.com
npm install @leadpingai/sdkUse
import { createLeadpingOpenApiClient } from "@leadping/sdk";
const adapter = createLeadpingRequestAdapter();
const client = createLeadpingOpenApiClient(adapter);
const me = await client.users.me.get();createLeadpingRequestAdapter is application code. Configure it to send one of:
Authorization: Bearer <token>X-Leadping-Api-Key: <key>
The client defaults to https://api.leadping.ai when the adapter does not already have a base URL.
