Lufthansa Open API

Cargo

cargoGetRoute

Retrieve a list of all possible flights (both direct and connecting) between two airports on a given date. Routes are available for today and up to days in the future.


/v1/cargo/getRoute/{origin}-{destination}/{fromdate}/{productcode}"

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/cargo/getRoute/{origin}-{destination}/{fromdate}/{productcode}""
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CargoApi;

import java.io.File;
import java.util.*;

public class CargoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CargoApi apiInstance = new CargoApi();
        String apiecoKey = apiecoKey_example; // String | 
        String origin = origin_example; // String | Origin airport : 3-letter IATA airport code, e.g. HKG.
        String destination = destination_example; // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
        String fromdate = fromdate_example; // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
        String productcode = productcode_example; // String | Product code for requested service and specials : 3-letter eg: YNZ
        try {
            inline_response_200_1 result = apiInstance.cargoGetRoute(apiecoKey, origin, destination, fromdate, productcode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CargoApi#cargoGetRoute");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CargoApi;

public class CargoApiExample {

    public static void main(String[] args) {
        CargoApi apiInstance = new CargoApi();
        String apiecoKey = apiecoKey_example; // String | 
        String origin = origin_example; // String | Origin airport : 3-letter IATA airport code, e.g. HKG.
        String destination = destination_example; // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
        String fromdate = fromdate_example; // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
        String productcode = productcode_example; // String | Product code for requested service and specials : 3-letter eg: YNZ
        try {
            inline_response_200_1 result = apiInstance.cargoGetRoute(apiecoKey, origin, destination, fromdate, productcode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CargoApi#cargoGetRoute");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *origin = origin_example; // Origin airport : 3-letter IATA airport code, e.g. HKG.
String *destination = destination_example; // Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
String *fromdate = fromdate_example; // Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
String *productcode = productcode_example; // Product code for requested service and specials : 3-letter eg: YNZ

CargoApi *apiInstance = [[CargoApi alloc] init];

[apiInstance cargoGetRouteWith:apiecoKey
    origin:origin
    destination:destination
    fromdate:fromdate
    productcode:productcode
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.CargoApi()

var apiecoKey = apiecoKey_example; // {String} 

var origin = origin_example; // {String} Origin airport : 3-letter IATA airport code, e.g. HKG.

var destination = destination_example; // {String} Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15

var fromdate = fromdate_example; // {String} Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15

var productcode = productcode_example; // {String} Product code for requested service and specials : 3-letter eg: YNZ


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cargoGetRoute(apiecoKey, origin, destination, fromdate, productcode, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class cargoGetRouteExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CargoApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var origin = origin_example;  // String | Origin airport : 3-letter IATA airport code, e.g. HKG.
            var destination = destination_example;  // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
            var fromdate = fromdate_example;  // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
            var productcode = productcode_example;  // String | Product code for requested service and specials : 3-letter eg: YNZ

            try
            {
                inline_response_200_1 result = apiInstance.cargoGetRoute(apiecoKey, origin, destination, fromdate, productcode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CargoApi.cargoGetRoute: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CargoApi();
$apiecoKey = apiecoKey_example; // String | 
$origin = origin_example; // String | Origin airport : 3-letter IATA airport code, e.g. HKG.
$destination = destination_example; // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
$fromdate = fromdate_example; // String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
$productcode = productcode_example; // String | Product code for requested service and specials : 3-letter eg: YNZ

try {
    $result = $api_instance->cargoGetRoute($apiecoKey, $origin, $destination, $fromdate, $productcode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CargoApi->cargoGetRoute: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CargoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CargoApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $origin = origin_example; # String | Origin airport : 3-letter IATA airport code, e.g. HKG.
my $destination = destination_example; # String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
my $fromdate = fromdate_example; # String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
my $productcode = productcode_example; # String | Product code for requested service and specials : 3-letter eg: YNZ

eval { 
    my $result = $api_instance->cargoGetRoute(apiecoKey => $apiecoKey, origin => $origin, destination => $destination, fromdate => $fromdate, productcode => $productcode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CargoApi->cargoGetRoute: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CargoApi()
apiecoKey = apiecoKey_example # String | 
origin = origin_example # String | Origin airport : 3-letter IATA airport code, e.g. HKG.
destination = destination_example # String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
fromdate = fromdate_example # String | Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
productcode = productcode_example # String | Product code for requested service and specials : 3-letter eg: YNZ

try: 
    api_response = api_instance.cargo_get_route(apiecoKey, origin, destination, fromdate, productcode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CargoApi->cargoGetRoute: %s\n" % e)

Parameters

Path parameters
Name Description
origin*
String
Origin airport : 3-letter IATA airport code, e.g. HKG.
Required
destination*
String
Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
Required
fromdate*
String
Departure date in the local time of the departure airport. Based on LAT (Latest Acceptance Time). format : yyyy-MM-dd eg : 2017-07-15
Required
productcode*
String
Product code for requested service and specials : 3-letter eg: YNZ
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


cargoShipmentTracking

With this tracking service you can easily retrieve your shipment or flight status information..


/v1/cargo/shipmentTracking/{awbprefix}-{awbnumber}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/cargo/shipmentTracking/{awbprefix}-{awbnumber}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CargoApi;

import java.io.File;
import java.util.*;

public class CargoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        CargoApi apiInstance = new CargoApi();
        String apiecoKey = apiecoKey_example; // String | 
        String awbprefix = awbprefix_example; // String | aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
        String awbnumber = awbnumber_example; // String |  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050
        try {
            inline_response_200 result = apiInstance.cargoShipmentTracking(apiecoKey, awbprefix, awbnumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CargoApi#cargoShipmentTracking");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CargoApi;

public class CargoApiExample {

    public static void main(String[] args) {
        CargoApi apiInstance = new CargoApi();
        String apiecoKey = apiecoKey_example; // String | 
        String awbprefix = awbprefix_example; // String | aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
        String awbnumber = awbnumber_example; // String |  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050
        try {
            inline_response_200 result = apiInstance.cargoShipmentTracking(apiecoKey, awbprefix, awbnumber);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CargoApi#cargoShipmentTracking");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *awbprefix = awbprefix_example; // aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
String *awbnumber = awbnumber_example; //  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050

CargoApi *apiInstance = [[CargoApi alloc] init];

[apiInstance cargoShipmentTrackingWith:apiecoKey
    awbprefix:awbprefix
    awbnumber:awbnumber
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.CargoApi()

var apiecoKey = apiecoKey_example; // {String} 

var awbprefix = awbprefix_example; // {String} aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020

var awbnumber = awbnumber_example; // {String}  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cargoShipmentTracking(apiecoKey, awbprefix, awbnumber, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class cargoShipmentTrackingExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new CargoApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var awbprefix = awbprefix_example;  // String | aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
            var awbnumber = awbnumber_example;  // String |  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050

            try
            {
                inline_response_200 result = apiInstance.cargoShipmentTracking(apiecoKey, awbprefix, awbnumber);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CargoApi.cargoShipmentTracking: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\CargoApi();
$apiecoKey = apiecoKey_example; // String | 
$awbprefix = awbprefix_example; // String | aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
$awbnumber = awbnumber_example; // String |  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050

try {
    $result = $api_instance->cargoShipmentTracking($apiecoKey, $awbprefix, $awbnumber);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CargoApi->cargoShipmentTracking: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CargoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CargoApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $awbprefix = awbprefix_example; # String | aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
my $awbnumber = awbnumber_example; # String |  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050

eval { 
    my $result = $api_instance->cargoShipmentTracking(apiecoKey => $apiecoKey, awbprefix => $awbprefix, awbnumber => $awbnumber);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CargoApi->cargoShipmentTracking: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CargoApi()
apiecoKey = apiecoKey_example # String | 
awbprefix = awbprefix_example # String | aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
awbnumber = awbnumber_example # String |  aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050

try: 
    api_response = api_instance.cargo_shipment_tracking(apiecoKey, awbprefix, awbnumber)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CargoApi->cargoShipmentTracking: %s\n" % e)

Parameters

Path parameters
Name Description
awbprefix*
String
aWBPrefix : Represents the airline that is the owner of this AWB, i.e. \"020\" = Lufthansa Cargo, format : [0-9]{3} e.g. 020
Required
awbnumber*
String
aWBNumber : The Air Waybill Number , format : [0-9]{8} e.g. 08002050
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Offers

loungeInfo

Lounge information


/v1/offers/lounges/{location}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/offers/lounges/{location}?tierCode=&cabinclass="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OffersApi;

import java.io.File;
import java.util.*;

public class OffersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        OffersApi apiInstance = new OffersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String location = location_example; // String | 3-leter IATA airport or city code (e.g. 'ZRH')
        String tierCode = tierCode_example; // String | Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
        String cabinclass = cabinclass_example; // String | Cabin class: 'M', 'E', 'C', 'F'
        try {
            inline_response_200_4 result = apiInstance.loungeInfo(apiecoKey, location, tierCode, cabinclass);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OffersApi#loungeInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OffersApi;

public class OffersApiExample {

    public static void main(String[] args) {
        OffersApi apiInstance = new OffersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String location = location_example; // String | 3-leter IATA airport or city code (e.g. 'ZRH')
        String tierCode = tierCode_example; // String | Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
        String cabinclass = cabinclass_example; // String | Cabin class: 'M', 'E', 'C', 'F'
        try {
            inline_response_200_4 result = apiInstance.loungeInfo(apiecoKey, location, tierCode, cabinclass);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OffersApi#loungeInfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *location = location_example; // 3-leter IATA airport or city code (e.g. 'ZRH')
String *tierCode = tierCode_example; // Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
String *cabinclass = cabinclass_example; // Cabin class: 'M', 'E', 'C', 'F'

OffersApi *apiInstance = [[OffersApi alloc] init];

[apiInstance loungeInfoWith:apiecoKey
    location:location
    tierCode:tierCode
    cabinclass:cabinclass
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.OffersApi()

var apiecoKey = apiecoKey_example; // {String} 

var location = location_example; // {String} 3-leter IATA airport or city code (e.g. 'ZRH')

var tierCode = tierCode_example; // {String} Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')

var cabinclass = cabinclass_example; // {String} Cabin class: 'M', 'E', 'C', 'F'


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.loungeInfo(apiecoKey, location, tierCode, cabinclass, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class loungeInfoExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new OffersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var location = location_example;  // String | 3-leter IATA airport or city code (e.g. 'ZRH')
            var tierCode = tierCode_example;  // String | Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
            var cabinclass = cabinclass_example;  // String | Cabin class: 'M', 'E', 'C', 'F'

            try
            {
                inline_response_200_4 result = apiInstance.loungeInfo(apiecoKey, location, tierCode, cabinclass);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OffersApi.loungeInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\OffersApi();
$apiecoKey = apiecoKey_example; // String | 
$location = location_example; // String | 3-leter IATA airport or city code (e.g. 'ZRH')
$tierCode = tierCode_example; // String | Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
$cabinclass = cabinclass_example; // String | Cabin class: 'M', 'E', 'C', 'F'

try {
    $result = $api_instance->loungeInfo($apiecoKey, $location, $tierCode, $cabinclass);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OffersApi->loungeInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OffersApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OffersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $location = location_example; # String | 3-leter IATA airport or city code (e.g. 'ZRH')
my $tierCode = tierCode_example; # String | Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
my $cabinclass = cabinclass_example; # String | Cabin class: 'M', 'E', 'C', 'F'

eval { 
    my $result = $api_instance->loungeInfo(apiecoKey => $apiecoKey, location => $location, tierCode => $tierCode, cabinclass => $cabinclass);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OffersApi->loungeInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OffersApi()
apiecoKey = apiecoKey_example # String | 
location = location_example # String | 3-leter IATA airport or city code (e.g. 'ZRH')
tierCode = tierCode_example # String | Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
cabinclass = cabinclass_example # String | Cabin class: 'M', 'E', 'C', 'F'

try: 
    api_response = api_instance.lounge_info(apiecoKey, location, tierCode, cabinclass)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OffersApi->loungeInfo: %s\n" % e)

Parameters

Path parameters
Name Description
location*
String
3-leter IATA airport or city code (e.g. 'ZRH')
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
tierCode*
String
Frequent flyer level ('FTL', 'SGC', 'SEN', 'HON')
Required
cabinclass*
String
Cabin class: 'M', 'E', 'C', 'F'
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


seatmaps

Cabin layout and seat characteristics.


/v1/offers/seatmaps/{flightnumber}/{origin}/{destination}/{date}/{cabinclass}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/offers/seatmaps/{flightnumber}/{origin}/{destination}/{date}/{cabinclass}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OffersApi;

import java.io.File;
import java.util.*;

public class OffersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        OffersApi apiInstance = new OffersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String flightnumber = flightnumber_example; // String | Flight number including carrier code and any suffix (e.g. 'LH2037')
        String destination = destination_example; // String | Departure airport. 3-letter IATA airport code (e.g. 'TXL')
        String date = date_example; // String | Departure date (YYYY-MM-DD)
        String origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String cabinclass = cabinclass_example; // String | Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")
        try {
            inline_response_200_4 result = apiInstance.seatmaps(apiecoKey, flightnumber, destination, date, origin, cabinclass);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OffersApi#seatmaps");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OffersApi;

public class OffersApiExample {

    public static void main(String[] args) {
        OffersApi apiInstance = new OffersApi();
        String apiecoKey = apiecoKey_example; // String | 
        String flightnumber = flightnumber_example; // String | Flight number including carrier code and any suffix (e.g. 'LH2037')
        String destination = destination_example; // String | Departure airport. 3-letter IATA airport code (e.g. 'TXL')
        String date = date_example; // String | Departure date (YYYY-MM-DD)
        String origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String cabinclass = cabinclass_example; // String | Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")
        try {
            inline_response_200_4 result = apiInstance.seatmaps(apiecoKey, flightnumber, destination, date, origin, cabinclass);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OffersApi#seatmaps");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *flightnumber = flightnumber_example; // Flight number including carrier code and any suffix (e.g. 'LH2037')
String *destination = destination_example; // Departure airport. 3-letter IATA airport code (e.g. 'TXL')
String *date = date_example; // Departure date (YYYY-MM-DD)
String *origin = origin_example; // Origin airport. 3-letter IATA airport code (e.g. 'TXL')
String *cabinclass = cabinclass_example; // Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")

OffersApi *apiInstance = [[OffersApi alloc] init];

[apiInstance seatmapsWith:apiecoKey
    flightnumber:flightnumber
    destination:destination
    date:date
    origin:origin
    cabinclass:cabinclass
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.OffersApi()

var apiecoKey = apiecoKey_example; // {String} 

var flightnumber = flightnumber_example; // {String} Flight number including carrier code and any suffix (e.g. 'LH2037')

var destination = destination_example; // {String} Departure airport. 3-letter IATA airport code (e.g. 'TXL')

var date = date_example; // {String} Departure date (YYYY-MM-DD)

var origin = origin_example; // {String} Origin airport. 3-letter IATA airport code (e.g. 'TXL')

var cabinclass = cabinclass_example; // {String} Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.seatmaps(apiecoKey, flightnumber, destination, date, origin, cabinclass, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class seatmapsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new OffersApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var flightnumber = flightnumber_example;  // String | Flight number including carrier code and any suffix (e.g. 'LH2037')
            var destination = destination_example;  // String | Departure airport. 3-letter IATA airport code (e.g. 'TXL')
            var date = date_example;  // String | Departure date (YYYY-MM-DD)
            var origin = origin_example;  // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
            var cabinclass = cabinclass_example;  // String | Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")

            try
            {
                inline_response_200_4 result = apiInstance.seatmaps(apiecoKey, flightnumber, destination, date, origin, cabinclass);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OffersApi.seatmaps: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\OffersApi();
$apiecoKey = apiecoKey_example; // String | 
$flightnumber = flightnumber_example; // String | Flight number including carrier code and any suffix (e.g. 'LH2037')
$destination = destination_example; // String | Departure airport. 3-letter IATA airport code (e.g. 'TXL')
$date = date_example; // String | Departure date (YYYY-MM-DD)
$origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
$cabinclass = cabinclass_example; // String | Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")

try {
    $result = $api_instance->seatmaps($apiecoKey, $flightnumber, $destination, $date, $origin, $cabinclass);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OffersApi->seatmaps: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OffersApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OffersApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $flightnumber = flightnumber_example; # String | Flight number including carrier code and any suffix (e.g. 'LH2037')
my $destination = destination_example; # String | Departure airport. 3-letter IATA airport code (e.g. 'TXL')
my $date = date_example; # String | Departure date (YYYY-MM-DD)
my $origin = origin_example; # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
my $cabinclass = cabinclass_example; # String | Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")

eval { 
    my $result = $api_instance->seatmaps(apiecoKey => $apiecoKey, flightnumber => $flightnumber, destination => $destination, date => $date, origin => $origin, cabinclass => $cabinclass);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OffersApi->seatmaps: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OffersApi()
apiecoKey = apiecoKey_example # String | 
flightnumber = flightnumber_example # String | Flight number including carrier code and any suffix (e.g. 'LH2037')
destination = destination_example # String | Departure airport. 3-letter IATA airport code (e.g. 'TXL')
date = date_example # String | Departure date (YYYY-MM-DD)
origin = origin_example # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
cabinclass = cabinclass_example # String | Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")

try: 
    api_response = api_instance.seatmaps(apiecoKey, flightnumber, destination, date, origin, cabinclass)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OffersApi->seatmaps: %s\n" % e)

Parameters

Path parameters
Name Description
flightnumber*
String
Flight number including carrier code and any suffix (e.g. 'LH2037')
Required
destination*
String
Departure airport. 3-letter IATA airport code (e.g. 'TXL')
Required
date*
String
Departure date (YYYY-MM-DD)
Required
origin*
String
Origin airport. 3-letter IATA airport code (e.g. 'TXL')
Required
cabinclass*
String
Cabin class: 'M', 'E', 'C', 'F'. Some flights have fewer classes (Acceptable values are: "M", "E", "C", "F")
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


Operations

flightSchedules

Scheduled flights between given airports on a given date.


/v1/operations/schedules/{origin}/{destination}/{fromdatetime}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/operations/schedules/{origin}/{destination}/{fromdatetime}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OperationsApi;

import java.io.File;
import java.util.*;

public class OperationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String destination = destination_example; // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
        String fromdatetime = fromdatetime_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
        try {
            inline_response_200_3 result = apiInstance.flightSchedules(apiecoKey, origin, destination, fromdatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightSchedules");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OperationsApi;

public class OperationsApiExample {

    public static void main(String[] args) {
        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String destination = destination_example; // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
        String fromdatetime = fromdatetime_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
        try {
            inline_response_200_3 result = apiInstance.flightSchedules(apiecoKey, origin, destination, fromdatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightSchedules");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *origin = origin_example; // Origin airport. 3-letter IATA airport code (e.g. 'TXL')
String *destination = destination_example; // Destination airport. 3-letter IATA airport code (e.g. 'TXL')
String *fromdatetime = fromdatetime_example; // Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

OperationsApi *apiInstance = [[OperationsApi alloc] init];

[apiInstance flightSchedulesWith:apiecoKey
    origin:origin
    destination:destination
    fromdatetime:fromdatetime
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.OperationsApi()

var apiecoKey = apiecoKey_example; // {String} 

var origin = origin_example; // {String} Origin airport. 3-letter IATA airport code (e.g. 'TXL')

var destination = destination_example; // {String} Destination airport. 3-letter IATA airport code (e.g. 'TXL')

var fromdatetime = fromdatetime_example; // {String} Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flightSchedules(apiecoKey, origin, destination, fromdatetime, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class flightSchedulesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new OperationsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var origin = origin_example;  // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
            var destination = destination_example;  // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
            var fromdatetime = fromdatetime_example;  // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

            try
            {
                inline_response_200_3 result = apiInstance.flightSchedules(apiecoKey, origin, destination, fromdatetime);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OperationsApi.flightSchedules: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\OperationsApi();
$apiecoKey = apiecoKey_example; // String | 
$origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
$destination = destination_example; // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
$fromdatetime = fromdatetime_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

try {
    $result = $api_instance->flightSchedules($apiecoKey, $origin, $destination, $fromdatetime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationsApi->flightSchedules: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OperationsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OperationsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $origin = origin_example; # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
my $destination = destination_example; # String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
my $fromdatetime = fromdatetime_example; # String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

eval { 
    my $result = $api_instance->flightSchedules(apiecoKey => $apiecoKey, origin => $origin, destination => $destination, fromdatetime => $fromdatetime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationsApi->flightSchedules: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OperationsApi()
apiecoKey = apiecoKey_example # String | 
origin = origin_example # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
destination = destination_example # String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
fromdatetime = fromdatetime_example # String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

try: 
    api_response = api_instance.flight_schedules(apiecoKey, origin, destination, fromdatetime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationsApi->flightSchedules: %s\n" % e)

Parameters

Path parameters
Name Description
origin*
String
Origin airport. 3-letter IATA airport code (e.g. 'TXL')
Required
destination*
String
Destination airport. 3-letter IATA airport code (e.g. 'TXL')
Required
fromdatetime*
String
Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


flightStatusForEachFlight

Status of a particular flight (boarding, delayed, etc.).


/v1/operations/flightstatus/{flightnumber}/{date}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/operations/flightstatus/{flightnumber}/{date}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OperationsApi;

import java.io.File;
import java.util.*;

public class OperationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String flightnumber = flightnumber_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String date = date_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
        try {
            inline_response_200_3 result = apiInstance.flightStatusForEachFlight(apiecoKey, flightnumber, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightStatusForEachFlight");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OperationsApi;

public class OperationsApiExample {

    public static void main(String[] args) {
        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String flightnumber = flightnumber_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String date = date_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
        try {
            inline_response_200_3 result = apiInstance.flightStatusForEachFlight(apiecoKey, flightnumber, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightStatusForEachFlight");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *flightnumber = flightnumber_example; // Origin airport. 3-letter IATA airport code (e.g. 'TXL')
String *date = date_example; // Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

OperationsApi *apiInstance = [[OperationsApi alloc] init];

[apiInstance flightStatusForEachFlightWith:apiecoKey
    flightnumber:flightnumber
    date:date
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.OperationsApi()

var apiecoKey = apiecoKey_example; // {String} 

var flightnumber = flightnumber_example; // {String} Origin airport. 3-letter IATA airport code (e.g. 'TXL')

var date = date_example; // {String} Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flightStatusForEachFlight(apiecoKey, flightnumber, date, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class flightStatusForEachFlightExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new OperationsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var flightnumber = flightnumber_example;  // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
            var date = date_example;  // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

            try
            {
                inline_response_200_3 result = apiInstance.flightStatusForEachFlight(apiecoKey, flightnumber, date);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OperationsApi.flightStatusForEachFlight: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\OperationsApi();
$apiecoKey = apiecoKey_example; // String | 
$flightnumber = flightnumber_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
$date = date_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

try {
    $result = $api_instance->flightStatusForEachFlight($apiecoKey, $flightnumber, $date);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationsApi->flightStatusForEachFlight: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OperationsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OperationsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $flightnumber = flightnumber_example; # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
my $date = date_example; # String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

eval { 
    my $result = $api_instance->flightStatusForEachFlight(apiecoKey => $apiecoKey, flightnumber => $flightnumber, date => $date);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationsApi->flightStatusForEachFlight: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OperationsApi()
apiecoKey = apiecoKey_example # String | 
flightnumber = flightnumber_example # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
date = date_example # String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

try: 
    api_response = api_instance.flight_status_for_each_flight(apiecoKey, flightnumber, date)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationsApi->flightStatusForEachFlight: %s\n" % e)

Parameters

Path parameters
Name Description
flightnumber*
String
Origin airport. 3-letter IATA airport code (e.g. 'TXL')
Required
date*
String
Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


flightStatusPerDepart

Scheduled flights between given airports on a given date.


/v1/operations/flightstatus/departures/{airportcode}/{fromdatetime}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/operations/flightstatus/departures/{airportcode}/{fromdatetime}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OperationsApi;

import java.io.File;
import java.util.*;

public class OperationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airportcode = airportcode_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String fromdatetime = fromdatetime_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
        try {
            inline_response_200_3 result = apiInstance.flightStatusPerDepart(apiecoKey, airportcode, fromdatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightStatusPerDepart");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OperationsApi;

public class OperationsApiExample {

    public static void main(String[] args) {
        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airportcode = airportcode_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String fromdatetime = fromdatetime_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
        try {
            inline_response_200_3 result = apiInstance.flightStatusPerDepart(apiecoKey, airportcode, fromdatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightStatusPerDepart");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *airportcode = airportcode_example; // Origin airport. 3-letter IATA airport code (e.g. 'TXL')
String *fromdatetime = fromdatetime_example; // Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

OperationsApi *apiInstance = [[OperationsApi alloc] init];

[apiInstance flightStatusPerDepartWith:apiecoKey
    airportcode:airportcode
    fromdatetime:fromdatetime
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.OperationsApi()

var apiecoKey = apiecoKey_example; // {String} 

var airportcode = airportcode_example; // {String} Origin airport. 3-letter IATA airport code (e.g. 'TXL')

var fromdatetime = fromdatetime_example; // {String} Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flightStatusPerDepart(apiecoKey, airportcode, fromdatetime, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class flightStatusPerDepartExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new OperationsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var airportcode = airportcode_example;  // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
            var fromdatetime = fromdatetime_example;  // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

            try
            {
                inline_response_200_3 result = apiInstance.flightStatusPerDepart(apiecoKey, airportcode, fromdatetime);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OperationsApi.flightStatusPerDepart: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\OperationsApi();
$apiecoKey = apiecoKey_example; // String | 
$airportcode = airportcode_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
$fromdatetime = fromdatetime_example; // String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

try {
    $result = $api_instance->flightStatusPerDepart($apiecoKey, $airportcode, $fromdatetime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationsApi->flightStatusPerDepart: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OperationsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OperationsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $airportcode = airportcode_example; # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
my $fromdatetime = fromdatetime_example; # String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

eval { 
    my $result = $api_instance->flightStatusPerDepart(apiecoKey => $apiecoKey, airportcode => $airportcode, fromdatetime => $fromdatetime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationsApi->flightStatusPerDepart: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OperationsApi()
apiecoKey = apiecoKey_example # String | 
airportcode = airportcode_example # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
fromdatetime = fromdatetime_example # String | Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01

try: 
    api_response = api_instance.flight_status_per_depart(apiecoKey, airportcode, fromdatetime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationsApi->flightStatusPerDepart: %s\n" % e)

Parameters

Path parameters
Name Description
airportcode*
String
Origin airport. 3-letter IATA airport code (e.g. 'TXL')
Required
fromdatetime*
String
Local departure date and optionally departure time (YYYY-MM-DD or YYYY-MM-DDTHH:mm). When not provided, time is assumed to be 00:01
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


flightstatusAtAirport

Status of all arrivals at a given airport up to 4 hours from the provided date time.


/v1/operations/flightstatus/arrivals/{airportcode}/{fromdatetime}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/operations/flightstatus/arrivals/{airportcode}/{fromdatetime}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OperationsApi;

import java.io.File;
import java.util.*;

public class OperationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airportcode = airportcode_example; // String | Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
        String fromdatetime = fromdatetime_example; // String | Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)
        try {
            inline_response_200_2 result = apiInstance.flightstatusAtAirport(apiecoKey, airportcode, fromdatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightstatusAtAirport");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OperationsApi;

public class OperationsApiExample {

    public static void main(String[] args) {
        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airportcode = airportcode_example; // String | Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
        String fromdatetime = fromdatetime_example; // String | Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)
        try {
            inline_response_200_2 result = apiInstance.flightstatusAtAirport(apiecoKey, airportcode, fromdatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightstatusAtAirport");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *airportcode = airportcode_example; // Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
String *fromdatetime = fromdatetime_example; // Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)

OperationsApi *apiInstance = [[OperationsApi alloc] init];

[apiInstance flightstatusAtAirportWith:apiecoKey
    airportcode:airportcode
    fromdatetime:fromdatetime
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.OperationsApi()

var apiecoKey = apiecoKey_example; // {String} 

var airportcode = airportcode_example; // {String} Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')

var fromdatetime = fromdatetime_example; // {String} Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flightstatusAtAirport(apiecoKey, airportcode, fromdatetime, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class flightstatusAtAirportExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new OperationsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var airportcode = airportcode_example;  // String | Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
            var fromdatetime = fromdatetime_example;  // String | Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)

            try
            {
                inline_response_200_2 result = apiInstance.flightstatusAtAirport(apiecoKey, airportcode, fromdatetime);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OperationsApi.flightstatusAtAirport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\OperationsApi();
$apiecoKey = apiecoKey_example; // String | 
$airportcode = airportcode_example; // String | Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
$fromdatetime = fromdatetime_example; // String | Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)

try {
    $result = $api_instance->flightstatusAtAirport($apiecoKey, $airportcode, $fromdatetime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationsApi->flightstatusAtAirport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OperationsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OperationsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $airportcode = airportcode_example; # String | Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
my $fromdatetime = fromdatetime_example; # String | Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)

eval { 
    my $result = $api_instance->flightstatusAtAirport(apiecoKey => $apiecoKey, airportcode => $airportcode, fromdatetime => $fromdatetime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationsApi->flightstatusAtAirport: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OperationsApi()
apiecoKey = apiecoKey_example # String | 
airportcode = airportcode_example # String | Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
fromdatetime = fromdatetime_example # String | Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)

try: 
    api_response = api_instance.flightstatus_at_airport(apiecoKey, airportcode, fromdatetime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationsApi->flightstatusAtAirport: %s\n" % e)

Parameters

Path parameters
Name Description
airportcode*
String
Arrival airport 3-letter IATA aiport code (e.g. 'ZRH')
Required
fromdatetime*
String
Start of time range in local time of arrival airport (YYYY-MM-DDTHH:mm)
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


flightstatusByRoute

Status of flights between a given origin and destination on a given date.


/v1/operations/flightstatus/route/{origin}/{destination}/{date}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/operations/flightstatus/route/{origin}/{destination}/{date}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OperationsApi;

import java.io.File;
import java.util.*;

public class OperationsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String destination = destination_example; // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
        String date = date_example; // String | Departure date (YYYY-MM-DD)
        try {
            inline_response_200_2 result = apiInstance.flightstatusByRoute(apiecoKey, origin, destination, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightstatusByRoute");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OperationsApi;

public class OperationsApiExample {

    public static void main(String[] args) {
        OperationsApi apiInstance = new OperationsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
        String destination = destination_example; // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
        String date = date_example; // String | Departure date (YYYY-MM-DD)
        try {
            inline_response_200_2 result = apiInstance.flightstatusByRoute(apiecoKey, origin, destination, date);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationsApi#flightstatusByRoute");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *origin = origin_example; // Origin airport. 3-letter IATA airport code (e.g. 'TXL')
String *destination = destination_example; // Destination airport. 3-letter IATA airport code (e.g. 'TXL')
String *date = date_example; // Departure date (YYYY-MM-DD)

OperationsApi *apiInstance = [[OperationsApi alloc] init];

[apiInstance flightstatusByRouteWith:apiecoKey
    origin:origin
    destination:destination
    date:date
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.OperationsApi()

var apiecoKey = apiecoKey_example; // {String} 

var origin = origin_example; // {String} Origin airport. 3-letter IATA airport code (e.g. 'TXL')

var destination = destination_example; // {String} Destination airport. 3-letter IATA airport code (e.g. 'TXL')

var date = date_example; // {String} Departure date (YYYY-MM-DD)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flightstatusByRoute(apiecoKey, origin, destination, date, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class flightstatusByRouteExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new OperationsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var origin = origin_example;  // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
            var destination = destination_example;  // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
            var date = date_example;  // String | Departure date (YYYY-MM-DD)

            try
            {
                inline_response_200_2 result = apiInstance.flightstatusByRoute(apiecoKey, origin, destination, date);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OperationsApi.flightstatusByRoute: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\OperationsApi();
$apiecoKey = apiecoKey_example; // String | 
$origin = origin_example; // String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
$destination = destination_example; // String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
$date = date_example; // String | Departure date (YYYY-MM-DD)

try {
    $result = $api_instance->flightstatusByRoute($apiecoKey, $origin, $destination, $date);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationsApi->flightstatusByRoute: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OperationsApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OperationsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $origin = origin_example; # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
my $destination = destination_example; # String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
my $date = date_example; # String | Departure date (YYYY-MM-DD)

eval { 
    my $result = $api_instance->flightstatusByRoute(apiecoKey => $apiecoKey, origin => $origin, destination => $destination, date => $date);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationsApi->flightstatusByRoute: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OperationsApi()
apiecoKey = apiecoKey_example # String | 
origin = origin_example # String | Origin airport. 3-letter IATA airport code (e.g. 'TXL')
destination = destination_example # String | Destination airport. 3-letter IATA airport code (e.g. 'TXL')
date = date_example # String | Departure date (YYYY-MM-DD)

try: 
    api_response = api_instance.flightstatus_by_route(apiecoKey, origin, destination, date)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationsApi->flightstatusByRoute: %s\n" % e)

Parameters

Path parameters
Name Description
origin*
String
Origin airport. 3-letter IATA airport code (e.g. 'TXL')
Required
destination*
String
Destination airport. 3-letter IATA airport code (e.g. 'TXL')
Required
date*
String
Departure date (YYYY-MM-DD)
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


References

aircrafts

List all aircraft types or one specific aircraft type.


/v1/references/aircraft/{aircraftcode}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/references/aircraft/{aircraftcode}?limit=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferencesApi;

import java.io.File;
import java.util.*;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aircraftcode = aircraftcode_example; // String | 3-character IATA aircraft code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_8 result = apiInstance.aircrafts(apiecoKey, aircraftcode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#aircrafts");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferencesApi;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String aircraftcode = aircraftcode_example; // String | 3-character IATA aircraft code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_8 result = apiInstance.aircrafts(apiecoKey, aircraftcode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#aircrafts");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *aircraftcode = aircraftcode_example; // 3-character IATA aircraft code
String *limit = limit_example; // Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
String *offset = offset_example; // Number of records skipped. Defaults to 0

ReferencesApi *apiInstance = [[ReferencesApi alloc] init];

[apiInstance aircraftsWith:apiecoKey
    aircraftcode:aircraftcode
    limit:limit
    offset:offset
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.ReferencesApi()

var apiecoKey = apiecoKey_example; // {String} 

var aircraftcode = aircraftcode_example; // {String} 3-character IATA aircraft code

var limit = limit_example; // {String} Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

var offset = offset_example; // {String} Number of records skipped. Defaults to 0


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.aircrafts(apiecoKey, aircraftcode, limit, offset, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class aircraftsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ReferencesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var aircraftcode = aircraftcode_example;  // String | 3-character IATA aircraft code
            var limit = limit_example;  // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
            var offset = offset_example;  // String | Number of records skipped. Defaults to 0

            try
            {
                inline_response_200_8 result = apiInstance.aircrafts(apiecoKey, aircraftcode, limit, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferencesApi.aircrafts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ReferencesApi();
$apiecoKey = apiecoKey_example; // String | 
$aircraftcode = aircraftcode_example; // String | 3-character IATA aircraft code
$limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
$offset = offset_example; // String | Number of records skipped. Defaults to 0

try {
    $result = $api_instance->aircrafts($apiecoKey, $aircraftcode, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferencesApi->aircrafts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferencesApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReferencesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $aircraftcode = aircraftcode_example; # String | 3-character IATA aircraft code
my $limit = limit_example; # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
my $offset = offset_example; # String | Number of records skipped. Defaults to 0

eval { 
    my $result = $api_instance->aircrafts(apiecoKey => $apiecoKey, aircraftcode => $aircraftcode, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferencesApi->aircrafts: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReferencesApi()
apiecoKey = apiecoKey_example # String | 
aircraftcode = aircraftcode_example # String | 3-character IATA aircraft code
limit = limit_example # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
offset = offset_example # String | Number of records skipped. Defaults to 0

try: 
    api_response = api_instance.aircrafts(apiecoKey, aircraftcode, limit, offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferencesApi->aircrafts: %s\n" % e)

Parameters

Path parameters
Name Description
aircraftcode*
String
3-character IATA aircraft code
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
limit*
String
Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
Required
offset*
String
Number of records skipped. Defaults to 0
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


airlines

List all airlines or one specific airline


/v1/references/airlines/{airlinecode}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/references/airlines/{airlinecode}?limit=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferencesApi;

import java.io.File;
import java.util.*;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airlinecode = airlinecode_example; // String | 2-letter ISO 3166-1 country code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_6 result = apiInstance.airlines(apiecoKey, airlinecode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#airlines");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferencesApi;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airlinecode = airlinecode_example; // String | 2-letter ISO 3166-1 country code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_6 result = apiInstance.airlines(apiecoKey, airlinecode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#airlines");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *airlinecode = airlinecode_example; // 2-letter ISO 3166-1 country code
String *limit = limit_example; // Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
String *offset = offset_example; // Number of records skipped. Defaults to 0

ReferencesApi *apiInstance = [[ReferencesApi alloc] init];

[apiInstance airlinesWith:apiecoKey
    airlinecode:airlinecode
    limit:limit
    offset:offset
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.ReferencesApi()

var apiecoKey = apiecoKey_example; // {String} 

var airlinecode = airlinecode_example; // {String} 2-letter ISO 3166-1 country code

var limit = limit_example; // {String} Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

var offset = offset_example; // {String} Number of records skipped. Defaults to 0


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.airlines(apiecoKey, airlinecode, limit, offset, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class airlinesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ReferencesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var airlinecode = airlinecode_example;  // String | 2-letter ISO 3166-1 country code
            var limit = limit_example;  // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
            var offset = offset_example;  // String | Number of records skipped. Defaults to 0

            try
            {
                inline_response_200_6 result = apiInstance.airlines(apiecoKey, airlinecode, limit, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferencesApi.airlines: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ReferencesApi();
$apiecoKey = apiecoKey_example; // String | 
$airlinecode = airlinecode_example; // String | 2-letter ISO 3166-1 country code
$limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
$offset = offset_example; // String | Number of records skipped. Defaults to 0

try {
    $result = $api_instance->airlines($apiecoKey, $airlinecode, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferencesApi->airlines: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferencesApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReferencesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $airlinecode = airlinecode_example; # String | 2-letter ISO 3166-1 country code
my $limit = limit_example; # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
my $offset = offset_example; # String | Number of records skipped. Defaults to 0

eval { 
    my $result = $api_instance->airlines(apiecoKey => $apiecoKey, airlinecode => $airlinecode, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferencesApi->airlines: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReferencesApi()
apiecoKey = apiecoKey_example # String | 
airlinecode = airlinecode_example # String | 2-letter ISO 3166-1 country code
limit = limit_example # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
offset = offset_example # String | Number of records skipped. Defaults to 0

try: 
    api_response = api_instance.airlines(apiecoKey, airlinecode, limit, offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferencesApi->airlines: %s\n" % e)

Parameters

Path parameters
Name Description
airlinecode*
String
2-letter ISO 3166-1 country code
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
limit*
String
Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
Required
offset*
String
Number of records skipped. Defaults to 0
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


airports

List all airports or one specific airport. All airports response is very large. It is possible to request the response in a specific language.


/v1/references/airports/{airportcode}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/references/airports/{airportcode}?limit=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferencesApi;

import java.io.File;
import java.util.*;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airportcode = airportcode_example; // String | 3-character IATA airport code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_9 result = apiInstance.airports(apiecoKey, airportcode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#airports");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferencesApi;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String airportcode = airportcode_example; // String | 3-character IATA airport code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_9 result = apiInstance.airports(apiecoKey, airportcode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#airports");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *airportcode = airportcode_example; // 3-character IATA airport code
String *limit = limit_example; // Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
String *offset = offset_example; // Number of records skipped. Defaults to 0

ReferencesApi *apiInstance = [[ReferencesApi alloc] init];

[apiInstance airportsWith:apiecoKey
    airportcode:airportcode
    limit:limit
    offset:offset
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.ReferencesApi()

var apiecoKey = apiecoKey_example; // {String} 

var airportcode = airportcode_example; // {String} 3-character IATA airport code

var limit = limit_example; // {String} Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

var offset = offset_example; // {String} Number of records skipped. Defaults to 0


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.airports(apiecoKey, airportcode, limit, offset, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class airportsExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ReferencesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var airportcode = airportcode_example;  // String | 3-character IATA airport code
            var limit = limit_example;  // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
            var offset = offset_example;  // String | Number of records skipped. Defaults to 0

            try
            {
                inline_response_200_9 result = apiInstance.airports(apiecoKey, airportcode, limit, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferencesApi.airports: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ReferencesApi();
$apiecoKey = apiecoKey_example; // String | 
$airportcode = airportcode_example; // String | 3-character IATA airport code
$limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
$offset = offset_example; // String | Number of records skipped. Defaults to 0

try {
    $result = $api_instance->airports($apiecoKey, $airportcode, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferencesApi->airports: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferencesApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReferencesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $airportcode = airportcode_example; # String | 3-character IATA airport code
my $limit = limit_example; # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
my $offset = offset_example; # String | Number of records skipped. Defaults to 0

eval { 
    my $result = $api_instance->airports(apiecoKey => $apiecoKey, airportcode => $airportcode, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferencesApi->airports: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReferencesApi()
apiecoKey = apiecoKey_example # String | 
airportcode = airportcode_example # String | 3-character IATA airport code
limit = limit_example # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
offset = offset_example # String | Number of records skipped. Defaults to 0

try: 
    api_response = api_instance.airports(apiecoKey, airportcode, limit, offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferencesApi->airports: %s\n" % e)

Parameters

Path parameters
Name Description
airportcode*
String
3-character IATA airport code
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
limit*
String
Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
Required
offset*
String
Number of records skipped. Defaults to 0
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


cities

List all cities or one specific city. It is possible to request the response in a specific language.


/v1/references/cities/{citycode}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/references/cities/{citycode}?limit=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferencesApi;

import java.io.File;
import java.util.*;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String citycode = citycode_example; // String | 3-letter IATA city code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_7 result = apiInstance.cities(apiecoKey, citycode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#cities");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferencesApi;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String citycode = citycode_example; // String | 3-letter IATA city code
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        String offset = offset_example; // String | Number of records skipped. Defaults to 0
        try {
            inline_response_200_7 result = apiInstance.cities(apiecoKey, citycode, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#cities");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *citycode = citycode_example; // 3-letter IATA city code
String *limit = limit_example; // Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
String *offset = offset_example; // Number of records skipped. Defaults to 0

ReferencesApi *apiInstance = [[ReferencesApi alloc] init];

[apiInstance citiesWith:apiecoKey
    citycode:citycode
    limit:limit
    offset:offset
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.ReferencesApi()

var apiecoKey = apiecoKey_example; // {String} 

var citycode = citycode_example; // {String} 3-letter IATA city code

var limit = limit_example; // {String} Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

var offset = offset_example; // {String} Number of records skipped. Defaults to 0


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cities(apiecoKey, citycode, limit, offset, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class citiesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ReferencesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var citycode = citycode_example;  // String | 3-letter IATA city code
            var limit = limit_example;  // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
            var offset = offset_example;  // String | Number of records skipped. Defaults to 0

            try
            {
                inline_response_200_7 result = apiInstance.cities(apiecoKey, citycode, limit, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferencesApi.cities: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ReferencesApi();
$apiecoKey = apiecoKey_example; // String | 
$citycode = citycode_example; // String | 3-letter IATA city code
$limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
$offset = offset_example; // String | Number of records skipped. Defaults to 0

try {
    $result = $api_instance->cities($apiecoKey, $citycode, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferencesApi->cities: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferencesApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReferencesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $citycode = citycode_example; # String | 3-letter IATA city code
my $limit = limit_example; # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
my $offset = offset_example; # String | Number of records skipped. Defaults to 0

eval { 
    my $result = $api_instance->cities(apiecoKey => $apiecoKey, citycode => $citycode, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferencesApi->cities: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReferencesApi()
apiecoKey = apiecoKey_example # String | 
citycode = citycode_example # String | 3-letter IATA city code
limit = limit_example # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
offset = offset_example # String | Number of records skipped. Defaults to 0

try: 
    api_response = api_instance.cities(apiecoKey, citycode, limit, offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferencesApi->cities: %s\n" % e)

Parameters

Path parameters
Name Description
citycode*
String
3-letter IATA city code
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
limit*
String
Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
Required
offset*
String
Number of records skipped. Defaults to 0
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input


countries

List all countries or one specific country. It is possible to request the response in a specific language.


/v1/references/countries/{country}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/lufthansa/v1/references/countries/{country}?Defaults=&limit="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReferencesApi;

import java.io.File;
import java.util.*;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String country = country_example; // String | 2-letter ISO 3166-1 country code
        String defaults = defaults_example; // String | Number of records skipped. Defaults to 0
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        try {
            inline_response_200_5 result = apiInstance.countries(apiecoKey, country, defaults, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#countries");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReferencesApi;

public class ReferencesApiExample {

    public static void main(String[] args) {
        ReferencesApi apiInstance = new ReferencesApi();
        String apiecoKey = apiecoKey_example; // String | 
        String country = country_example; // String | 2-letter ISO 3166-1 country code
        String defaults = defaults_example; // String | Number of records skipped. Defaults to 0
        String limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
        try {
            inline_response_200_5 result = apiInstance.countries(apiecoKey, country, defaults, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReferencesApi#countries");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // 
String *country = country_example; // 2-letter ISO 3166-1 country code
String *defaults = defaults_example; // Number of records skipped. Defaults to 0
String *limit = limit_example; // Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

ReferencesApi *apiInstance = [[ReferencesApi alloc] init];

[apiInstance countriesWith:apiecoKey
    country:country
    defaults:defaults
    limit:limit
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LufthansaOpenApi = require('lufthansa_open_api');
var defaultClient = LufthansaOpenApi.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new LufthansaOpenApi.ReferencesApi()

var apiecoKey = apiecoKey_example; // {String} 

var country = country_example; // {String} 2-letter ISO 3166-1 country code

var defaults = defaults_example; // {String} Number of records skipped. Defaults to 0

var limit = limit_example; // {String} Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countries(apiecoKey, country, defaults, limit, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countriesExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ReferencesApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var country = country_example;  // String | 2-letter ISO 3166-1 country code
            var defaults = defaults_example;  // String | Number of records skipped. Defaults to 0
            var limit = limit_example;  // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

            try
            {
                inline_response_200_5 result = apiInstance.countries(apiecoKey, country, defaults, limit);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReferencesApi.countries: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ReferencesApi();
$apiecoKey = apiecoKey_example; // String | 
$country = country_example; // String | 2-letter ISO 3166-1 country code
$defaults = defaults_example; // String | Number of records skipped. Defaults to 0
$limit = limit_example; // String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

try {
    $result = $api_instance->countries($apiecoKey, $country, $defaults, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReferencesApi->countries: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReferencesApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ReferencesApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $country = country_example; # String | 2-letter ISO 3166-1 country code
my $defaults = defaults_example; # String | Number of records skipped. Defaults to 0
my $limit = limit_example; # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

eval { 
    my $result = $api_instance->countries(apiecoKey => $apiecoKey, country => $country, defaults => $defaults, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReferencesApi->countries: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ReferencesApi()
apiecoKey = apiecoKey_example # String | 
country = country_example # String | 2-letter ISO 3166-1 country code
defaults = defaults_example # String | Number of records skipped. Defaults to 0
limit = limit_example # String | Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)

try: 
    api_response = api_instance.countries(apiecoKey, country, defaults, limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReferencesApi->countries: %s\n" % e)

Parameters

Path parameters
Name Description
country*
String
2-letter ISO 3166-1 country code
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
Defaults*
String
Number of records skipped. Defaults to 0
Required
limit*
String
Number of records returned per request. Defaults to 20, maximum is 100 (if a value bigger than 100 is given, 100 will be taken)
Required

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 403 - Invalid input