mirror of
https://github.com/hanzo-kt/sdk.git
synced 2026-10-30 20:43:57 +00:00
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and Android. Generated with openapi-generator kotlin (library=jvm-okhttp4, useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai. Co-authored-by: Hanzo Dev <[email protected]>
3.9 KiB
3.9 KiB
MoneyApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| adminAdminAnalytics | GET /v1/admin/analytics | Native SaaS analytics (retention/growth/churn) |
| adminAdminFinance | GET /v1/admin/finance | COGS / gross-margin / runway dashboard |
| adminAdminRevenue | GET /v1/admin/revenue | Fleet revenue aggregate |
adminAdminAnalytics
AdminAdminAnalytics200Response adminAdminAnalytics(range)
Native SaaS analytics (retention/growth/churn)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = MoneyApi()
val range : kotlin.String = range_example // kotlin.String |
try {
val result : AdminAdminAnalytics200Response = apiInstance.adminAdminAnalytics(range)
println(result)
} catch (e: ClientException) {
println("4xx response calling MoneyApi#adminAdminAnalytics")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling MoneyApi#adminAdminAnalytics")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| range | kotlin.String | [optional] [default to Range._30d] [enum: 7d, 30d, 90d, all] |
Return type
AdminAdminAnalytics200Response
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
adminAdminFinance
AdminAdminFinance200Response adminAdminFinance()
COGS / gross-margin / runway dashboard
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = MoneyApi()
try {
val result : AdminAdminFinance200Response = apiInstance.adminAdminFinance()
println(result)
} catch (e: ClientException) {
println("4xx response calling MoneyApi#adminAdminFinance")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling MoneyApi#adminAdminFinance")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
adminAdminRevenue
AdminAdminRevenue200Response adminAdminRevenue()
Fleet revenue aggregate
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = MoneyApi()
try {
val result : AdminAdminRevenue200Response = apiInstance.adminAdminRevenue()
println(result)
} catch (e: ClientException) {
println("4xx response calling MoneyApi#adminAdminRevenue")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling MoneyApi#adminAdminRevenue")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json