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]>
10 KiB
ShareApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| analyticsGetSharedWebsite | GET /v1/analytics/share/{shareId} | Get a shared website by share ID (no auth required) |
| chatDeleteShareByshareid | DELETE /v1/chat/share/{shareId} | Delete a shared link |
| chatGetShare | GET /v1/chat/share | List shared links |
| chatGetShareByshareid | GET /v1/chat/share/{shareId} | Get shared conversation messages |
| chatGetShareLinkByconversationid | GET /v1/chat/share/link/{conversationId} | Get shared link for a conversation |
| chatPatchShareByshareid | PATCH /v1/chat/share/{shareId} | Update a shared link |
| chatPostShareByconversationid | POST /v1/chat/share/{conversationId} | Create a shared link |
analyticsGetSharedWebsite
AnalyticsGetSharedWebsite200Response analyticsGetSharedWebsite(shareId)
Get a shared website by share ID (no auth required)
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ShareApi()
val shareId : kotlin.String = shareId_example // kotlin.String |
try {
val result : AnalyticsGetSharedWebsite200Response = apiInstance.analyticsGetSharedWebsite(shareId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShareApi#analyticsGetSharedWebsite")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShareApi#analyticsGetSharedWebsite")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| shareId | kotlin.String |
Return type
AnalyticsGetSharedWebsite200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
chatDeleteShareByshareid
kotlin.Any chatDeleteShareByshareid(shareId)
Delete a shared link
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ShareApi()
val shareId : kotlin.String = shareId_example // kotlin.String |
try {
val result : kotlin.Any = apiInstance.chatDeleteShareByshareid(shareId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShareApi#chatDeleteShareByshareid")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShareApi#chatDeleteShareByshareid")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| shareId | 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
chatGetShare
ChatGetShare200Response chatGetShare(cursor, pageSize, isPublic, sortBy, sortDirection, search)
List shared links
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ShareApi()
val cursor : kotlin.String = cursor_example // kotlin.String |
val pageSize : kotlin.Int = 56 // kotlin.Int |
val isPublic : kotlin.String = isPublic_example // kotlin.String |
val sortBy : kotlin.String = sortBy_example // kotlin.String |
val sortDirection : kotlin.String = sortDirection_example // kotlin.String |
val search : kotlin.String = search_example // kotlin.String |
try {
val result : ChatGetShare200Response = apiInstance.chatGetShare(cursor, pageSize, isPublic, sortBy, sortDirection, search)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShareApi#chatGetShare")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShareApi#chatGetShare")
e.printStackTrace()
}
Parameters
| cursor | kotlin.String| | [optional] | | pageSize | kotlin.Int| | [optional] [default to 10] | | isPublic | kotlin.String| | [optional] | | sortBy | kotlin.String| | [optional] [default to "createdAt"] | | sortDirection | kotlin.String| | [optional] [default to "desc"] |
| Name | Type | Description | Notes |
|---|---|---|---|
| search | kotlin.String | [optional] |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
chatGetShareByshareid
kotlin.Any chatGetShareByshareid(shareId)
Get shared conversation messages
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ShareApi()
val shareId : kotlin.String = shareId_example // kotlin.String |
try {
val result : kotlin.Any = apiInstance.chatGetShareByshareid(shareId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShareApi#chatGetShareByshareid")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShareApi#chatGetShareByshareid")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| shareId | kotlin.String |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
chatGetShareLinkByconversationid
ChatGetShareLinkByconversationid200Response chatGetShareLinkByconversationid(conversationId)
Get shared link for a conversation
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ShareApi()
val conversationId : kotlin.String = conversationId_example // kotlin.String |
try {
val result : ChatGetShareLinkByconversationid200Response = apiInstance.chatGetShareLinkByconversationid(conversationId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShareApi#chatGetShareLinkByconversationid")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShareApi#chatGetShareLinkByconversationid")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| conversationId | kotlin.String |
Return type
ChatGetShareLinkByconversationid200Response
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
chatPatchShareByshareid
kotlin.Any chatPatchShareByshareid(shareId)
Update a shared link
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ShareApi()
val shareId : kotlin.String = shareId_example // kotlin.String |
try {
val result : kotlin.Any = apiInstance.chatPatchShareByshareid(shareId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShareApi#chatPatchShareByshareid")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShareApi#chatPatchShareByshareid")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| shareId | 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
chatPostShareByconversationid
kotlin.Any chatPostShareByconversationid(conversationId, chatPostShareByconversationidRequest)
Create a shared link
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = ShareApi()
val conversationId : kotlin.String = conversationId_example // kotlin.String |
val chatPostShareByconversationidRequest : ChatPostShareByconversationidRequest = // ChatPostShareByconversationidRequest |
try {
val result : kotlin.Any = apiInstance.chatPostShareByconversationid(conversationId, chatPostShareByconversationidRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling ShareApi#chatPostShareByconversationid")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ShareApi#chatPostShareByconversationid")
e.printStackTrace()
}
Parameters
| conversationId | kotlin.String| | |
| Name | Type | Description | Notes |
|---|---|---|---|
| chatPostShareByconversationidRequest | ChatPostShareByconversationidRequest | [optional] |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json