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]>
7.1 KiB
TablesApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| autoCreateTable | POST /v1/auto/tables | Create a table |
| autoListTables | GET /v1/auto/tables | List tables |
| flowCreateTable | POST /v1/flow/tables | Create a table |
| flowDeleteTable | DELETE /v1/flow/tables/{id} | Delete a table |
| flowGetTable | GET /v1/flow/tables/{id} | Get a table |
| flowListTables | GET /v1/flow/tables | List tables |
autoCreateTable
kotlin.Any autoCreateTable(autoCreateTableRequest)
Create a table
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TablesApi()
val autoCreateTableRequest : AutoCreateTableRequest = // AutoCreateTableRequest |
try {
val result : kotlin.Any = apiInstance.autoCreateTable(autoCreateTableRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling TablesApi#autoCreateTable")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TablesApi#autoCreateTable")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| autoCreateTableRequest | AutoCreateTableRequest |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
autoListTables
kotlin.Any autoListTables()
List tables
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TablesApi()
try {
val result : kotlin.Any = apiInstance.autoListTables()
println(result)
} catch (e: ClientException) {
println("4xx response calling TablesApi#autoListTables")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TablesApi#autoListTables")
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
flowCreateTable
kotlin.Any flowCreateTable(autoCreateTableRequest)
Create a table
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TablesApi()
val autoCreateTableRequest : AutoCreateTableRequest = // AutoCreateTableRequest |
try {
val result : kotlin.Any = apiInstance.flowCreateTable(autoCreateTableRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling TablesApi#flowCreateTable")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TablesApi#flowCreateTable")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| autoCreateTableRequest | AutoCreateTableRequest |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
flowDeleteTable
flowDeleteTable(id)
Delete a table
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TablesApi()
val id : kotlin.String = id_example // kotlin.String |
try {
apiInstance.flowDeleteTable(id)
} catch (e: ClientException) {
println("4xx response calling TablesApi#flowDeleteTable")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TablesApi#flowDeleteTable")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String |
Return type
null (empty response body)
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
flowGetTable
kotlin.Any flowGetTable(id)
Get a table
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TablesApi()
val id : kotlin.String = id_example // kotlin.String |
try {
val result : kotlin.Any = apiInstance.flowGetTable(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling TablesApi#flowGetTable")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TablesApi#flowGetTable")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
flowListTables
kotlin.Any flowListTables()
List tables
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = TablesApi()
try {
val result : kotlin.Any = apiInstance.flowListTables()
println(result)
} catch (e: ClientException) {
println("4xx response calling TablesApi#flowListTables")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling TablesApi#flowListTables")
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