getVersion
API Version
Get the API version
/version
Usage and SDK Samples
curl -X GET "https://localhost/version"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AICAApi;
import java.io.File;
import java.util.*;
public class AICAApiExample {
public static void main(String[] args) {
AICAApi apiInstance = new AICAApi();
try {
apiInstance.getVersion();
} catch (ApiException e) {
System.err.println("Exception when calling AICAApi#getVersion");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AICAApi;
public class AICAApiExample {
public static void main(String[] args) {
AICAApi apiInstance = new AICAApi();
try {
apiInstance.getVersion();
} catch (ApiException e) {
System.err.println("Exception when calling AICAApi#getVersion");
e.printStackTrace();
}
}
}
AICAApi *apiInstance = [[AICAApi alloc] init];
// API Version
[apiInstance getVersionWithCompletionHandler:
^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AicaApi = require('aica_api');
var api = new AicaApi.AICAApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.getVersion(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getVersionExample
{
public void main()
{
var apiInstance = new AICAApi();
try
{
// API Version
apiInstance.getVersion();
}
catch (Exception e)
{
Debug.Print("Exception when calling AICAApi.getVersion: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AICAApi();
try {
$api_instance->getVersion();
} catch (Exception $e) {
echo 'Exception when calling AICAApi->getVersion: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AICAApi;
my $api_instance = WWW::SwaggerClient::AICAApi->new();
eval {
$api_instance->getVersion();
};
if ($@) {
warn "Exception when calling AICAApi->getVersion: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AICAApi()
try:
# API Version
api_instance.get_version()
except ApiException as e:
print("Exception when calling AICAApi->getVersion: %s\n" % e)