Skip to main content

Install

With Gradle:
implementation "ai.leadping:leadping:<version>"
With Maven:
<dependency>
  <groupId>ai.leadping</groupId>
  <artifactId>leadping</artifactId>
  <version>VERSION</version>
</dependency>
Install the Kiota bundle in the application that will call Leadping:
implementation "com.microsoft.kiota:microsoft-kiota-bundle:1.9.3"

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>.
import ai.leadping.openapi.LeadpingOpenApiClient;
import com.microsoft.kiota.RequestAdapter;

public class App {
    public static void main(String[] args) {
        RequestAdapter requestAdapter = createLeadpingRequestAdapter();
        LeadpingOpenApiClient client = new LeadpingOpenApiClient(requestAdapter);

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

Common calls

var source = client.sources().byId("source-id").get();
var lead = client.leads().byId("lead-id").get();
var currentUser = client.users().me().get();
Use generated request body classes from the ai.leadping.openapi.models package when creating or updating records.