getExportClosureIscodeDateClosureTypeTurn
Get closure for the fuel station
Get closure for the fuel station
/export/closure/{iscode}/{date}/{closure_type}/{turn}
Usage and SDK Samples
curl -X GET \
\
\
-H "Accept: application/json" \
"https://mxp-import-export-ov.dev.icadsistemi.com/v1/export/closure/{iscode}/{date}/{closure_type}/{turn}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClosuresApi;
import java.io.File;
import java.util.*;
public class ClosuresApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: production
OAuth production = (OAuth) defaultClient.getAuthentication("production");
production.setAccessToken("YOUR ACCESS TOKEN");
// Configure OAuth2 access token for authorization: develop
OAuth develop = (OAuth) defaultClient.getAuthentication("develop");
develop.setAccessToken("YOUR ACCESS TOKEN");
// Create an instance of the API class
ClosuresApi apiInstance = new ClosuresApi();
String iscode = iscode_example; // String | IS code assigned to the fuel station
String date = date_example; // String | Reference date on format YYYYMMDD
String closureType = closureType_example; // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
String turn = turn_example; // String | Turn number. User 0 for closure_type "day" or "pc".
try {
array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] result = apiInstance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClosuresApi#getExportClosureIscodeDateClosureTypeTurn");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String iscode = new String(); // String | IS code assigned to the fuel station
final String date = new String(); // String | Reference date on format YYYYMMDD
final String closureType = new String(); // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
final String turn = new String(); // String | Turn number. User 0 for closure_type "day" or "pc".
try {
final result = await api_instance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->getExportClosureIscodeDateClosureTypeTurn: $e\n');
}
import org.openapitools.client.api.ClosuresApi;
public class ClosuresApiExample {
public static void main(String[] args) {
ClosuresApi apiInstance = new ClosuresApi();
String iscode = iscode_example; // String | IS code assigned to the fuel station
String date = date_example; // String | Reference date on format YYYYMMDD
String closureType = closureType_example; // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
String turn = turn_example; // String | Turn number. User 0 for closure_type "day" or "pc".
try {
array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] result = apiInstance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClosuresApi#getExportClosureIscodeDateClosureTypeTurn");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: production)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: develop)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Create an instance of the API class
ClosuresApi *apiInstance = [[ClosuresApi alloc] init];
String *iscode = iscode_example; // IS code assigned to the fuel station (default to null)
String *date = date_example; // Reference date on format YYYYMMDD (default to null)
String *closureType = closureType_example; // Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures (default to null)
String *turn = turn_example; // Turn number. User 0 for closure_type "day" or "pc". (default to null)
// Get closure for the fuel station
[apiInstance getExportClosureIscodeDateClosureTypeTurnWith:iscode
date:date
closureType:closureType
turn:turn
completionHandler: ^(array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ImportExportOverview = require('import_export_overview');
var defaultClient = ImportExportOverview.ApiClient.instance;
// Configure OAuth2 access token for authorization: production
var production = defaultClient.authentications['production'];
production.accessToken = "YOUR ACCESS TOKEN";
// Configure OAuth2 access token for authorization: develop
var develop = defaultClient.authentications['develop'];
develop.accessToken = "YOUR ACCESS TOKEN";
// Create an instance of the API class
var api = new ImportExportOverview.ClosuresApi()
var iscode = iscode_example; // {String} IS code assigned to the fuel station
var date = date_example; // {String} Reference date on format YYYYMMDD
var closureType = closureType_example; // {String} Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
var turn = turn_example; // {String} Turn number. User 0 for closure_type "day" or "pc".
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getExportClosureIscodeDateClosureTypeTurnExample
{
public void main()
{
// Configure OAuth2 access token for authorization: production
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure OAuth2 access token for authorization: develop
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Create an instance of the API class
var apiInstance = new ClosuresApi();
var iscode = iscode_example; // String | IS code assigned to the fuel station (default to null)
var date = date_example; // String | Reference date on format YYYYMMDD (default to null)
var closureType = closureType_example; // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures (default to null)
var turn = turn_example; // String | Turn number. User 0 for closure_type "day" or "pc". (default to null)
try {
// Get closure for the fuel station
array[get_export_closure_iscode_date_closure_type_turn_200_response_inner] result = apiInstance.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ClosuresApi.getExportClosureIscodeDateClosureTypeTurn: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: production
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: develop
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ClosuresApi();
$iscode = iscode_example; // String | IS code assigned to the fuel station
$date = date_example; // String | Reference date on format YYYYMMDD
$closureType = closureType_example; // String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
$turn = turn_example; // String | Turn number. User 0 for closure_type "day" or "pc".
try {
$result = $api_instance->getExportClosureIscodeDateClosureTypeTurn($iscode, $date, $closureType, $turn);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ClosuresApi->getExportClosureIscodeDateClosureTypeTurn: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ClosuresApi;
# Configure OAuth2 access token for authorization: production
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: develop
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ClosuresApi->new();
my $iscode = iscode_example; # String | IS code assigned to the fuel station
my $date = date_example; # String | Reference date on format YYYYMMDD
my $closureType = closureType_example; # String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
my $turn = turn_example; # String | Turn number. User 0 for closure_type "day" or "pc".
eval {
my $result = $api_instance->getExportClosureIscodeDateClosureTypeTurn(iscode => $iscode, date => $date, closureType => $closureType, turn => $turn);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ClosuresApi->getExportClosureIscodeDateClosureTypeTurn: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: production
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: develop
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Create an instance of the API class
api_instance = openapi_client.ClosuresApi()
iscode = iscode_example # String | IS code assigned to the fuel station (default to null)
date = date_example # String | Reference date on format YYYYMMDD (default to null)
closureType = closureType_example # String | Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures (default to null)
turn = turn_example # String | Turn number. User 0 for closure_type "day" or "pc". (default to null)
try:
# Get closure for the fuel station
api_response = api_instance.get_export_closure_iscode_date_closure_type_turn(iscode, date, closureType, turn)
pprint(api_response)
except ApiException as e:
print("Exception when calling ClosuresApi->getExportClosureIscodeDateClosureTypeTurn: %s\n" % e)
extern crate ClosuresApi;
pub fn main() {
let iscode = iscode_example; // String
let date = date_example; // String
let closureType = closureType_example; // String
let turn = turn_example; // String
let mut context = ClosuresApi::Context::default();
let result = client.getExportClosureIscodeDateClosureTypeTurn(iscode, date, closureType, turn, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
Name | Description |
---|---|
iscode* |
String
IS code assigned to the fuel station
Required
|
date* |
String
Reference date on format YYYYMMDD
Required
|
closure_type* |
String
Closure type (allowed values: day, pc, turn). Recommended "day" to avoid problems with missing closures
Required
|
turn* |
String
Turn number. User 0 for closure_type "day" or "pc".
Required
|