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]>
20 KiB
VideoAPIApi
All URIs are relative to https://api.hanzo.ai
| Method | HTTP request | Description |
|---|---|---|
| cloudApiControllerAddVideo | POST /v1/cloud/add-video | Api Controller Add Video |
| cloudApiControllerDeleteVideo | POST /v1/cloud/delete-video | Api Controller Delete Video |
| cloudApiControllerGetGlobalVideos | GET /v1/cloud/get-global-videos | Api Controller Get Global Videos |
| cloudApiControllerGetVideo | GET /v1/cloud/get-video | Api Controller Get Video |
| cloudApiControllerGetVideos | GET /v1/cloud/get-videos | Api Controller Get Videos |
| cloudApiControllerUpdateVideo | POST /v1/cloud/update-video | Api Controller Update Video |
| cloudApiControllerUploadVideo | POST /v1/cloud/upload-video | Api Controller Upload Video |
| nexusAddVideo | POST /v1/nexus/add-video | add Video |
| nexusDeleteVideo | POST /v1/nexus/delete-video | delete Video |
| nexusGetGlobalVideos | GET /v1/nexus/get-global-videos | get Global Videos |
| nexusGetVideo | GET /v1/nexus/get-video | get Video |
| nexusGetVideos | GET /v1/nexus/get-videos | get Videos |
| nexusUpdateVideo | POST /v1/nexus/update-video | update Video |
| nexusUploadVideo | POST /v1/nexus/upload-video | upload Video |
cloudApiControllerAddVideo
CloudControllersResponse cloudApiControllerAddVideo(cloudObjectVideo)
Api Controller Add Video
add video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val cloudObjectVideo : CloudObjectVideo = // CloudObjectVideo | The details of the video
try {
val result : CloudControllersResponse = apiInstance.cloudApiControllerAddVideo(cloudObjectVideo)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#cloudApiControllerAddVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#cloudApiControllerAddVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cloudObjectVideo | CloudObjectVideo | The details of the video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
cloudApiControllerDeleteVideo
CloudControllersResponse cloudApiControllerDeleteVideo(cloudObjectVideo)
Api Controller Delete Video
delete video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val cloudObjectVideo : CloudObjectVideo = // CloudObjectVideo | The details of the video
try {
val result : CloudControllersResponse = apiInstance.cloudApiControllerDeleteVideo(cloudObjectVideo)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#cloudApiControllerDeleteVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#cloudApiControllerDeleteVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| cloudObjectVideo | CloudObjectVideo | The details of the video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
cloudApiControllerGetGlobalVideos
kotlin.collections.List<CloudObjectVideo> cloudApiControllerGetGlobalVideos()
Api Controller Get Global Videos
get global videos
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
try {
val result : kotlin.collections.List<CloudObjectVideo> = apiInstance.cloudApiControllerGetGlobalVideos()
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#cloudApiControllerGetGlobalVideos")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#cloudApiControllerGetGlobalVideos")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.List<CloudObjectVideo>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
cloudApiControllerGetVideo
CloudObjectVideo cloudApiControllerGetVideo(id)
Api Controller Get Video
get video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id of video
try {
val result : CloudObjectVideo = apiInstance.cloudApiControllerGetVideo(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#cloudApiControllerGetVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#cloudApiControllerGetVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | The id of video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
cloudApiControllerGetVideos
kotlin.collections.List<CloudObjectVideo> cloudApiControllerGetVideos(owner)
Api Controller Get Videos
get videos
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of videos
try {
val result : kotlin.collections.List<CloudObjectVideo> = apiInstance.cloudApiControllerGetVideos(owner)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#cloudApiControllerGetVideos")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#cloudApiControllerGetVideos")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| owner | kotlin.String | The owner of videos |
Return type
kotlin.collections.List<CloudObjectVideo>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
cloudApiControllerUpdateVideo
CloudControllersResponse cloudApiControllerUpdateVideo(id, cloudObjectVideo)
Api Controller Update Video
update video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of the video
val cloudObjectVideo : CloudObjectVideo = // CloudObjectVideo | The details of the video
try {
val result : CloudControllersResponse = apiInstance.cloudApiControllerUpdateVideo(id, cloudObjectVideo)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#cloudApiControllerUpdateVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#cloudApiControllerUpdateVideo")
e.printStackTrace()
}
Parameters
| id | kotlin.String| The id (owner/name) of the video | |
| Name | Type | Description | Notes |
|---|---|---|---|
| cloudObjectVideo | CloudObjectVideo | The details of the video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
cloudApiControllerUploadVideo
kotlin.String cloudApiControllerUploadVideo(file)
Api Controller Upload Video
upload video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val file : java.io.File = BINARY_DATA_HERE // java.io.File | The video file to upload
try {
val result : kotlin.String = apiInstance.cloudApiControllerUploadVideo(file)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#cloudApiControllerUploadVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#cloudApiControllerUploadVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| file | java.io.File | The video file to upload |
Return type
kotlin.String
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json
nexusAddVideo
NexusResponse nexusAddVideo(nexusVideo)
add Video
Add a video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val nexusVideo : NexusVideo = // NexusVideo | The details of the video
try {
val result : NexusResponse = apiInstance.nexusAddVideo(nexusVideo)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#nexusAddVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#nexusAddVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| nexusVideo | NexusVideo | The details of the video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
nexusDeleteVideo
NexusResponse nexusDeleteVideo(nexusVideo)
delete Video
Delete a video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val nexusVideo : NexusVideo = // NexusVideo | The details of the video
try {
val result : NexusResponse = apiInstance.nexusDeleteVideo(nexusVideo)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#nexusDeleteVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#nexusDeleteVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| nexusVideo | NexusVideo | The details of the video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
nexusGetGlobalVideos
kotlin.collections.List<NexusVideo> nexusGetGlobalVideos()
get Global Videos
Get global videos
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
try {
val result : kotlin.collections.List<NexusVideo> = apiInstance.nexusGetGlobalVideos()
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#nexusGetGlobalVideos")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#nexusGetGlobalVideos")
e.printStackTrace()
}
Parameters
This endpoint does not need any parameter.
Return type
kotlin.collections.List<NexusVideo>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
nexusGetVideo
NexusVideo nexusGetVideo(id)
get Video
Get a video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id of the video
try {
val result : NexusVideo = apiInstance.nexusGetVideo(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#nexusGetVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#nexusGetVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | kotlin.String | The id of the video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
nexusGetVideos
kotlin.collections.List<NexusVideo> nexusGetVideos(owner)
get Videos
Get videos
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of the videos
try {
val result : kotlin.collections.List<NexusVideo> = apiInstance.nexusGetVideos(owner)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#nexusGetVideos")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#nexusGetVideos")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| owner | kotlin.String | The owner of the videos |
Return type
kotlin.collections.List<NexusVideo>
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
nexusUpdateVideo
NexusResponse nexusUpdateVideo(id, nexusVideo)
update Video
Update a video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of the video
val nexusVideo : NexusVideo = // NexusVideo | The details of the video
try {
val result : NexusResponse = apiInstance.nexusUpdateVideo(id, nexusVideo)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#nexusUpdateVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#nexusUpdateVideo")
e.printStackTrace()
}
Parameters
| id | kotlin.String| The id (owner/name) of the video | |
| Name | Type | Description | Notes |
|---|---|---|---|
| nexusVideo | NexusVideo | The details of the video |
Return type
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: application/json
- Accept: application/json
nexusUploadVideo
kotlin.String nexusUploadVideo(file)
upload Video
Upload a video
Example
// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*
val apiInstance = VideoAPIApi()
val file : java.io.File = BINARY_DATA_HERE // java.io.File | The video file
try {
val result : kotlin.String = apiInstance.nexusUploadVideo(file)
println(result)
} catch (e: ClientException) {
println("4xx response calling VideoAPIApi#nexusUploadVideo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling VideoAPIApi#nexusUploadVideo")
e.printStackTrace()
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| file | java.io.File | The video file |
Return type
kotlin.String
Authorization
Configure bearerAuth statically:
ApiClient.accessToken = ""
Configure bearerAuth dynamically:
apiInstance.accessTokenProvider = { "" }
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json