competitions
Returns list of supported competitions included in your current subscription plan
/get_leagues
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/apifootball/get_leagues?APIkey=&country_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CompetitionsApi;
import java.io.File;
import java.util.*;
public class CompetitionsApiExample {
public static void main(String[] args) {
CompetitionsApi apiInstance = new CompetitionsApi();
String apiecoKey = apiecoKey_example; // String |
String aPIkey = aPIkey_example; // String | Don't Change This
BigDecimal countryId = 8.14; // BigDecimal | if set only leagues from specific country will be returned (Optional)
try {
array[inline_response_200_1] result = apiInstance.competitions(apiecoKey, aPIkey, countryId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CompetitionsApi#competitions");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CompetitionsApi;
public class CompetitionsApiExample {
public static void main(String[] args) {
CompetitionsApi apiInstance = new CompetitionsApi();
String apiecoKey = apiecoKey_example; // String |
String aPIkey = aPIkey_example; // String | Don't Change This
BigDecimal countryId = 8.14; // BigDecimal | if set only leagues from specific country will be returned (Optional)
try {
array[inline_response_200_1] result = apiInstance.competitions(apiecoKey, aPIkey, countryId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CompetitionsApi#competitions");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *aPIkey = aPIkey_example; // Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
BigDecimal *countryId = 8.14; // if set only leagues from specific country will be returned (Optional) (optional)
CompetitionsApi *apiInstance = [[CompetitionsApi alloc] init];
[apiInstance competitionsWith:apiecoKey
aPIkey:aPIkey
countryId:countryId
completionHandler: ^(array[inline_response_200_1] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApiFootball = require('api_football');
var api = new ApiFootball.CompetitionsApi()
var apiecoKey = apiecoKey_example; // {String}
var aPIkey = aPIkey_example; // {String} Don't Change This
var opts = {
'countryId': 8.14 // {BigDecimal} if set only leagues from specific country will be returned (Optional)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.competitions(apiecoKey, aPIkey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class competitionsExample
{
public void main()
{
var apiInstance = new CompetitionsApi();
var apiecoKey = apiecoKey_example; // String |
var aPIkey = aPIkey_example; // String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
var countryId = 8.14; // BigDecimal | if set only leagues from specific country will be returned (Optional) (optional)
try
{
array[inline_response_200_1] result = apiInstance.competitions(apiecoKey, aPIkey, countryId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CompetitionsApi.competitions: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CompetitionsApi();
$apiecoKey = apiecoKey_example; // String |
$aPIkey = aPIkey_example; // String | Don't Change This
$countryId = 8.14; // BigDecimal | if set only leagues from specific country will be returned (Optional)
try {
$result = $api_instance->competitions($apiecoKey, $aPIkey, $countryId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CompetitionsApi->competitions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CompetitionsApi;
my $api_instance = WWW::SwaggerClient::CompetitionsApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $aPIkey = aPIkey_example; # String | Don't Change This
my $countryId = 8.14; # BigDecimal | if set only leagues from specific country will be returned (Optional)
eval {
my $result = $api_instance->competitions(apiecoKey => $apiecoKey, aPIkey => $aPIkey, countryId => $countryId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CompetitionsApi->competitions: $@\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.CompetitionsApi()
apiecoKey = apiecoKey_example # String |
aPIkey = aPIkey_example # String | Don't Change This (default to dfb179c06018cc9269d2feb9f89a5a6fe106779d178d1a38ec6c377d46d8ada5)
countryId = 8.14 # BigDecimal | if set only leagues from specific country will be returned (Optional) (optional)
try:
api_response = api_instance.competitions(apiecoKey, aPIkey, countryId=countryId)
pprint(api_response)
except ApiException as e:
print("Exception when calling CompetitionsApi->competitions: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Name | Description |
---|---|
APIkey* |
String
Don't Change This
Required
|
country_id |
BigDecimal
if set only leagues from specific country will be returned (Optional)
|