This repository contains example projects demonstrating how to use the Nuntly SDK in Java applications quickly and efficiently.
app/
- Main application module containing example usage of the Nuntly SDK.src/main/java/com/nuntly/
- Java source files for examples.src/main/resources/com/nuntly/
- Resource files for examples.build.gradle.kts
- Gradle build script for the app module.
gradle/
- Gradle wrapper and version configuration.build/
- Build output and reports.settings.gradle.kts
- Gradle settings file.gradle.properties
- Gradle properties file.
- Java 8 or higher
- Gradle (wrapper included)
To run the example application:
# Set your Nuntly API key (replace with your actual key)
export NUNTLY_API_KEY=ntly_xxxx_xxxx
# Run the default Main example
./gradlew :app:run
# Run a specific example (e.g., AccountExample)
./gradlew :app:run -Pexample=Account
# Run the ApiKeysGet example with arguments
./gradlew :app:run -Pexample=apikeys.ApiKeysGet --args="apk_xxxx"
# Run the EmailsSendExample example
./gradlew :app:run -Pexample=EmailsSend
Refer to the source code in app/src/main/java/com/nuntly/examples
for detailed usage.
Contributions are welcome! Please open issues or submit pull requests for improvements or new examples.