FIFA World Cup

Games

getGames

List of Games


/games

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/montanaflynn-fifaworldcup/games"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GamesApi;

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

public class GamesApiExample {

    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");

        GamesApi apiInstance = new GamesApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            game result = apiInstance.getGames(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamesApi#getGames");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GamesApi;

public class GamesApiExample {

    public static void main(String[] args) {
        GamesApi apiInstance = new GamesApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            game result = apiInstance.getGames(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GamesApi#getGames");
            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"];

BigDecimal *apiecoKey = 8.14; // 
String *accepts = accepts_example; // What content type to return (json, xml, csv, yaml) (optional)

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

//  List of Games

[apiInstance getGamesWith:apiecoKey
    accepts:accepts
              completionHandler: ^(game output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FifaWorldCup_ = require('fifa_world_cup_');
var defaultClient = FifaWorldCup_.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 FifaWorldCup_.GamesApi()

var apiecoKey = 8.14; // {BigDecimal} 

var opts = { 
  'accepts': accepts_example // {String} What content type to return (json, xml, csv, yaml)
};

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

namespace Example
{
    public class getGamesExample
    {
        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 GamesApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var accepts = accepts_example;  // String | What content type to return (json, xml, csv, yaml) (optional) 

            try
            {
                //  List of Games

                game result = apiInstance.getGames(apiecoKey, accepts);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GamesApi.getGames: " + 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\GamesApi();
$apiecoKey = 8.14; // BigDecimal | 
$accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)

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

# 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::GamesApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $accepts = accepts_example; # String | What content type to return (json, xml, csv, yaml)

eval { 
    my $result = $api_instance->getGames(apiecoKey => $apiecoKey, accepts => $accepts);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GamesApi->getGames: $@\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.GamesApi()
apiecoKey = 8.14 # BigDecimal | 
accepts = accepts_example # String | What content type to return (json, xml, csv, yaml) (optional)

try: 
    #  List of Games

    api_response = api_instance.get_games(apiecoKey, accepts=accepts)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GamesApi->getGames: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
BigDecimal
Required
accepts
String
What content type to return (json, xml, csv, yaml)

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Goals

getGoals

List of Goals Scored.


/goals

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/montanaflynn-fifaworldcup/goals"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GoalsApi;

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

public class GoalsApiExample {

    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");

        GoalsApi apiInstance = new GoalsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            goals result = apiInstance.getGoals(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoalsApi#getGoals");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GoalsApi;

public class GoalsApiExample {

    public static void main(String[] args) {
        GoalsApi apiInstance = new GoalsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            goals result = apiInstance.getGoals(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoalsApi#getGoals");
            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"];

BigDecimal *apiecoKey = 8.14; // 
String *accepts = accepts_example; // What content type to return (json, xml, csv, yaml) (optional)

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

//  List of Goals Scored.



[apiInstance getGoalsWith:apiecoKey
    accepts:accepts
              completionHandler: ^(goals output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FifaWorldCup_ = require('fifa_world_cup_');
var defaultClient = FifaWorldCup_.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 FifaWorldCup_.GoalsApi()

var apiecoKey = 8.14; // {BigDecimal} 

var opts = { 
  'accepts': accepts_example // {String} What content type to return (json, xml, csv, yaml)
};

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

namespace Example
{
    public class getGoalsExample
    {
        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 GoalsApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var accepts = accepts_example;  // String | What content type to return (json, xml, csv, yaml) (optional) 

            try
            {
                //  List of Goals Scored.



                goals result = apiInstance.getGoals(apiecoKey, accepts);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GoalsApi.getGoals: " + 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\GoalsApi();
$apiecoKey = 8.14; // BigDecimal | 
$accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)

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

# 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::GoalsApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $accepts = accepts_example; # String | What content type to return (json, xml, csv, yaml)

eval { 
    my $result = $api_instance->getGoals(apiecoKey => $apiecoKey, accepts => $accepts);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoalsApi->getGoals: $@\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.GoalsApi()
apiecoKey = 8.14 # BigDecimal | 
accepts = accepts_example # String | What content type to return (json, xml, csv, yaml) (optional)

try: 
    #  List of Goals Scored.



    api_response = api_instance.get_goals(apiecoKey, accepts=accepts)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoalsApi->getGoals: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
BigDecimal
Required
accepts
String
What content type to return (json, xml, csv, yaml)

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Persons

getPersons

List of players who scored at least one goal.


/persons

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/montanaflynn-fifaworldcup/persons"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PersonsApi;

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

public class PersonsApiExample {

    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");

        PersonsApi apiInstance = new PersonsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            person result = apiInstance.getPersons(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PersonsApi#getPersons");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PersonsApi;

public class PersonsApiExample {

    public static void main(String[] args) {
        PersonsApi apiInstance = new PersonsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            person result = apiInstance.getPersons(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PersonsApi#getPersons");
            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"];

BigDecimal *apiecoKey = 8.14; // 
String *accepts = accepts_example; // What content type to return (json, xml, csv, yaml) (optional)

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

//  List of players who scored at least one goal.



[apiInstance getPersonsWith:apiecoKey
    accepts:accepts
              completionHandler: ^(person output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FifaWorldCup_ = require('fifa_world_cup_');
var defaultClient = FifaWorldCup_.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 FifaWorldCup_.PersonsApi()

var apiecoKey = 8.14; // {BigDecimal} 

var opts = { 
  'accepts': accepts_example // {String} What content type to return (json, xml, csv, yaml)
};

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

namespace Example
{
    public class getPersonsExample
    {
        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 PersonsApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var accepts = accepts_example;  // String | What content type to return (json, xml, csv, yaml) (optional) 

            try
            {
                //  List of players who scored at least one goal.



                person result = apiInstance.getPersons(apiecoKey, accepts);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PersonsApi.getPersons: " + 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\PersonsApi();
$apiecoKey = 8.14; // BigDecimal | 
$accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)

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

# 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::PersonsApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $accepts = accepts_example; # String | What content type to return (json, xml, csv, yaml)

eval { 
    my $result = $api_instance->getPersons(apiecoKey => $apiecoKey, accepts => $accepts);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PersonsApi->getPersons: $@\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.PersonsApi()
apiecoKey = 8.14 # BigDecimal | 
accepts = accepts_example # String | What content type to return (json, xml, csv, yaml) (optional)

try: 
    #  List of players who scored at least one goal.



    api_response = api_instance.get_persons(apiecoKey, accepts=accepts)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PersonsApi->getPersons: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
BigDecimal
Required
accepts
String
What content type to return (json, xml, csv, yaml)

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Rounds

getRounds

List of rounds


/rounds

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/montanaflynn-fifaworldcup/rounds"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoundsApi;

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

public class RoundsApiExample {

    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");

        RoundsApi apiInstance = new RoundsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            round result = apiInstance.getRounds(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoundsApi#getRounds");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoundsApi;

public class RoundsApiExample {

    public static void main(String[] args) {
        RoundsApi apiInstance = new RoundsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            round result = apiInstance.getRounds(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoundsApi#getRounds");
            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"];

BigDecimal *apiecoKey = 8.14; // 
String *accepts = accepts_example; // What content type to return (json, xml, csv, yaml) (optional)

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

//  List of rounds

[apiInstance getRoundsWith:apiecoKey
    accepts:accepts
              completionHandler: ^(round output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FifaWorldCup_ = require('fifa_world_cup_');
var defaultClient = FifaWorldCup_.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 FifaWorldCup_.RoundsApi()

var apiecoKey = 8.14; // {BigDecimal} 

var opts = { 
  'accepts': accepts_example // {String} What content type to return (json, xml, csv, yaml)
};

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

namespace Example
{
    public class getRoundsExample
    {
        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 RoundsApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var accepts = accepts_example;  // String | What content type to return (json, xml, csv, yaml) (optional) 

            try
            {
                //  List of rounds

                round result = apiInstance.getRounds(apiecoKey, accepts);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoundsApi.getRounds: " + 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\RoundsApi();
$apiecoKey = 8.14; // BigDecimal | 
$accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)

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

# 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::RoundsApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $accepts = accepts_example; # String | What content type to return (json, xml, csv, yaml)

eval { 
    my $result = $api_instance->getRounds(apiecoKey => $apiecoKey, accepts => $accepts);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoundsApi->getRounds: $@\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.RoundsApi()
apiecoKey = 8.14 # BigDecimal | 
accepts = accepts_example # String | What content type to return (json, xml, csv, yaml) (optional)

try: 
    #  List of rounds

    api_response = api_instance.get_rounds(apiecoKey, accepts=accepts)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoundsApi->getRounds: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
BigDecimal
Required
accepts
String
What content type to return (json, xml, csv, yaml)

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input


Teams

getTeams

List of teams that played.


/teams

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/montanaflynn-fifaworldcup/teams"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TeamsApi;

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

public class TeamsApiExample {

    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");

        TeamsApi apiInstance = new TeamsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            team result = apiInstance.getTeams(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamsApi#getTeams");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TeamsApi;

public class TeamsApiExample {

    public static void main(String[] args) {
        TeamsApi apiInstance = new TeamsApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)
        try {
            team result = apiInstance.getTeams(apiecoKey, accepts);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TeamsApi#getTeams");
            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"];

BigDecimal *apiecoKey = 8.14; //  (optional)
String *accepts = accepts_example; // What content type to return (json, xml, csv, yaml) (optional)

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

//  List of teams that played.

[apiInstance getTeamsWith:apiecoKey
    accepts:accepts
              completionHandler: ^(team output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FifaWorldCup_ = require('fifa_world_cup_');
var defaultClient = FifaWorldCup_.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 FifaWorldCup_.TeamsApi()

var opts = { 
  'apiecoKey': 8.14, // {BigDecimal} 
  'accepts': accepts_example // {String} What content type to return (json, xml, csv, yaml)
};

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

namespace Example
{
    public class getTeamsExample
    {
        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 TeamsApi();
            var apiecoKey = 8.14;  // BigDecimal |  (optional) 
            var accepts = accepts_example;  // String | What content type to return (json, xml, csv, yaml) (optional) 

            try
            {
                //  List of teams that played.

                team result = apiInstance.getTeams(apiecoKey, accepts);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TeamsApi.getTeams: " + 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\TeamsApi();
$apiecoKey = 8.14; // BigDecimal | 
$accepts = accepts_example; // String | What content type to return (json, xml, csv, yaml)

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

# 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::TeamsApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $accepts = accepts_example; # String | What content type to return (json, xml, csv, yaml)

eval { 
    my $result = $api_instance->getTeams(apiecoKey => $apiecoKey, accepts => $accepts);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TeamsApi->getTeams: $@\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.TeamsApi()
apiecoKey = 8.14 # BigDecimal |  (optional)
accepts = accepts_example # String | What content type to return (json, xml, csv, yaml) (optional)

try: 
    #  List of teams that played.

    api_response = api_instance.get_teams(apiecoKey=apiecoKey, accepts=accepts)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TeamsApi->getTeams: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key
BigDecimal
accepts
String
What content type to return (json, xml, csv, yaml)

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input