Indico Ktor Client

//indico-client-java/com.indico/IndicoKtorClient

# IndicoKtorClient

[jvm]\
class IndicoKtorClient(val config: IndicoConfig) : [Closeable](https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html), IndicoClient

Kotlin based concrete implementation of the IndicoClient.

## Constructors

| | |
|---|---|
| IndicoKtorClient | [jvm]<br>constructor(config: IndicoConfig) |

## Properties

| Name | Summary |
|---|---|
| config | [jvm]<br>val config: IndicoConfig |
| graphClient | [jvm]<br>var graphClient: GraphQLKtorClient |
| httpClient | [jvm]<br>var httpClient: OkHttpClient |

## Functions

| Name | Summary |
|---|---|
| close | [jvm]<br>open override fun close()<br>Close and dispose of connections. |
| documentExtraction | [jvm]<br>open override fun documentExtraction(): DocumentExtraction<br>Execute a mutation to extract information from a document. |
| execute | [jvm]<br>open override fun `<T :` [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`>` execute(request: GraphQLClientRequest`<T>`): GraphQLClientResponse`<T>`<br>Execute any request which inherits from GraphQLClientRequest synchronously. |
| executeAsync | [jvm]<br>open suspend override fun `<T :` [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`>` executeAsync(request: GraphQLClientRequest`<T>`): GraphQLClientResponse`<T>`<br>Execute any request which inherits from GraphQLClientRequest asynchronously. |
| generateSubmissionResult | [jvm]<br>open override fun generateSubmissionResult(): GenerateSubmissionResult?<br>Generate submission results post-submission and post-review. |
| getSubmission | [jvm]<br>open override fun getSubmission(): GetSubmission?<br>Retrieve a particular submission. |
| listSubmissions | [jvm]<br>open override fun listSubmissions(): ListSubmissions?<br>Query for submissions and receive a list. |
| modelGroupLoad | [jvm]<br>open override fun modelGroupLoad(): ModelGroupLoad?<br>Load a model group given a ModelGroup or an integer id. |
| modelGroupPredict | [jvm]<br>open override fun modelGroupPredict(): ModelGroupPredict?<br>Retrieve model group predictions. |
| modelGroupQuery | [jvm]<br>open override fun modelGroupQuery(): ModelGroupQuery?<br>Retrieve a particular model group. |
| rawGraphQLQuery | [jvm]<br>open override fun rawGraphQLQuery(query: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), operationName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), variables: JsonNode): GraphQLRequest?<br>Make raw GraphQL query |
| retrieveBlob | [jvm]<br>open override fun retrieveBlob(): RetrieveBlob?<br>Download a blob. Must call close() on the retrieved blob to dispose of the object after. |
| retrySubmission | [jvm]<br>open override fun retrySubmission(): RetrySubmission?<br>Retry a submission which has failed or otherwise is not completed. |
| submissionResult | [jvm]<br>open override fun submissionResult(): SubmissionResult?<br>Retrieve submission result, especially after running GenerateSubmissionResult |
| trainingModelWithProgressQuery | [jvm]<br>open override fun trainingModelWithProgressQuery(): TrainingModelWithProgressQuery?<br>Retrieve information about the training progress of a model. |
| updateSubmission | [jvm]<br>open override fun updateSubmission(): UpdateSubmission?<br>Execute a mutation to update the status of a submission. |
| uploadFile | [jvm]<br>open override fun uploadFile(): UploadFile?<br>Upload a particular file. |
| workflowSubmission | [jvm]<br>open override fun workflowSubmission(): WorkflowSubmission?<br>Execute a mutation which submits to a workflow and generates a submission. |