getBooleanPersonalPreferencesByCode
Gets boolean personal preference by code
/personal-preferences/boolean-personal-preference/by-code/{code}
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"http://keysis.hvlnet.net:9192/personal-preferences/boolean-personal-preference/by-code/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SystemPersonalPreferencesAPIApi;
import java.io.File;
import java.util.*;
public class SystemPersonalPreferencesAPIApiExample {
public static void main(String[] args) {
SystemPersonalPreferencesAPIApi apiInstance = new SystemPersonalPreferencesAPIApi();
String code = code_example; // String |
try {
HvlResponseBoolean result = apiInstance.getBooleanPersonalPreferencesByCode(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemPersonalPreferencesAPIApi#getBooleanPersonalPreferencesByCode");
e.printStackTrace();
}
}
}
import io.swagger.client.api.SystemPersonalPreferencesAPIApi;
public class SystemPersonalPreferencesAPIApiExample {
public static void main(String[] args) {
SystemPersonalPreferencesAPIApi apiInstance = new SystemPersonalPreferencesAPIApi();
String code = code_example; // String |
try {
HvlResponseBoolean result = apiInstance.getBooleanPersonalPreferencesByCode(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SystemPersonalPreferencesAPIApi#getBooleanPersonalPreferencesByCode");
e.printStackTrace();
}
}
}
String *code = code_example; //
SystemPersonalPreferencesAPIApi *apiInstance = [[SystemPersonalPreferencesAPIApi alloc] init];
// Gets boolean personal preference by code
[apiInstance getBooleanPersonalPreferencesByCodeWith:code
completionHandler: ^(HvlResponseBoolean output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var HvlSystemServer = require('hvl_system_server');
var api = new HvlSystemServer.SystemPersonalPreferencesAPIApi()
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.getBooleanPersonalPreferencesByCode(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getBooleanPersonalPreferencesByCodeExample
{
public void main()
{
var apiInstance = new SystemPersonalPreferencesAPIApi();
var code = code_example; // String |
try
{
// Gets boolean personal preference by code
HvlResponseBoolean result = apiInstance.getBooleanPersonalPreferencesByCode(code);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling SystemPersonalPreferencesAPIApi.getBooleanPersonalPreferencesByCode: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiSystemPersonalPreferencesAPIApi();
$code = code_example; // String |
try {
$result = $api_instance->getBooleanPersonalPreferencesByCode($code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SystemPersonalPreferencesAPIApi->getBooleanPersonalPreferencesByCode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SystemPersonalPreferencesAPIApi;
my $api_instance = WWW::SwaggerClient::SystemPersonalPreferencesAPIApi->new();
my $code = code_example; # String |
eval {
my $result = $api_instance->getBooleanPersonalPreferencesByCode(code => $code);
print Dumper($result);
};
if ($@) {
warn "Exception when calling SystemPersonalPreferencesAPIApi->getBooleanPersonalPreferencesByCode: $@\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.SystemPersonalPreferencesAPIApi()
code = code_example # String |
try:
# Gets boolean personal preference by code
api_response = api_instance.get_boolean_personal_preferences_by_code(code)
pprint(api_response)
except ApiException as e:
print("Exception when calling SystemPersonalPreferencesAPIApi->getBooleanPersonalPreferencesByCode: %s\n" % e)
Parameters
Name | Description |
---|---|
code* |
String
Required
|