-
-
-
-
- getFuelstationsCircuits
-Get fuelstations for enabled circuits
-Get all enabled fuelstations for enabled circuits
- --
/export/circuits/fuelstations
- -
Usage and SDK Samples
- - - -
-
-
-
-
- curl -X GET \
- \
- \
- -H "Accept: application/json" \
- "https://mxp-import-export-ov.dev.icadsistemi.com/v1/export/circuits/fuelstations"
-
-
-
-
- import org.openapitools.client.*;
-import org.openapitools.client.auth.*;
-import org.openapitools.client.model.*;
-import org.openapitools.client.api.FuelstationsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class FuelstationsApiExample {
- 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
- FuelstationsApi apiInstance = new FuelstationsApi();
-
- try {
- array[get_fuelstations_circuits_200_response_inner] result = apiInstance.getFuelstationsCircuits();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FuelstationsApi#getFuelstationsCircuits");
- e.printStackTrace();
- }
- }
-}
-
-
-
-
- import 'package:openapi/api.dart';
-
-final api_instance = DefaultApi();
-
-
-try {
- final result = await api_instance.getFuelstationsCircuits();
- print(result);
-} catch (e) {
- print('Exception when calling DefaultApi->getFuelstationsCircuits: $e\n');
-}
-
-
-
-
-
- import org.openapitools.client.api.FuelstationsApi;
-
-public class FuelstationsApiExample {
- public static void main(String[] args) {
- FuelstationsApi apiInstance = new FuelstationsApi();
-
- try {
- array[get_fuelstations_circuits_200_response_inner] result = apiInstance.getFuelstationsCircuits();
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling FuelstationsApi#getFuelstationsCircuits");
- 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
-FuelstationsApi *apiInstance = [[FuelstationsApi alloc] init];
-
-// Get fuelstations for enabled circuits
-[apiInstance getFuelstationsCircuitsWithCompletionHandler:
- ^(array[get_fuelstations_circuits_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.FuelstationsApi()
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-api.getFuelstationsCircuits(callback);
-
-
-
-
- using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class getFuelstationsCircuitsExample
- {
- 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 FuelstationsApi();
-
- try {
- // Get fuelstations for enabled circuits
- array[get_fuelstations_circuits_200_response_inner] result = apiInstance.getFuelstationsCircuits();
- Debug.WriteLine(result);
- } catch (Exception e) {
- Debug.Print("Exception when calling FuelstationsApi.getFuelstationsCircuits: " + 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\FuelstationsApi();
-
-try {
- $result = $api_instance->getFuelstationsCircuits();
- print_r($result);
-} catch (Exception $e) {
- echo 'Exception when calling FuelstationsApi->getFuelstationsCircuits: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
-
-
- use Data::Dumper;
-use WWW::OPenAPIClient::Configuration;
-use WWW::OPenAPIClient::FuelstationsApi;
-
-# 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::FuelstationsApi->new();
-
-eval {
- my $result = $api_instance->getFuelstationsCircuits();
- print Dumper($result);
-};
-if ($@) {
- warn "Exception when calling FuelstationsApi->getFuelstationsCircuits: $@\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.FuelstationsApi()
-
-try:
- # Get fuelstations for enabled circuits
- api_response = api_instance.get_fuelstations_circuits()
- pprint(api_response)
-except ApiException as e:
- print("Exception when calling FuelstationsApi->getFuelstationsCircuits: %s\n" % e)
-
-
- extern crate FuelstationsApi;
-
-pub fn main() {
-
- let mut context = FuelstationsApi::Context::default();
- let result = client.getFuelstationsCircuits(&context).wait();
-
- println!("{:?}", result);
-}
-
- Scopes
-Parameters
- - - - - - -Responses
- - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-