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
Name | Description |
---|---|
apieco-key* |
String
Required
|