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.
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/clv/vectorizer-ai-php.git"
}
],
"require": {
"clv/vectorizer-ai-php": "*@dev"
}
}Then run composer install
Download the files and include autoload.php:
<?phprequire_once('/path/to/VectorizerAI/vendor/autoload.php');Please follow the installation procedure and then run the following:
<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth$config = VectorizerAI\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = newVectorizerAI\Api\AccountApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getAccountStatus();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling AccountApi->getAccountStatus: ', $e->getMessage(), PHP_EOL;
}All URIs are relative to https://api.vectorizer.ai/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountApi | getAccountStatus | GET /account | Get account status |
| VectorizationApi | postDelete | POST /delete | Delete a retained image |
| VectorizationApi | postDownload | POST /download | Download a retained result |
| VectorizationApi | postVectorize | POST /vectorize | Vectorize an image |
Authentication schemes defined for the API:
- Type: HTTP basic authentication
To run the tests, use:
composer install
vendor/bin/phpunitThis PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0.0- Package version:
1.0.0 - Generator version:
7.6.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen