Skip to content

clv/vectorizer-ai-java

Repository files navigation

vectorizer-ai-java

Vectorizer.AI API

  • API version: 1.0.0

  • Generator version: 7.6.0

OpenAPI 3.0 specification for the Vectorizer.AI image vectorization API. Authenticate with HTTP Basic auth, using your API Id as the username and your API Secret as the password.

For more information, please visit https://vectorizer.ai/support

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 11+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>ai.vectorizer</groupId>
  <artifactId>vectorizer-ai-java</artifactId>
  <version>1.0.2</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "ai.vectorizer:vectorizer-ai-java:1.0.2"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/vectorizer-ai-java-1.0.2.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import ai.vectorizer.invoker.*;
import ai.vectorizer.model.*;
import ai.vectorizer.api.AccountApi;
import ai.vectorizer.api.AccountApi.*;

public class AccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure clients using the `defaultClient` object, such as
        // overriding the host and port, timeout, etc.
        AccountApi apiInstance = new AccountApi(defaultClient);
        try {
            AccountStatusResponse result = apiInstance.getAccountStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccountStatus");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.vectorizer.ai/api/v1

Class Method HTTP request Description
AccountApi getAccountStatus GET /account Get account status
AccountApi getAccountStatusWithHttpInfo GET /account Get account status
VectorizationApi postDelete POST /delete Delete a retained image
VectorizationApi postDeleteWithHttpInfo POST /delete Delete a retained image
VectorizationApi postDownload POST /download Download a retained result
VectorizationApi postDownloadWithHttpInfo POST /download Download a retained result
VectorizationApi postVectorize POST /vectorize Vectorize an image
VectorizationApi postVectorizeWithHttpInfo POST /vectorize Vectorize an image

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

basicAuth

  • Type: HTTP basic authentication

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues. However, the instances of the api clients created from the ApiClient are thread-safe and can be re-used.

Author

support@vectorizer.ai

About

Official Java SDK for the Vectorizer.AI image vectorization API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages