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://gwinfradev.bulut.ai/authentication/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://gwinfradev.bulut.ai/authentication/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://gwinfradev.bulut.ai/authentication/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://gwinfradev.bulut.ai/authentication/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://gwinfradev.bulut.ai/authentication/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


AuthenticationVerificationAPI

captcha

Generates captcha image.


/verification/captcha

Usage and SDK Samples

curl -X GET\
-H "Accept: */*"\
"http://gwinfradev.bulut.ai/authentication/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://gwinfradev.bulut.ai/authentication/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 use the system with the given username.


/verification/generate

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://gwinfradev.bulut.ai/authentication/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 use the system with the given username.
[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 use the system with the given username.
                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 use the system with the given username.
    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://gwinfradev.bulut.ai/authentication/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