Skip to content

Java SDK

The Daktela Java SDK is open-source and hosted on Maven Central for easy dependency management.

Installation

To add the SDK to your project, include the following dependency in your build configuration file: For Maven (pom.xml): <dependency>``<groupId>com.daktela</groupId>``<artifactId>daktela-v6-java-connector</artifactId>``<version>LATEST</version>``</dependency>For Gradle (build.gradle): implementation``'com.daktela:daktela-v6-java-connector:LATEST'

Implementation & Usage

The Java SDK is designed to be intuitive and type-safe. For complete instructions on initializing the library and performing operations, please refer to the README.md file in the official GitHub repository. The repository documentation provides details on:

  • Configuration: Setting up the DaktelaConnector with your instance URL and API Access Token.
  • Repositories: Using specific repository classes to manage Contacts, Tickets, and Activities.
  • Filtering & Sorting: Utilizing the built-in query builder for complex data requests.
  • Exception Handling: Catching and managing API-specific exceptions.

Best Practices

  • Dependency Injection: We recommend managing the DaktelaConnector as a Singleton or via a Dependency Injection framework (like Spring or Guice) to efficiently reuse the underlying HTTP client.
  • Thread Safety: The SDK is designed to be thread-safe, making it suitable for high-concurrency server environments.
  • Security: Use environment variables or a secure configuration vault to store your API Access Tokens. Avoid hardcoding credentials in your source code.