getBooleanSettingByCode
Gets boolean setting by code
/settings/boolean-setting/by-code/{code}
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"http://keysys.hvlnet.net:9192/settings/boolean-setting/by-code/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemSettingAPIApi;
import java.io.File;
import java.util.*;
public class SystemSettingAPIApiExample {
public static void main(String[] args) {
SystemSettingAPIApi apiInstance = new SystemSettingAPIApi();
String code = code_example; // String |
try {
HvlResponseBoolean result = apiInstance.getBooleanSettingByCode(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemSettingAPIApi#getBooleanSettingByCode");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SystemSettingAPIApi;
public class SystemSettingAPIApiExample {
public static void main(String[] args) {
SystemSettingAPIApi apiInstance = new SystemSettingAPIApi();
String code = code_example; // String |
try {
HvlResponseBoolean result = apiInstance.getBooleanSettingByCode(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemSettingAPIApi#getBooleanSettingByCode");
e.printStackTrace();
}
}
}
String *code = code_example; //
SystemSettingAPIApi *apiInstance = [[SystemSettingAPIApi alloc] init];
// Gets boolean setting by code
[apiInstance getBooleanSettingByCodeWith:code
completionHandler: ^(HvlResponseBoolean output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var HvlSystemSettingServer = require('hvl_system_setting_server');
var api = new HvlSystemSettingServer.SystemSettingAPIApi()
var code = code_example; // {{String}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getBooleanSettingByCode(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getBooleanSettingByCodeExample
{
public void main()
{
var apiInstance = new SystemSettingAPIApi();
var code = code_example; // String |
try
{
// Gets boolean setting by code
HvlResponseBoolean result = apiInstance.getBooleanSettingByCode(code);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SystemSettingAPIApi.getBooleanSettingByCode: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiSystemSettingAPIApi();
$code = code_example; // String |
try {
$result = $api_instance->getBooleanSettingByCode($code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SystemSettingAPIApi->getBooleanSettingByCode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SystemSettingAPIApi;
my $api_instance = WWW::SwaggerClient::SystemSettingAPIApi->new();
my $code = code_example; # String |
eval {
my $result = $api_instance->getBooleanSettingByCode(code => $code);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SystemSettingAPIApi->getBooleanSettingByCode: $@\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.SystemSettingAPIApi()
code = code_example # String |
try:
# Gets boolean setting by code
api_response = api_instance.get_boolean_setting_by_code(code)
pprint(api_response)
except ApiException as e:
print("Exception when calling SystemSettingAPIApi->getBooleanSettingByCode: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
code* |
String
Required
|