Installation
The Kotlin SDK is available via JitPack based on the GitHub repository.Gradle (Kotlin DSL)
Add the JitPack repository and the dependency to yourbuild.gradle.kts:
build.gradle.kts
Gradle (Groovy DSL)
build.gradle
Quickstart
Set the access token on theApiClient companion object and then instantiate API classes directly.
main.kt
API Classes
APIs are separated into distinct classes within thecom.solifyn.api package:
com.solifyn.api.ProductsApi- Manage products and addonscom.solifyn.api.LicenseApi&com.solifyn.api.LicenseKeysApi- Administer software license keyscom.solifyn.api.LicenseKeysClientApi- Public validation and activation endpoints for client softwarecom.solifyn.api.CheckoutApi- Generate checkout sessionscom.solifyn.api.CheckoutLinksApi- Generate checkout linkscom.solifyn.api.CustomersApi- Customer profilescom.solifyn.api.CollectionsApi- Group products in collectionscom.solifyn.api.SubscriptionsApi- Manage subscription planscom.solifyn.api.DiscountsApi- Administer discounts and coupon codescom.solifyn.api.MetersApi- Ingest metered usage billing eventscom.solifyn.api.DeveloperApi- Retrieve API keys and webhookscom.solifyn.api.DigitalFileApi- Handle digital delivery linkscom.solifyn.api.DisputesApi- Handle dispute evidence filescom.solifyn.api.OrdersApi- Invoices and customer purchases