Football-Data API

Area

areaListResource

Area List Resource

List all available areas.


/areas

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/areas"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AreaApi;

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

public class AreaApiExample {

    public static void main(String[] args) {
        
        AreaApi apiInstance = new AreaApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.areaListResource(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AreaApi#areaListResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AreaApi;

public class AreaApiExample {

    public static void main(String[] args) {
        AreaApi apiInstance = new AreaApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.areaListResource(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AreaApi#areaListResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

// Area List Resource
[apiInstance areaListResourceWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.AreaApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class areaListResourceExample
    {
        public void main()
        {
            
            var apiInstance = new AreaApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Area List Resource
                inline_response_200 result = apiInstance.areaListResource(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AreaApi.areaListResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AreaApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::AreaApi->new();
my $apiecoKey = apiecoKey_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.AreaApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Area List Resource
    api_response = api_instance.area_list_resource(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AreaApi->areaListResource: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


areaResource

Area Resourcee

List one particular area.


/areas/{id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/areas/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AreaApi;

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

public class AreaApiExample {

    public static void main(String[] args) {
        
        AreaApi apiInstance = new AreaApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_1 result = apiInstance.areaResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AreaApi#areaResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AreaApi;

public class AreaApiExample {

    public static void main(String[] args) {
        AreaApi apiInstance = new AreaApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_1 result = apiInstance.areaResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AreaApi#areaResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Area Resourcee
[apiInstance areaResourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.AreaApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class areaResourceExample
    {
        public void main()
        {
            
            var apiInstance = new AreaApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Area Resourcee
                inline_response_200_1 result = apiInstance.areaResource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AreaApi.areaResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AreaApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::AreaApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.AreaApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Area Resourcee
    api_response = api_instance.area_resource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AreaApi->areaResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


Competition

competitionListResource

Competition List Resource

List all available competitions.


/competitions

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/competitions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompetitionApi;

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

public class CompetitionApiExample {

    public static void main(String[] args) {
        
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.competitionListResource(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionListResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompetitionApi;

public class CompetitionApiExample {

    public static void main(String[] args) {
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.competitionListResource(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionListResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

// Competition List Resource
[apiInstance competitionListResourceWith:apiecoKey
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.CompetitionApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class competitionListResourceExample
    {
        public void main()
        {
            
            var apiInstance = new CompetitionApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Competition List Resource
                inline_response_200_2 result = apiInstance.competitionListResource(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompetitionApi.competitionListResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CompetitionApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CompetitionApi->new();
my $apiecoKey = apiecoKey_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.CompetitionApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Competition List Resource
    api_response = api_instance.competition_list_resource(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompetitionApi->competitionListResource: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


competitionMatchSubResource

Competition / Match SubResource

List all matches for a particular competition.


/competitions/{id}/matches

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/competitions/{id}/matches"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompetitionApi;

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

public class CompetitionApiExample {

    public static void main(String[] args) {
        
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_4 result = apiInstance.competitionMatchSubResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionMatchSubResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompetitionApi;

public class CompetitionApiExample {

    public static void main(String[] args) {
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_4 result = apiInstance.competitionMatchSubResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionMatchSubResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Competition / Match SubResource
[apiInstance competitionMatchSubResourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.CompetitionApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class competitionMatchSubResourceExample
    {
        public void main()
        {
            
            var apiInstance = new CompetitionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Competition / Match SubResource
                inline_response_200_4 result = apiInstance.competitionMatchSubResource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompetitionApi.competitionMatchSubResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CompetitionApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::CompetitionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.CompetitionApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Competition / Match SubResource
    api_response = api_instance.competition_match_sub_resource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompetitionApi->competitionMatchSubResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


competitionResource

Competition Resource

List one particular competition.


/competitions/{id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/competitions/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompetitionApi;

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

public class CompetitionApiExample {

    public static void main(String[] args) {
        
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_3 result = apiInstance.competitionResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompetitionApi;

public class CompetitionApiExample {

    public static void main(String[] args) {
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_3 result = apiInstance.competitionResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Competition Resource
[apiInstance competitionResourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.CompetitionApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class competitionResourceExample
    {
        public void main()
        {
            
            var apiInstance = new CompetitionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Competition Resource
                inline_response_200_3 result = apiInstance.competitionResource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompetitionApi.competitionResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CompetitionApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::CompetitionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.CompetitionApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Competition Resource
    api_response = api_instance.competition_resource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompetitionApi->competitionResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


competitionStandings

Competition / Standings

Show Standings for a particular competition.


/competitions/{id}/standings

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/competitions/{id}/standings?standingType="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompetitionApi;

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

public class CompetitionApiExample {

    public static void main(String[] args) {
        
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        String standingType = standingType_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.competitionStandings(apiecoKey, id, standingType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionStandings");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompetitionApi;

public class CompetitionApiExample {

    public static void main(String[] args) {
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        String standingType = standingType_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.competitionStandings(apiecoKey, id, standingType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionStandings");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 
String *standingType = standingType_example; //  (optional) (default to HOME)

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

// Competition / Standings
[apiInstance competitionStandingsWith:apiecoKey
    id:id
    standingType:standingType
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.CompetitionApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 

var opts = { 
  'standingType': standingType_example // {String} 
};

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

namespace Example
{
    public class competitionStandingsExample
    {
        public void main()
        {
            
            var apiInstance = new CompetitionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 
            var standingType = standingType_example;  // String |  (optional)  (default to HOME)

            try
            {
                // Competition / Standings
                inline_response_200_6 result = apiInstance.competitionStandings(apiecoKey, id, standingType);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompetitionApi.competitionStandings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CompetitionApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 
$standingType = standingType_example; // String | 

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

my $api_instance = WWW::SwaggerClient::CompetitionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 
my $standingType = standingType_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.CompetitionApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 
standingType = standingType_example # String |  (optional) (default to HOME)

try: 
    # Competition / Standings
    api_response = api_instance.competition_standings(apiecoKey, id, standingType=standingType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompetitionApi->competitionStandings: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
standingType
String

Responses

Status: 200 - Successful


competitionTeamSubresource

Competition / Team SubResource

List all teams for a particular competition.


/competitions/{id}/teams

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/competitions/{id}/teams"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompetitionApi;

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

public class CompetitionApiExample {

    public static void main(String[] args) {
        
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_5 result = apiInstance.competitionTeamSubresource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionTeamSubresource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CompetitionApi;

public class CompetitionApiExample {

    public static void main(String[] args) {
        CompetitionApi apiInstance = new CompetitionApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_5 result = apiInstance.competitionTeamSubresource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CompetitionApi#competitionTeamSubresource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Competition / Team SubResource
[apiInstance competitionTeamSubresourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.CompetitionApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class competitionTeamSubresourceExample
    {
        public void main()
        {
            
            var apiInstance = new CompetitionApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Competition / Team SubResource
                inline_response_200_5 result = apiInstance.competitionTeamSubresource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CompetitionApi.competitionTeamSubresource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CompetitionApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::CompetitionApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.CompetitionApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Competition / Team SubResource
    api_response = api_instance.competition_team_subresource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CompetitionApi->competitionTeamSubresource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


Match

matchListResource

Match List Resource

List matches across (a set of) competitions.


/matches

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/matches"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MatchApi;

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

public class MatchApiExample {

    public static void main(String[] args) {
        
        MatchApi apiInstance = new MatchApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.matchListResource(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatchApi#matchListResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MatchApi;

public class MatchApiExample {

    public static void main(String[] args) {
        MatchApi apiInstance = new MatchApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200_8 result = apiInstance.matchListResource(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatchApi#matchListResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

// Match List Resource
[apiInstance matchListResourceWith:apiecoKey
              completionHandler: ^(inline_response_200_8 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.MatchApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class matchListResourceExample
    {
        public void main()
        {
            
            var apiInstance = new MatchApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Match List Resource
                inline_response_200_8 result = apiInstance.matchListResource(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MatchApi.matchListResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MatchApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::MatchApi->new();
my $apiecoKey = apiecoKey_example; # String | 

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

# create an instance of the API class
api_instance = swagger_client.MatchApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Match List Resource
    api_response = api_instance.match_list_resource(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MatchApi->matchListResource: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


matchResource

Match Resource

Show one particular Match.


/matches/{id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/matches/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MatchApi;

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

public class MatchApiExample {

    public static void main(String[] args) {
        
        MatchApi apiInstance = new MatchApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_7 result = apiInstance.matchResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatchApi#matchResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MatchApi;

public class MatchApiExample {

    public static void main(String[] args) {
        MatchApi apiInstance = new MatchApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_7 result = apiInstance.matchResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MatchApi#matchResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Match Resource
[apiInstance matchResourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.MatchApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class matchResourceExample
    {
        public void main()
        {
            
            var apiInstance = new MatchApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Match Resource
                inline_response_200_7 result = apiInstance.matchResource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MatchApi.matchResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MatchApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::MatchApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.MatchApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Match Resource
    api_response = api_instance.match_resource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MatchApi->matchResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


Player

playerMatchesSubesource

Player / Matches Subesource

Show all matches for a particular player.


/players/{id}/matches

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/players/{id}/matches"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayerApi;

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

public class PlayerApiExample {

    public static void main(String[] args) {
        
        PlayerApi apiInstance = new PlayerApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_10 result = apiInstance.playerMatchesSubesource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayerApi#playerMatchesSubesource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayerApi;

public class PlayerApiExample {

    public static void main(String[] args) {
        PlayerApi apiInstance = new PlayerApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_10 result = apiInstance.playerMatchesSubesource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayerApi#playerMatchesSubesource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Player / Matches Subesource
[apiInstance playerMatchesSubesourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_10 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.PlayerApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class playerMatchesSubesourceExample
    {
        public void main()
        {
            
            var apiInstance = new PlayerApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Player / Matches Subesource
                inline_response_200_10 result = apiInstance.playerMatchesSubesource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayerApi.playerMatchesSubesource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PlayerApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::PlayerApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.PlayerApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Player / Matches Subesource
    api_response = api_instance.player_matches_subesource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayerApi->playerMatchesSubesource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


playerResource

Player Resource

Show one particular Player.


/players/{id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/players/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayerApi;

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

public class PlayerApiExample {

    public static void main(String[] args) {
        
        PlayerApi apiInstance = new PlayerApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_9 result = apiInstance.playerResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayerApi#playerResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayerApi;

public class PlayerApiExample {

    public static void main(String[] args) {
        PlayerApi apiInstance = new PlayerApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_9 result = apiInstance.playerResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayerApi#playerResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Player Resource
[apiInstance playerResourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_9 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.PlayerApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class playerResourceExample
    {
        public void main()
        {
            
            var apiInstance = new PlayerApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Player Resource
                inline_response_200_9 result = apiInstance.playerResource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayerApi.playerResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PlayerApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::PlayerApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.PlayerApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Player Resource
    api_response = api_instance.player_resource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayerApi->playerResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


Team

teamMatchSubresource

Team / Match Subresource

Show all matches for a particular team.


/teams/{id}/matches

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/teams/{id}/matches"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TeamApi;

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

public class TeamApiExample {

    public static void main(String[] args) {
        
        TeamApi apiInstance = new TeamApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_4 result = apiInstance.teamMatchSubresource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamApi#teamMatchSubresource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TeamApi;

public class TeamApiExample {

    public static void main(String[] args) {
        TeamApi apiInstance = new TeamApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_4 result = apiInstance.teamMatchSubresource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamApi#teamMatchSubresource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Team / Match Subresource
[apiInstance teamMatchSubresourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.TeamApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class teamMatchSubresourceExample
    {
        public void main()
        {
            
            var apiInstance = new TeamApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Team / Match Subresource
                inline_response_200_4 result = apiInstance.teamMatchSubresource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamApi.teamMatchSubresource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TeamApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::TeamApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.TeamApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Team / Match Subresource
    api_response = api_instance.team_match_subresource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TeamApi->teamMatchSubresource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


teamResource

Team Resource

Show one particular team.


/teams/{id}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/football-data/v2/teams/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TeamApi;

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

public class TeamApiExample {

    public static void main(String[] args) {
        
        TeamApi apiInstance = new TeamApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_7 result = apiInstance.teamResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamApi#teamResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TeamApi;

public class TeamApiExample {

    public static void main(String[] args) {
        TeamApi apiInstance = new TeamApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal id = 8.14; // BigDecimal | 
        try {
            inline_response_200_7 result = apiInstance.teamResource(apiecoKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamApi#teamResource");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *id = 8.14; // 

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

// Team Resource
[apiInstance teamResourceWith:apiecoKey
    id:id
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FootballDataApi = require('football_data_api');

var api = new FootballDataApi.TeamApi()

var apiecoKey = apiecoKey_example; // {String} 

var id = 8.14; // {BigDecimal} 


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

namespace Example
{
    public class teamResourceExample
    {
        public void main()
        {
            
            var apiInstance = new TeamApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var id = 8.14;  // BigDecimal | 

            try
            {
                // Team Resource
                inline_response_200_7 result = apiInstance.teamResource(apiecoKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamApi.teamResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TeamApi();
$apiecoKey = apiecoKey_example; // String | 
$id = 8.14; // BigDecimal | 

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

my $api_instance = WWW::SwaggerClient::TeamApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $id = 8.14; # BigDecimal | 

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

# create an instance of the API class
api_instance = swagger_client.TeamApi()
apiecoKey = apiecoKey_example # String | 
id = 8.14 # BigDecimal | 

try: 
    # Team Resource
    api_response = api_instance.team_resource(apiecoKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TeamApi->teamResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
BigDecimal
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful