getConfiguration
Get base configuration
Get the handled IINs, fuelcoupons and card codes
/configuration
Usage and SDK Samples
curl -X GET \
-H "Accept: application/json,application/xml" \
"https://mxp-public-wash-api.dev.icadsistemi.com/v1/configuration"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ConfigurationApi;
import java.io.File;
import java.util.*;
public class ConfigurationApiExample {
public static void main(String[] args) {
// Create an instance of the API class
ConfigurationApi apiInstance = new ConfigurationApi();
try {
Configuration result = apiInstance.getConfiguration();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationApi#getConfiguration");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
try {
final result = await api_instance.getConfiguration();
print(result);
} catch (e) {
print('Exception when calling DefaultApi->getConfiguration: $e\n');
}
import org.openapitools.client.api.ConfigurationApi;
public class ConfigurationApiExample {
public static void main(String[] args) {
ConfigurationApi apiInstance = new ConfigurationApi();
try {
Configuration result = apiInstance.getConfiguration();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationApi#getConfiguration");
e.printStackTrace();
}
}
}
// Create an instance of the API class
ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init];
// Get base configuration
[apiInstance getConfigurationWithCompletionHandler:
^(Configuration output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var CarWashApi = require('car_wash_api');
// Create an instance of the API class
var api = new CarWashApi.ConfigurationApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getConfiguration(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getConfigurationExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new ConfigurationApi();
try {
// Get base configuration
Configuration result = apiInstance.getConfiguration();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ConfigurationApi.getConfiguration: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ConfigurationApi();
try {
$result = $api_instance->getConfiguration();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationApi->getConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ConfigurationApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ConfigurationApi->new();
eval {
my $result = $api_instance->getConfiguration();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ConfigurationApi->getConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.ConfigurationApi()
try:
# Get base configuration
api_response = api_instance.get_configuration()
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigurationApi->getConfiguration: %s\n" % e)
extern crate ConfigurationApi;
pub fn main() {
let mut context = ConfigurationApi::Context::default();
let result = client.getConfiguration(&context).wait();
println!("{:?}", result);
}