IBMWatsonVisualRecognition API Documentation

ClassifyImage

classifyImage

Upload URLs to identify classes by default.


/classifyImage

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/ibmwatsonV/classifyImage?version=&imageUrl=&owners=&classifierIds="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ClassifyImageApi;

import java.io.File;
import java.util.*;

public class ClassifyImageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ClassifyImageApi apiInstance = new ClassifyImageApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String imageUrl = imageUrl_example; // String | The URL of an image (.jpg, or .png).
        array[String] owners = ; // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run
        array[String] classifierIds = ; // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run.
        try {
            inline_response_200 result = apiInstance.classifyImage(apiecoKey, version, imageUrl, owners, classifierIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClassifyImageApi#classifyImage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ClassifyImageApi;

public class ClassifyImageApiExample {

    public static void main(String[] args) {
        ClassifyImageApi apiInstance = new ClassifyImageApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String imageUrl = imageUrl_example; // String | The URL of an image (.jpg, or .png).
        array[String] owners = ; // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run
        array[String] classifierIds = ; // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run.
        try {
            inline_response_200 result = apiInstance.classifyImage(apiecoKey, version, imageUrl, owners, classifierIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClassifyImageApi#classifyImage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *version = version_example; // The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
String *imageUrl = imageUrl_example; // The URL of an image (.jpg, or .png).
array[String] *owners = ; // An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run (optional)
array[String] *classifierIds = ; // An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run. (optional)

ClassifyImageApi *apiInstance = [[ClassifyImageApi alloc] init];

// 
[apiInstance classifyImageWith:apiecoKey
    version:version
    imageUrl:imageUrl
    owners:owners
    classifierIds:classifierIds
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var IbmWatsonVisualRecognitionApiDocumentation = require('ibm_watson_visual_recognition_api_documentation');
var defaultClient = IbmWatsonVisualRecognitionApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new IbmWatsonVisualRecognitionApiDocumentation.ClassifyImageApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var version = version_example; // {String} The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.

var imageUrl = imageUrl_example; // {String} The URL of an image (.jpg, or .png).

var opts = { 
  'owners': , // {array[String]} An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run
  'classifierIds':  // {array[String]} An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.classifyImage(apiecoKey, version, imageUrl, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class classifyImageExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ClassifyImageApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var version = version_example;  // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
            var imageUrl = imageUrl_example;  // String | The URL of an image (.jpg, or .png).
            var owners = new array[String](); // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run (optional) 
            var classifierIds = new array[String](); // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run. (optional) 

            try
            {
                // 
                inline_response_200 result = apiInstance.classifyImage(apiecoKey, version, imageUrl, owners, classifierIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ClassifyImageApi.classifyImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ClassifyImageApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
$imageUrl = imageUrl_example; // String | The URL of an image (.jpg, or .png).
$owners = ; // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run
$classifierIds = ; // array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run.

try {
    $result = $api_instance->classifyImage($apiecoKey, $version, $imageUrl, $owners, $classifierIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ClassifyImageApi->classifyImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ClassifyImageApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ClassifyImageApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $version = version_example; # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
my $imageUrl = imageUrl_example; # String | The URL of an image (.jpg, or .png).
my $owners = []; # array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run
my $classifierIds = []; # array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run.

eval { 
    my $result = $api_instance->classifyImage(apiecoKey => $apiecoKey, version => $version, imageUrl => $imageUrl, owners => $owners, classifierIds => $classifierIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClassifyImageApi->classifyImage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ClassifyImageApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
version = version_example # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
imageUrl = imageUrl_example # String | The URL of an image (.jpg, or .png).
owners =  # array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run (optional)
classifierIds =  # array[String] | An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run. (optional)

try: 
    # 
    api_response = api_instance.classify_image(apiecoKey, version, imageUrl, owners=owners, classifierIds=classifierIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClassifyImageApi->classifyImage: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
version*
String
The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
Required
imageUrl*
String
The URL of an image (.jpg, or .png).
Required
owners
array[String]
An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run
classifierIds
array[String]
An array with the value(s) 'IBM' and/or 'me' to specify which classifiers to run.

Responses

Status: 200 - Successful

Status: 405 - Invalid input


CreateClassifier

createClassifier

Train a new multi-faceted classifier on the uploaded image data.


/createClassifier

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/ibmwatsonV/createClassifier?version=&positiveExampleImages1=&positiveExampleImagesName2=&positiveExampleImages2="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CreateClassifierApi;

import java.io.File;
import java.util.*;

public class CreateClassifierApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CreateClassifierApi apiInstance = new CreateClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String positiveExampleImages1 = positiveExampleImages1_example; // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
        array[String] positiveExampleImagesName2 = ; // array[String] | The name of the positive examples in 2 file
        array[String] positiveExampleImages2 = ; // array[String] | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
        try {
            inline_response_200_1 result = apiInstance.createClassifier(apiecoKey, version, positiveExampleImages1, positiveExampleImagesName2, positiveExampleImages2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CreateClassifierApi#createClassifier");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CreateClassifierApi;

public class CreateClassifierApiExample {

    public static void main(String[] args) {
        CreateClassifierApi apiInstance = new CreateClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String positiveExampleImages1 = positiveExampleImages1_example; // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
        array[String] positiveExampleImagesName2 = ; // array[String] | The name of the positive examples in 2 file
        array[String] positiveExampleImages2 = ; // array[String] | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
        try {
            inline_response_200_1 result = apiInstance.createClassifier(apiecoKey, version, positiveExampleImages1, positiveExampleImagesName2, positiveExampleImages2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CreateClassifierApi#createClassifier");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *version = version_example; // The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
String *positiveExampleImages1 = positiveExampleImages1_example; // A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
array[String] *positiveExampleImagesName2 = ; // The name of the positive examples in 2 file
array[String] *positiveExampleImages2 = ; // A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels. (optional)

CreateClassifierApi *apiInstance = [[CreateClassifierApi alloc] init];

// 
[apiInstance createClassifierWith:apiecoKey
    version:version
    positiveExampleImages1:positiveExampleImages1
    positiveExampleImagesName2:positiveExampleImagesName2
    positiveExampleImages2:positiveExampleImages2
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var IbmWatsonVisualRecognitionApiDocumentation = require('ibm_watson_visual_recognition_api_documentation');
var defaultClient = IbmWatsonVisualRecognitionApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new IbmWatsonVisualRecognitionApiDocumentation.CreateClassifierApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var version = version_example; // {String} The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.

var positiveExampleImages1 = positiveExampleImages1_example; // {String} A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.

var positiveExampleImagesName2 = ; // {array[String]} The name of the positive examples in 2 file

var opts = { 
  'positiveExampleImages2':  // {array[String]} A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createClassifier(apiecoKey, version, positiveExampleImages1, positiveExampleImagesName2, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createClassifierExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CreateClassifierApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var version = version_example;  // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
            var positiveExampleImages1 = positiveExampleImages1_example;  // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
            var positiveExampleImagesName2 = new array[String](); // array[String] | The name of the positive examples in 2 file
            var positiveExampleImages2 = new array[String](); // array[String] | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels. (optional) 

            try
            {
                // 
                inline_response_200_1 result = apiInstance.createClassifier(apiecoKey, version, positiveExampleImages1, positiveExampleImagesName2, positiveExampleImages2);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CreateClassifierApi.createClassifier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CreateClassifierApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
$positiveExampleImages1 = positiveExampleImages1_example; // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
$positiveExampleImagesName2 = ; // array[String] | The name of the positive examples in 2 file
$positiveExampleImages2 = ; // array[String] | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.

try {
    $result = $api_instance->createClassifier($apiecoKey, $version, $positiveExampleImages1, $positiveExampleImagesName2, $positiveExampleImages2);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CreateClassifierApi->createClassifier: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CreateClassifierApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CreateClassifierApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $version = version_example; # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
my $positiveExampleImages1 = positiveExampleImages1_example; # String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
my $positiveExampleImagesName2 = []; # array[String] | The name of the positive examples in 2 file
my $positiveExampleImages2 = []; # array[String] | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.

eval { 
    my $result = $api_instance->createClassifier(apiecoKey => $apiecoKey, version => $version, positiveExampleImages1 => $positiveExampleImages1, positiveExampleImagesName2 => $positiveExampleImagesName2, positiveExampleImages2 => $positiveExampleImages2);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CreateClassifierApi->createClassifier: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CreateClassifierApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
version = version_example # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
positiveExampleImages1 = positiveExampleImages1_example # String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
positiveExampleImagesName2 =  # array[String] | The name of the positive examples in 2 file
positiveExampleImages2 =  # array[String] | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels. (optional)

try: 
    # 
    api_response = api_instance.create_classifier(apiecoKey, version, positiveExampleImages1, positiveExampleImagesName2, positiveExampleImages2=positiveExampleImages2)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CreateClassifierApi->createClassifier: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
version*
String
The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
Required
positiveExampleImages1*
String
A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
Required
positiveExampleImagesName2*
array[String]
The name of the positive examples in 2 file
Required
positiveExampleImages2
array[String]
A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.

Responses

Status: 200 - Successful

Status: 405 - Invalid input


DeleteClassifier

deleteClassifier

Delete a specific classifier.


/deleteClassifier

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/ibmwatsonV/deleteClassifier?version=&classifierId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DeleteClassifierApi;

import java.io.File;
import java.util.*;

public class DeleteClassifierApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        DeleteClassifierApi apiInstance = new DeleteClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String classifierId = classifierId_example; // String | The ID of the classifier for which you want to delete.
        try {
            inline_response_200_2 result = apiInstance.deleteClassifier(apiecoKey, version, classifierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeleteClassifierApi#deleteClassifier");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DeleteClassifierApi;

public class DeleteClassifierApiExample {

    public static void main(String[] args) {
        DeleteClassifierApi apiInstance = new DeleteClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String classifierId = classifierId_example; // String | The ID of the classifier for which you want to delete.
        try {
            inline_response_200_2 result = apiInstance.deleteClassifier(apiecoKey, version, classifierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DeleteClassifierApi#deleteClassifier");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *version = version_example; // The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
String *classifierId = classifierId_example; // The ID of the classifier for which you want to delete.

DeleteClassifierApi *apiInstance = [[DeleteClassifierApi alloc] init];

// 
[apiInstance deleteClassifierWith:apiecoKey
    version:version
    classifierId:classifierId
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var IbmWatsonVisualRecognitionApiDocumentation = require('ibm_watson_visual_recognition_api_documentation');
var defaultClient = IbmWatsonVisualRecognitionApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new IbmWatsonVisualRecognitionApiDocumentation.DeleteClassifierApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var version = version_example; // {String} The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.

var classifierId = classifierId_example; // {String} The ID of the classifier for which you want to delete.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteClassifier(apiecoKey, version, classifierId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteClassifierExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new DeleteClassifierApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var version = version_example;  // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
            var classifierId = classifierId_example;  // String | The ID of the classifier for which you want to delete.

            try
            {
                // 
                inline_response_200_2 result = apiInstance.deleteClassifier(apiecoKey, version, classifierId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DeleteClassifierApi.deleteClassifier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\DeleteClassifierApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
$classifierId = classifierId_example; // String | The ID of the classifier for which you want to delete.

try {
    $result = $api_instance->deleteClassifier($apiecoKey, $version, $classifierId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DeleteClassifierApi->deleteClassifier: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DeleteClassifierApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DeleteClassifierApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $version = version_example; # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
my $classifierId = classifierId_example; # String | The ID of the classifier for which you want to delete.

eval { 
    my $result = $api_instance->deleteClassifier(apiecoKey => $apiecoKey, version => $version, classifierId => $classifierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DeleteClassifierApi->deleteClassifier: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DeleteClassifierApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
version = version_example # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
classifierId = classifierId_example # String | The ID of the classifier for which you want to delete.

try: 
    # 
    api_response = api_instance.delete_classifier(apiecoKey, version, classifierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DeleteClassifierApi->deleteClassifier: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
version*
String
The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
Required
classifierId*
String
The ID of the classifier for which you want to delete.
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


DetectFaces

detectFaces

Analyze faces in images and get data about them, such as estimated age, gender, plus names of celebrities.


/detectFaces

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/ibmwatsonV/detectFaces?version=&imageUrl="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DetectFacesApi;

import java.io.File;
import java.util.*;

public class DetectFacesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        DetectFacesApi apiInstance = new DetectFacesApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String imageUrl = imageUrl_example; // String | The URL of an image (.jpg, or .png).
        try {
            inline_response_200_3 result = apiInstance.detectFaces(apiecoKey, version, imageUrl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectFacesApi#detectFaces");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DetectFacesApi;

public class DetectFacesApiExample {

    public static void main(String[] args) {
        DetectFacesApi apiInstance = new DetectFacesApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String imageUrl = imageUrl_example; // String | The URL of an image (.jpg, or .png).
        try {
            inline_response_200_3 result = apiInstance.detectFaces(apiecoKey, version, imageUrl);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectFacesApi#detectFaces");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *version = version_example; // The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
String *imageUrl = imageUrl_example; // The URL of an image (.jpg, or .png).

DetectFacesApi *apiInstance = [[DetectFacesApi alloc] init];

// 
[apiInstance detectFacesWith:apiecoKey
    version:version
    imageUrl:imageUrl
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var IbmWatsonVisualRecognitionApiDocumentation = require('ibm_watson_visual_recognition_api_documentation');
var defaultClient = IbmWatsonVisualRecognitionApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new IbmWatsonVisualRecognitionApiDocumentation.DetectFacesApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var version = version_example; // {String} The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.

var imageUrl = imageUrl_example; // {String} The URL of an image (.jpg, or .png).


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.detectFaces(apiecoKey, version, imageUrl, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class detectFacesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new DetectFacesApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var version = version_example;  // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
            var imageUrl = imageUrl_example;  // String | The URL of an image (.jpg, or .png).

            try
            {
                // 
                inline_response_200_3 result = apiInstance.detectFaces(apiecoKey, version, imageUrl);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DetectFacesApi.detectFaces: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\DetectFacesApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
$imageUrl = imageUrl_example; // String | The URL of an image (.jpg, or .png).

try {
    $result = $api_instance->detectFaces($apiecoKey, $version, $imageUrl);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DetectFacesApi->detectFaces: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DetectFacesApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DetectFacesApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $version = version_example; # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
my $imageUrl = imageUrl_example; # String | The URL of an image (.jpg, or .png).

eval { 
    my $result = $api_instance->detectFaces(apiecoKey => $apiecoKey, version => $version, imageUrl => $imageUrl);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DetectFacesApi->detectFaces: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DetectFacesApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
version = version_example # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
imageUrl = imageUrl_example # String | The URL of an image (.jpg, or .png).

try: 
    # 
    api_response = api_instance.detect_faces(apiecoKey, version, imageUrl)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DetectFacesApi->detectFaces: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
version*
String
The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
Required
imageUrl*
String
The URL of an image (.jpg, or .png).
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


GetCustomClassifiers

getCustomClassifiers

Retrieve a list of user-created classifiers.


/getCustomClassifiers

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/ibmwatsonV/getCustomClassifiers?version=&verbose="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GetCustomClassifiersApi;

import java.io.File;
import java.util.*;

public class GetCustomClassifiersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        GetCustomClassifiersApi apiInstance = new GetCustomClassifiersApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String verbose = verbose_example; // String | Specify true to return classifier details. Omit this parameter to return a brief list of classifiers.
        try {
            inline_response_200_1 result = apiInstance.getCustomClassifiers(apiecoKey, version, verbose);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GetCustomClassifiersApi#getCustomClassifiers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GetCustomClassifiersApi;

public class GetCustomClassifiersApiExample {

    public static void main(String[] args) {
        GetCustomClassifiersApi apiInstance = new GetCustomClassifiersApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String verbose = verbose_example; // String | Specify true to return classifier details. Omit this parameter to return a brief list of classifiers.
        try {
            inline_response_200_1 result = apiInstance.getCustomClassifiers(apiecoKey, version, verbose);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GetCustomClassifiersApi#getCustomClassifiers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *version = version_example; // The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
String *verbose = verbose_example; // Specify true to return classifier details. Omit this parameter to return a brief list of classifiers. (optional)

GetCustomClassifiersApi *apiInstance = [[GetCustomClassifiersApi alloc] init];

// 
[apiInstance getCustomClassifiersWith:apiecoKey
    version:version
    verbose:verbose
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var IbmWatsonVisualRecognitionApiDocumentation = require('ibm_watson_visual_recognition_api_documentation');
var defaultClient = IbmWatsonVisualRecognitionApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new IbmWatsonVisualRecognitionApiDocumentation.GetCustomClassifiersApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var version = version_example; // {String} The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.

var opts = { 
  'verbose': verbose_example // {String} Specify true to return classifier details. Omit this parameter to return a brief list of classifiers.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCustomClassifiers(apiecoKey, version, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCustomClassifiersExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new GetCustomClassifiersApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var version = version_example;  // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
            var verbose = verbose_example;  // String | Specify true to return classifier details. Omit this parameter to return a brief list of classifiers. (optional) 

            try
            {
                // 
                inline_response_200_1 result = apiInstance.getCustomClassifiers(apiecoKey, version, verbose);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GetCustomClassifiersApi.getCustomClassifiers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\GetCustomClassifiersApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
$verbose = verbose_example; // String | Specify true to return classifier details. Omit this parameter to return a brief list of classifiers.

try {
    $result = $api_instance->getCustomClassifiers($apiecoKey, $version, $verbose);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GetCustomClassifiersApi->getCustomClassifiers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GetCustomClassifiersApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::GetCustomClassifiersApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $version = version_example; # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
my $verbose = verbose_example; # String | Specify true to return classifier details. Omit this parameter to return a brief list of classifiers.

eval { 
    my $result = $api_instance->getCustomClassifiers(apiecoKey => $apiecoKey, version => $version, verbose => $verbose);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GetCustomClassifiersApi->getCustomClassifiers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.GetCustomClassifiersApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
version = version_example # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
verbose = verbose_example # String | Specify true to return classifier details. Omit this parameter to return a brief list of classifiers. (optional)

try: 
    # 
    api_response = api_instance.get_custom_classifiers(apiecoKey, version, verbose=verbose)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GetCustomClassifiersApi->getCustomClassifiers: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
version*
String
The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
Required
verbose
String
Specify true to return classifier details. Omit this parameter to return a brief list of classifiers.

Responses

Status: 200 - Successful

Status: 405 - Invalid input


GetSingleClassifier

getSingleClassifier

Retrieve information about a specific classifier.


/getSingleClassifier

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/ibmwatsonV/getSingleClassifier?version=&classifierId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GetSingleClassifierApi;

import java.io.File;
import java.util.*;

public class GetSingleClassifierApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        GetSingleClassifierApi apiInstance = new GetSingleClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String classifierId = classifierId_example; // String | The ID of the classifier for which you want details.
        try {
            inline_response_200_1 result = apiInstance.getSingleClassifier(apiecoKey, version, classifierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GetSingleClassifierApi#getSingleClassifier");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GetSingleClassifierApi;

public class GetSingleClassifierApiExample {

    public static void main(String[] args) {
        GetSingleClassifierApi apiInstance = new GetSingleClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String classifierId = classifierId_example; // String | The ID of the classifier for which you want details.
        try {
            inline_response_200_1 result = apiInstance.getSingleClassifier(apiecoKey, version, classifierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GetSingleClassifierApi#getSingleClassifier");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *version = version_example; // The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
String *classifierId = classifierId_example; // The ID of the classifier for which you want details.

GetSingleClassifierApi *apiInstance = [[GetSingleClassifierApi alloc] init];

// 
[apiInstance getSingleClassifierWith:apiecoKey
    version:version
    classifierId:classifierId
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var IbmWatsonVisualRecognitionApiDocumentation = require('ibm_watson_visual_recognition_api_documentation');
var defaultClient = IbmWatsonVisualRecognitionApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new IbmWatsonVisualRecognitionApiDocumentation.GetSingleClassifierApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var version = version_example; // {String} The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.

var classifierId = classifierId_example; // {String} The ID of the classifier for which you want details.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSingleClassifier(apiecoKey, version, classifierId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSingleClassifierExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new GetSingleClassifierApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var version = version_example;  // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
            var classifierId = classifierId_example;  // String | The ID of the classifier for which you want details.

            try
            {
                // 
                inline_response_200_1 result = apiInstance.getSingleClassifier(apiecoKey, version, classifierId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GetSingleClassifierApi.getSingleClassifier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\GetSingleClassifierApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
$classifierId = classifierId_example; // String | The ID of the classifier for which you want details.

try {
    $result = $api_instance->getSingleClassifier($apiecoKey, $version, $classifierId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GetSingleClassifierApi->getSingleClassifier: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GetSingleClassifierApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::GetSingleClassifierApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $version = version_example; # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
my $classifierId = classifierId_example; # String | The ID of the classifier for which you want details.

eval { 
    my $result = $api_instance->getSingleClassifier(apiecoKey => $apiecoKey, version => $version, classifierId => $classifierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GetSingleClassifierApi->getSingleClassifier: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.GetSingleClassifierApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
version = version_example # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
classifierId = classifierId_example # String | The ID of the classifier for which you want details.

try: 
    # 
    api_response = api_instance.get_single_classifier(apiecoKey, version, classifierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GetSingleClassifierApi->getSingleClassifier: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
version*
String
The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
Required
classifierId*
String
The ID of the classifier for which you want details.
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


UpdateClassifier

updateClassifier

Update an existing classifier by adding new classes, or by adding new images to existing classes.


/updateClassifier

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/ibmwatsonV/updateClassifier?version=&positiveExampleImagesName=&positiveExampleImages=&classifierId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UpdateClassifierApi;

import java.io.File;
import java.util.*;

public class UpdateClassifierApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        UpdateClassifierApi apiInstance = new UpdateClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String positiveExampleImagesName = positiveExampleImagesName_example; // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
        String positiveExampleImages = positiveExampleImages_example; // String | The name of the positive examples in 1 file
        String classifierId = classifierId_example; // String | The id of the classifier.
        try {
            inline_response_200_1 result = apiInstance.updateClassifier(apiecoKey, version, positiveExampleImagesName, positiveExampleImages, classifierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateClassifierApi#updateClassifier");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UpdateClassifierApi;

public class UpdateClassifierApiExample {

    public static void main(String[] args) {
        UpdateClassifierApi apiInstance = new UpdateClassifierApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
        String positiveExampleImagesName = positiveExampleImagesName_example; // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
        String positiveExampleImages = positiveExampleImages_example; // String | The name of the positive examples in 1 file
        String classifierId = classifierId_example; // String | The id of the classifier.
        try {
            inline_response_200_1 result = apiInstance.updateClassifier(apiecoKey, version, positiveExampleImagesName, positiveExampleImages, classifierId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateClassifierApi#updateClassifier");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *version = version_example; // The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
String *positiveExampleImagesName = positiveExampleImagesName_example; // A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
String *positiveExampleImages = positiveExampleImages_example; // The name of the positive examples in 1 file
String *classifierId = classifierId_example; // The id of the classifier. (optional)

UpdateClassifierApi *apiInstance = [[UpdateClassifierApi alloc] init];

// 
[apiInstance updateClassifierWith:apiecoKey
    version:version
    positiveExampleImagesName:positiveExampleImagesName
    positiveExampleImages:positiveExampleImages
    classifierId:classifierId
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var IbmWatsonVisualRecognitionApiDocumentation = require('ibm_watson_visual_recognition_api_documentation');
var defaultClient = IbmWatsonVisualRecognitionApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new IbmWatsonVisualRecognitionApiDocumentation.UpdateClassifierApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var version = version_example; // {String} The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.

var positiveExampleImagesName = positiveExampleImagesName_example; // {String} A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.

var positiveExampleImages = positiveExampleImages_example; // {String} The name of the positive examples in 1 file

var opts = { 
  'classifierId': classifierId_example // {String} The id of the classifier.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateClassifier(apiecoKey, version, positiveExampleImagesName, positiveExampleImages, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateClassifierExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new UpdateClassifierApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var version = version_example;  // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
            var positiveExampleImagesName = positiveExampleImagesName_example;  // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
            var positiveExampleImages = positiveExampleImages_example;  // String | The name of the positive examples in 1 file
            var classifierId = classifierId_example;  // String | The id of the classifier. (optional) 

            try
            {
                // 
                inline_response_200_1 result = apiInstance.updateClassifier(apiecoKey, version, positiveExampleImagesName, positiveExampleImages, classifierId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UpdateClassifierApi.updateClassifier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\UpdateClassifierApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$version = version_example; // String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
$positiveExampleImagesName = positiveExampleImagesName_example; // String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
$positiveExampleImages = positiveExampleImages_example; // String | The name of the positive examples in 1 file
$classifierId = classifierId_example; // String | The id of the classifier.

try {
    $result = $api_instance->updateClassifier($apiecoKey, $version, $positiveExampleImagesName, $positiveExampleImages, $classifierId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UpdateClassifierApi->updateClassifier: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UpdateClassifierApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::UpdateClassifierApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $version = version_example; # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
my $positiveExampleImagesName = positiveExampleImagesName_example; # String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
my $positiveExampleImages = positiveExampleImages_example; # String | The name of the positive examples in 1 file
my $classifierId = classifierId_example; # String | The id of the classifier.

eval { 
    my $result = $api_instance->updateClassifier(apiecoKey => $apiecoKey, version => $version, positiveExampleImagesName => $positiveExampleImagesName, positiveExampleImages => $positiveExampleImages, classifierId => $classifierId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UpdateClassifierApi->updateClassifier: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.UpdateClassifierApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
version = version_example # String | The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
positiveExampleImagesName = positiveExampleImagesName_example # String | A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
positiveExampleImages = positiveExampleImages_example # String | The name of the positive examples in 1 file
classifierId = classifierId_example # String | The id of the classifier. (optional)

try: 
    # 
    api_response = api_instance.update_classifier(apiecoKey, version, positiveExampleImagesName, positiveExampleImages, classifierId=classifierId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpdateClassifierApi->updateClassifier: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
version*
String
The release date of the version of the API you want to use. Specify dates in YYYY-MM-DD format. The current version is 2016-05-20.
Required
positiveExampleImagesName*
String
A compressed (.zip) file of images that depict the visual subject for a class within the new classifier. Must contain a minimum of 10 images. Minimum recommend size is 32X32 pixels.
Required
positiveExampleImages*
String
The name of the positive examples in 1 file
Required
classifierId
String
The id of the classifier.

Responses

Status: 200 - Successful

Status: 405 - Invalid input