Skip to main content

Java SDK

The Java SDK provides a comprehensive library for easily integrating with the Mambo API. This client library simplifies development by handling authentication, request formatting, and response parsing, allowing you to focus on your application logic. The JAR bundle includes source code with contextual JavaDocs to facilitate development.

To connect to the Mambo API, use one of the service classes provided in the services package. See the code samples below for implementation examples.

Installation​

Requirements​

  • Java 1.8 or later

Manual dependencies​

Dependencies via Maven​

Maven

Dependencies via Gradle​

Gradle

Downloads​

The Mambo SDK requires the following JARs to be installed manually.

Documentation​

Client initialisation​

To initialise the SDK, you'll need to set your credentials and, if using an on-premise installation, the API endpoint URL.

Java

Path and query parameters​

Use parameter objects to provide path and query parameters to endpoint methods.

Java

Request options​

Use the request options object to provide configuration on a per-request basis. This object can be used to provide idempotency keys or request specific timeouts.

Java

Getting started​

Here's a complete example showing how to initialise the client and make a basic API call:

Java

Troubleshooting​

Common issues​

Connection timeouts​

If you experience connection timeouts, you can increase the timeout settings when initialising the client:

Java

Logging​

Enable debug logging to troubleshoot issues:

Java