Hvl Authentication Server

AuthenticationAPI

completeLoginWithCode

User login with the given code


/auth/complete-login-with-code

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://keysis.hvlnet.net:7080/auth/complete-login-with-code"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationAPIApi;

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

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseHvlAuthAuthenticationResponseModel result = apiInstance.completeLoginWithCode(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#completeLoginWithCode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationAPIApi;

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseHvlAuthAuthenticationResponseModel result = apiInstance.completeLoginWithCode(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#completeLoginWithCode");
            e.printStackTrace();
        }
    }
}
HvlAuthVerificationRequestModel *body = ; // 

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

// User login with the given code
[apiInstance completeLoginWithCodeWith:body
              completionHandler: ^(HvlResponseHvlAuthAuthenticationResponseModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

var api = new HvlAuthenticationServer.AuthenticationAPIApi()
var body = ; // {{HvlAuthVerificationRequestModel}} 

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

namespace Example
{
    public class completeLoginWithCodeExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationAPIApi();
            var body = new HvlAuthVerificationRequestModel(); // HvlAuthVerificationRequestModel | 

            try
            {
                // User login with the given code
                HvlResponseHvlAuthAuthenticationResponseModel result = apiInstance.completeLoginWithCode(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationAPIApi.completeLoginWithCode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationAPIApi();
$body = ; // HvlAuthVerificationRequestModel | 

try {
    $result = $api_instance->completeLoginWithCode($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationAPIApi->completeLoginWithCode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationAPIApi;

my $api_instance = WWW::SwaggerClient::AuthenticationAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlAuthVerificationRequestModel->new(); # HvlAuthVerificationRequestModel | 

eval { 
    my $result = $api_instance->completeLoginWithCode(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationAPIApi->completeLoginWithCode: $@\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.AuthenticationAPIApi()
body =  # HvlAuthVerificationRequestModel | 

try: 
    # User login with the given code
    api_response = api_instance.complete_login_with_code(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationAPIApi->completeLoginWithCode: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


getCaptchaImageString

Generates captcha image string.


/auth/captcha-image-string

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"http://keysis.hvlnet.net:7080/auth/captcha-image-string"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationAPIApi;

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

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        try {
            HvlResponseString result = apiInstance.getCaptchaImageString();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#getCaptchaImageString");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationAPIApi;

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        try {
            HvlResponseString result = apiInstance.getCaptchaImageString();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#getCaptchaImageString");
            e.printStackTrace();
        }
    }
}

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

// Generates captcha image string.
[apiInstance getCaptchaImageStringWithCompletionHandler: 
              ^(HvlResponseString output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

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

namespace Example
{
    public class getCaptchaImageStringExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationAPIApi();

            try
            {
                // Generates captcha image string.
                HvlResponseString result = apiInstance.getCaptchaImageString();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationAPIApi.getCaptchaImageString: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationAPIApi();

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

my $api_instance = WWW::SwaggerClient::AuthenticationAPIApi->new();

eval { 
    my $result = $api_instance->getCaptchaImageString();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationAPIApi->getCaptchaImageString: $@\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.AuthenticationAPIApi()

try: 
    # Generates captcha image string.
    api_response = api_instance.get_captcha_image_string()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationAPIApi->getCaptchaImageString: %s\n" % e)

Parameters

Responses

Status: 200 - OK


login

User login with the given username and password


/auth/login

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://keysis.hvlnet.net:7080/auth/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationAPIApi;

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

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        HvlAuthAuthenticationRequestModel body = ; // HvlAuthAuthenticationRequestModel | 
        try {
            HvlResponseHvlAuthAuthenticationResponseModel result = apiInstance.login(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#login");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationAPIApi;

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        HvlAuthAuthenticationRequestModel body = ; // HvlAuthAuthenticationRequestModel | 
        try {
            HvlResponseHvlAuthAuthenticationResponseModel result = apiInstance.login(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#login");
            e.printStackTrace();
        }
    }
}
HvlAuthAuthenticationRequestModel *body = ; // 

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

// User login with the given username and password
[apiInstance loginWith:body
              completionHandler: ^(HvlResponseHvlAuthAuthenticationResponseModel output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

var api = new HvlAuthenticationServer.AuthenticationAPIApi()
var body = ; // {{HvlAuthAuthenticationRequestModel}} 

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

namespace Example
{
    public class loginExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationAPIApi();
            var body = new HvlAuthAuthenticationRequestModel(); // HvlAuthAuthenticationRequestModel | 

            try
            {
                // User login with the given username and password
                HvlResponseHvlAuthAuthenticationResponseModel result = apiInstance.login(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationAPIApi.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationAPIApi();
$body = ; // HvlAuthAuthenticationRequestModel | 

try {
    $result = $api_instance->login($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationAPIApi->login: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationAPIApi;

my $api_instance = WWW::SwaggerClient::AuthenticationAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlAuthAuthenticationRequestModel->new(); # HvlAuthAuthenticationRequestModel | 

eval { 
    my $result = $api_instance->login(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationAPIApi->login: $@\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.AuthenticationAPIApi()
body =  # HvlAuthAuthenticationRequestModel | 

try: 
    # User login with the given username and password
    api_response = api_instance.login(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationAPIApi->login: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


logout

Deletes the current token and redirects to the given page. The user becomes unable to use the system


/auth/logout

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://keysis.hvlnet.net:7080/auth/logout?redirect="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationAPIApi;

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

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        String redirect = redirect_example; // String | 
        try {
            HvlResponseVoid result = apiInstance.logout(redirect);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#logout");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationAPIApi;

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        String redirect = redirect_example; // String | 
        try {
            HvlResponseVoid result = apiInstance.logout(redirect);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#logout");
            e.printStackTrace();
        }
    }
}
String *redirect = redirect_example; //  (optional)

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

// Deletes the current token and redirects to the given page. The user becomes unable to use the system
[apiInstance logoutWith:redirect
              completionHandler: ^(HvlResponseVoid output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

var api = new HvlAuthenticationServer.AuthenticationAPIApi()
var opts = { 
  'redirect': redirect_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.logout(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class logoutExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationAPIApi();
            var redirect = redirect_example;  // String |  (optional) 

            try
            {
                // Deletes the current token and redirects to the given page. The user becomes unable to use the system
                HvlResponseVoid result = apiInstance.logout(redirect);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationAPIApi.logout: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationAPIApi();
$redirect = redirect_example; // String | 

try {
    $result = $api_instance->logout($redirect);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationAPIApi->logout: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationAPIApi;

my $api_instance = WWW::SwaggerClient::AuthenticationAPIApi->new();
my $redirect = redirect_example; # String | 

eval { 
    my $result = $api_instance->logout(redirect => $redirect);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationAPIApi->logout: $@\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.AuthenticationAPIApi()
redirect = redirect_example # String |  (optional)

try: 
    # Deletes the current token and redirects to the given page. The user becomes unable to use the system
    api_response = api_instance.logout(redirect=redirect)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationAPIApi->logout: %s\n" % e)

Parameters

Query parameters
Name Description
redirect
String

Responses

Status: 200 - OK


refresh

Refreshes existing token.


/auth/refresh

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://keysis.hvlnet.net:7080/auth/refresh"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationAPIApi;

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

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        try {
            HvlResponseString result = apiInstance.refresh();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#refresh");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationAPIApi;

public class AuthenticationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationAPIApi apiInstance = new AuthenticationAPIApi();
        try {
            HvlResponseString result = apiInstance.refresh();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationAPIApi#refresh");
            e.printStackTrace();
        }
    }
}

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

// Refreshes existing token.
[apiInstance refreshWithCompletionHandler: 
              ^(HvlResponseString output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

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

namespace Example
{
    public class refreshExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationAPIApi();

            try
            {
                // Refreshes existing token.
                HvlResponseString result = apiInstance.refresh();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationAPIApi.refresh: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationAPIApi();

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

my $api_instance = WWW::SwaggerClient::AuthenticationAPIApi->new();

eval { 
    my $result = $api_instance->refresh();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationAPIApi->refresh: $@\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.AuthenticationAPIApi()

try: 
    # Refreshes existing token.
    api_response = api_instance.refresh()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationAPIApi->refresh: %s\n" % e)

Parameters

Responses

Status: 200 - OK


AuthenticationSettingsAPI

getRegisterEnabled

Gets registration enabled setting value


/auth/setting/registration-enabled

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://keysis.hvlnet.net:7080/auth/setting/registration-enabled"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationSettingsAPIApi;

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

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseBoolean result = apiInstance.getRegisterEnabled();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getRegisterEnabled");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationSettingsAPIApi;

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseBoolean result = apiInstance.getRegisterEnabled();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getRegisterEnabled");
            e.printStackTrace();
        }
    }
}

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

// Gets registration enabled setting value
[apiInstance getRegisterEnabledWithCompletionHandler: 
              ^(HvlResponseBoolean output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

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

namespace Example
{
    public class getRegisterEnabledExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationSettingsAPIApi();

            try
            {
                // Gets registration enabled setting value
                HvlResponseBoolean result = apiInstance.getRegisterEnabled();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationSettingsAPIApi.getRegisterEnabled: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationSettingsAPIApi();

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

my $api_instance = WWW::SwaggerClient::AuthenticationSettingsAPIApi->new();

eval { 
    my $result = $api_instance->getRegisterEnabled();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationSettingsAPIApi->getRegisterEnabled: $@\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.AuthenticationSettingsAPIApi()

try: 
    # Gets registration enabled setting value
    api_response = api_instance.get_register_enabled()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationSettingsAPIApi->getRegisterEnabled: %s\n" % e)

Parameters

Responses

Status: 200 - OK


getRegisterUserDetailTypes

Gets register user detail type setting value


/auth/setting/register-user-detail-types

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://keysis.hvlnet.net:7080/auth/setting/register-user-detail-types"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationSettingsAPIApi;

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

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseString result = apiInstance.getRegisterUserDetailTypes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getRegisterUserDetailTypes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationSettingsAPIApi;

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseString result = apiInstance.getRegisterUserDetailTypes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getRegisterUserDetailTypes");
            e.printStackTrace();
        }
    }
}

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

// Gets register user detail type setting value
[apiInstance getRegisterUserDetailTypesWithCompletionHandler: 
              ^(HvlResponseString output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

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

namespace Example
{
    public class getRegisterUserDetailTypesExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationSettingsAPIApi();

            try
            {
                // Gets register user detail type setting value
                HvlResponseString result = apiInstance.getRegisterUserDetailTypes();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationSettingsAPIApi.getRegisterUserDetailTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationSettingsAPIApi();

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

my $api_instance = WWW::SwaggerClient::AuthenticationSettingsAPIApi->new();

eval { 
    my $result = $api_instance->getRegisterUserDetailTypes();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationSettingsAPIApi->getRegisterUserDetailTypes: $@\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.AuthenticationSettingsAPIApi()

try: 
    # Gets register user detail type setting value
    api_response = api_instance.get_register_user_detail_types()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationSettingsAPIApi->getRegisterUserDetailTypes: %s\n" % e)

Parameters

Responses

Status: 200 - OK


getTwoFactorAuthenticationTypes

Gets two factor authentication types setting value


/auth/setting/two-factor-authentication-types

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://keysis.hvlnet.net:7080/auth/setting/two-factor-authentication-types"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationSettingsAPIApi;

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

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseString result = apiInstance.getTwoFactorAuthenticationTypes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getTwoFactorAuthenticationTypes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationSettingsAPIApi;

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseString result = apiInstance.getTwoFactorAuthenticationTypes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getTwoFactorAuthenticationTypes");
            e.printStackTrace();
        }
    }
}

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

// Gets two factor authentication types setting value
[apiInstance getTwoFactorAuthenticationTypesWithCompletionHandler: 
              ^(HvlResponseString output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

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

namespace Example
{
    public class getTwoFactorAuthenticationTypesExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationSettingsAPIApi();

            try
            {
                // Gets two factor authentication types setting value
                HvlResponseString result = apiInstance.getTwoFactorAuthenticationTypes();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationSettingsAPIApi.getTwoFactorAuthenticationTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationSettingsAPIApi();

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

my $api_instance = WWW::SwaggerClient::AuthenticationSettingsAPIApi->new();

eval { 
    my $result = $api_instance->getTwoFactorAuthenticationTypes();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationSettingsAPIApi->getTwoFactorAuthenticationTypes: $@\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.AuthenticationSettingsAPIApi()

try: 
    # Gets two factor authentication types setting value
    api_response = api_instance.get_two_factor_authentication_types()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationSettingsAPIApi->getTwoFactorAuthenticationTypes: %s\n" % e)

Parameters

Responses

Status: 200 - OK


getTwoFactorAuthenticationVerificationCodeMinDuration

Gets two factor authentication verification code min duration setting value


/auth/setting/two-factor-authentication-verification-code-min-duration

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://keysis.hvlnet.net:7080/auth/setting/two-factor-authentication-verification-code-min-duration"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationSettingsAPIApi;

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

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseLong result = apiInstance.getTwoFactorAuthenticationVerificationCodeMinDuration();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getTwoFactorAuthenticationVerificationCodeMinDuration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationSettingsAPIApi;

public class AuthenticationSettingsAPIApiExample {

    public static void main(String[] args) {
        AuthenticationSettingsAPIApi apiInstance = new AuthenticationSettingsAPIApi();
        try {
            HvlResponseLong result = apiInstance.getTwoFactorAuthenticationVerificationCodeMinDuration();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationSettingsAPIApi#getTwoFactorAuthenticationVerificationCodeMinDuration");
            e.printStackTrace();
        }
    }
}

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

// Gets two factor authentication verification code min duration setting value
[apiInstance getTwoFactorAuthenticationVerificationCodeMinDurationWithCompletionHandler: 
              ^(HvlResponseLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

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

namespace Example
{
    public class getTwoFactorAuthenticationVerificationCodeMinDurationExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationSettingsAPIApi();

            try
            {
                // Gets two factor authentication verification code min duration setting value
                HvlResponseLong result = apiInstance.getTwoFactorAuthenticationVerificationCodeMinDuration();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationSettingsAPIApi.getTwoFactorAuthenticationVerificationCodeMinDuration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationSettingsAPIApi();

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

my $api_instance = WWW::SwaggerClient::AuthenticationSettingsAPIApi->new();

eval { 
    my $result = $api_instance->getTwoFactorAuthenticationVerificationCodeMinDuration();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationSettingsAPIApi->getTwoFactorAuthenticationVerificationCodeMinDuration: $@\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.AuthenticationSettingsAPIApi()

try: 
    # Gets two factor authentication verification code min duration setting value
    api_response = api_instance.get_two_factor_authentication_verification_code_min_duration()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationSettingsAPIApi->getTwoFactorAuthenticationVerificationCodeMinDuration: %s\n" % e)

Parameters

Responses

Status: 200 - OK


AuthenticationVerificationAPI

captcha

Generates captcha image.


/verification/captcha

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://keysis.hvlnet.net:7080/verification/captcha"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationVerificationAPIApi;

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

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        try {
            HvlResponseString result = apiInstance.captcha();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#captcha");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationVerificationAPIApi;

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        try {
            HvlResponseString result = apiInstance.captcha();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#captcha");
            e.printStackTrace();
        }
    }
}

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

// Generates captcha image.
[apiInstance captchaWithCompletionHandler: 
              ^(HvlResponseString output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

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

namespace Example
{
    public class captchaExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationVerificationAPIApi();

            try
            {
                // Generates captcha image.
                HvlResponseString result = apiInstance.captcha();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationVerificationAPIApi.captcha: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationVerificationAPIApi();

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

my $api_instance = WWW::SwaggerClient::AuthenticationVerificationAPIApi->new();

eval { 
    my $result = $api_instance->captcha();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationVerificationAPIApi->captcha: $@\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.AuthenticationVerificationAPIApi()

try: 
    # Generates captcha image.
    api_response = api_instance.captcha()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationVerificationAPIApi->captcha: %s\n" % e)

Parameters

Responses

Status: 200 - OK


exists

System verification is made with the given username and code is exist.


/verification/exists

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://keysis.hvlnet.net:7080/verification/exists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationVerificationAPIApi;

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

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseBoolean result = apiInstance.exists(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#exists");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationVerificationAPIApi;

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseBoolean result = apiInstance.exists(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#exists");
            e.printStackTrace();
        }
    }
}
HvlAuthVerificationRequestModel *body = ; // 

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

// System verification is made with the given username and code is exist.
[apiInstance existsWith:body
              completionHandler: ^(HvlResponseBoolean output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

var api = new HvlAuthenticationServer.AuthenticationVerificationAPIApi()
var body = ; // {{HvlAuthVerificationRequestModel}} 

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

namespace Example
{
    public class existsExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationVerificationAPIApi();
            var body = new HvlAuthVerificationRequestModel(); // HvlAuthVerificationRequestModel | 

            try
            {
                // System verification is made with the given username and code is exist.
                HvlResponseBoolean result = apiInstance.exists(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationVerificationAPIApi.exists: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationVerificationAPIApi();
$body = ; // HvlAuthVerificationRequestModel | 

try {
    $result = $api_instance->exists($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationVerificationAPIApi->exists: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationVerificationAPIApi;

my $api_instance = WWW::SwaggerClient::AuthenticationVerificationAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlAuthVerificationRequestModel->new(); # HvlAuthVerificationRequestModel | 

eval { 
    my $result = $api_instance->exists(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationVerificationAPIApi->exists: $@\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.AuthenticationVerificationAPIApi()
body =  # HvlAuthVerificationRequestModel | 

try: 
    # System verification is made with the given username and code is exist.
    api_response = api_instance.exists(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationVerificationAPIApi->exists: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


generate

Generates code to and saves it.


/verification/generate

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://keysis.hvlnet.net:7080/verification/generate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationVerificationAPIApi;

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

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseString result = apiInstance.generate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#generate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationVerificationAPIApi;

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseString result = apiInstance.generate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#generate");
            e.printStackTrace();
        }
    }
}
HvlAuthVerificationRequestModel *body = ; // 

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

// Generates code to and saves it.
[apiInstance generateWith:body
              completionHandler: ^(HvlResponseString output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

var api = new HvlAuthenticationServer.AuthenticationVerificationAPIApi()
var body = ; // {{HvlAuthVerificationRequestModel}} 

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

namespace Example
{
    public class generateExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationVerificationAPIApi();
            var body = new HvlAuthVerificationRequestModel(); // HvlAuthVerificationRequestModel | 

            try
            {
                // Generates code to and saves it.
                HvlResponseString result = apiInstance.generate(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationVerificationAPIApi.generate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationVerificationAPIApi();
$body = ; // HvlAuthVerificationRequestModel | 

try {
    $result = $api_instance->generate($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationVerificationAPIApi->generate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationVerificationAPIApi;

my $api_instance = WWW::SwaggerClient::AuthenticationVerificationAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlAuthVerificationRequestModel->new(); # HvlAuthVerificationRequestModel | 

eval { 
    my $result = $api_instance->generate(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationVerificationAPIApi->generate: $@\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.AuthenticationVerificationAPIApi()
body =  # HvlAuthVerificationRequestModel | 

try: 
    # Generates code to and saves it.
    api_response = api_instance.generate(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationVerificationAPIApi->generate: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK


validate

System verification is made with the given username and code is validated.


/verification/validate

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://keysis.hvlnet.net:7080/verification/validate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticationVerificationAPIApi;

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

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseBoolean result = apiInstance.validate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#validate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuthenticationVerificationAPIApi;

public class AuthenticationVerificationAPIApiExample {

    public static void main(String[] args) {
        AuthenticationVerificationAPIApi apiInstance = new AuthenticationVerificationAPIApi();
        HvlAuthVerificationRequestModel body = ; // HvlAuthVerificationRequestModel | 
        try {
            HvlResponseBoolean result = apiInstance.validate(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthenticationVerificationAPIApi#validate");
            e.printStackTrace();
        }
    }
}
HvlAuthVerificationRequestModel *body = ; // 

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

// System verification is made with the given username and code is validated.
[apiInstance validateWith:body
              completionHandler: ^(HvlResponseBoolean output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var HvlAuthenticationServer = require('hvl_authentication_server');

var api = new HvlAuthenticationServer.AuthenticationVerificationAPIApi()
var body = ; // {{HvlAuthVerificationRequestModel}} 

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

namespace Example
{
    public class validateExample
    {
        public void main()
        {

            var apiInstance = new AuthenticationVerificationAPIApi();
            var body = new HvlAuthVerificationRequestModel(); // HvlAuthVerificationRequestModel | 

            try
            {
                // System verification is made with the given username and code is validated.
                HvlResponseBoolean result = apiInstance.validate(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuthenticationVerificationAPIApi.validate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuthenticationVerificationAPIApi();
$body = ; // HvlAuthVerificationRequestModel | 

try {
    $result = $api_instance->validate($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthenticationVerificationAPIApi->validate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticationVerificationAPIApi;

my $api_instance = WWW::SwaggerClient::AuthenticationVerificationAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlAuthVerificationRequestModel->new(); # HvlAuthVerificationRequestModel | 

eval { 
    my $result = $api_instance->validate(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthenticationVerificationAPIApi->validate: $@\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.AuthenticationVerificationAPIApi()
body =  # HvlAuthVerificationRequestModel | 

try: 
    # System verification is made with the given username and code is validated.
    api_response = api_instance.validate(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationVerificationAPIApi->validate: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK