Biljart API

Admins

clubsPost

Create a new club


/clubs

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"https://virtserver.swaggerhub.com/chemistry.software/biljart-api/1.0.0/clubs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

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

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        Club body = ; // Club | 
        try {
            Club result = apiInstance.clubsPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#clubsPost");
            e.printStackTrace();
        }
    }
}
Club *body = ; // 

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

// Create a new club
[apiInstance clubsPostWith:body
              completionHandler: ^(Club output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BiljartApi = require('biljart_api');

var api = new BiljartApi.AdminsApi()
var body = ; // {{Club}} 

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

namespace Example
{
    public class clubsPostExample
    {
        public void main()
        {

            var apiInstance = new AdminsApi();
            var body = new Club(); // Club | 

            try
            {
                // Create a new club
                Club result = apiInstance.clubsPost(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.clubsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAdminsApi();
$body = ; // Club | 

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

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $body = WWW::SwaggerClient::Object::Club->new(); # Club | 

eval { 
    my $result = $api_instance->clubsPost(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminsApi->clubsPost: $@\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.AdminsApi()
body =  # Club | 

try: 
    # Create a new club
    api_response = api_instance.clubs_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->clubsPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Successfully created


Players

clubsClubIdCompetitionsCompetitionIdGamesGet

Get all games of a competition


/clubs/{club_id}/competitions/{competition_id}/games

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/chemistry.software/biljart-api/1.0.0/clubs/{club_id}/competitions/{competition_id}/games"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayersApi;

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

public class PlayersApiExample {

    public static void main(String[] args) {
        
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club
        String competitionId = competitionId_example; // String | ID of the competition
        try {
            array[Game] result = apiInstance.clubsClubIdCompetitionsCompetitionIdGamesGet(clubId, competitionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdCompetitionsCompetitionIdGamesGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayersApi;

public class PlayersApiExample {

    public static void main(String[] args) {
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club
        String competitionId = competitionId_example; // String | ID of the competition
        try {
            array[Game] result = apiInstance.clubsClubIdCompetitionsCompetitionIdGamesGet(clubId, competitionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdCompetitionsCompetitionIdGamesGet");
            e.printStackTrace();
        }
    }
}
String *clubId = clubId_example; // ID of the club
String *competitionId = competitionId_example; // ID of the competition

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

// Get all games of a competition
[apiInstance clubsClubIdCompetitionsCompetitionIdGamesGetWith:clubId
    competitionId:competitionId
              completionHandler: ^(array[Game] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BiljartApi = require('biljart_api');

var api = new BiljartApi.PlayersApi()
var clubId = clubId_example; // {{String}} ID of the club
var competitionId = competitionId_example; // {{String}} ID of the competition

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

namespace Example
{
    public class clubsClubIdCompetitionsCompetitionIdGamesGetExample
    {
        public void main()
        {

            var apiInstance = new PlayersApi();
            var clubId = clubId_example;  // String | ID of the club
            var competitionId = competitionId_example;  // String | ID of the competition

            try
            {
                // Get all games of a competition
                array[Game] result = apiInstance.clubsClubIdCompetitionsCompetitionIdGamesGet(clubId, competitionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayersApi.clubsClubIdCompetitionsCompetitionIdGamesGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPlayersApi();
$clubId = clubId_example; // String | ID of the club
$competitionId = competitionId_example; // String | ID of the competition

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

my $api_instance = WWW::SwaggerClient::PlayersApi->new();
my $clubId = clubId_example; # String | ID of the club
my $competitionId = competitionId_example; # String | ID of the competition

eval { 
    my $result = $api_instance->clubsClubIdCompetitionsCompetitionIdGamesGet(clubId => $clubId, competitionId => $competitionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlayersApi->clubsClubIdCompetitionsCompetitionIdGamesGet: $@\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.PlayersApi()
clubId = clubId_example # String | ID of the club
competitionId = competitionId_example # String | ID of the competition

try: 
    # Get all games of a competition
    api_response = api_instance.clubs_club_id_competitions_competition_id_games_get(clubId, competitionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayersApi->clubsClubIdCompetitionsCompetitionIdGamesGet: %s\n" % e)

Parameters

Path parameters
Name Description
club_id*
String
ID of the club
Required
competition_id*
String
ID of the competition
Required

Responses

Status: 200 - A list of games

Status: 404 - Club or competition not found


clubsClubIdCompetitionsGet

Get all competitions of a club


/clubs/{club_id}/competitions

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/chemistry.software/biljart-api/1.0.0/clubs/{club_id}/competitions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayersApi;

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

public class PlayersApiExample {

    public static void main(String[] args) {
        
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club to retrieve competitions from
        try {
            array[Competition] result = apiInstance.clubsClubIdCompetitionsGet(clubId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdCompetitionsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayersApi;

public class PlayersApiExample {

    public static void main(String[] args) {
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club to retrieve competitions from
        try {
            array[Competition] result = apiInstance.clubsClubIdCompetitionsGet(clubId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdCompetitionsGet");
            e.printStackTrace();
        }
    }
}
String *clubId = clubId_example; // ID of the club to retrieve competitions from

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

// Get all competitions of a club
[apiInstance clubsClubIdCompetitionsGetWith:clubId
              completionHandler: ^(array[Competition] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BiljartApi = require('biljart_api');

var api = new BiljartApi.PlayersApi()
var clubId = clubId_example; // {{String}} ID of the club to retrieve competitions from

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

namespace Example
{
    public class clubsClubIdCompetitionsGetExample
    {
        public void main()
        {

            var apiInstance = new PlayersApi();
            var clubId = clubId_example;  // String | ID of the club to retrieve competitions from

            try
            {
                // Get all competitions of a club
                array[Competition] result = apiInstance.clubsClubIdCompetitionsGet(clubId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayersApi.clubsClubIdCompetitionsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPlayersApi();
$clubId = clubId_example; // String | ID of the club to retrieve competitions from

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

my $api_instance = WWW::SwaggerClient::PlayersApi->new();
my $clubId = clubId_example; # String | ID of the club to retrieve competitions from

eval { 
    my $result = $api_instance->clubsClubIdCompetitionsGet(clubId => $clubId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlayersApi->clubsClubIdCompetitionsGet: $@\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.PlayersApi()
clubId = clubId_example # String | ID of the club to retrieve competitions from

try: 
    # Get all competitions of a club
    api_response = api_instance.clubs_club_id_competitions_get(clubId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayersApi->clubsClubIdCompetitionsGet: %s\n" % e)

Parameters

Path parameters
Name Description
club_id*
String
ID of the club to retrieve competitions from
Required

Responses

Status: 200 - A list of competitions

Status: 404 - Club not found


clubsClubIdGet

Get a specific club by ID


/clubs/{club_id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/chemistry.software/biljart-api/1.0.0/clubs/{club_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayersApi;

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

public class PlayersApiExample {

    public static void main(String[] args) {
        
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club to retrieve
        try {
            Club result = apiInstance.clubsClubIdGet(clubId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayersApi;

public class PlayersApiExample {

    public static void main(String[] args) {
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club to retrieve
        try {
            Club result = apiInstance.clubsClubIdGet(clubId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdGet");
            e.printStackTrace();
        }
    }
}
String *clubId = clubId_example; // ID of the club to retrieve

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

// Get a specific club by ID
[apiInstance clubsClubIdGetWith:clubId
              completionHandler: ^(Club output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BiljartApi = require('biljart_api');

var api = new BiljartApi.PlayersApi()
var clubId = clubId_example; // {{String}} ID of the club to retrieve

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

namespace Example
{
    public class clubsClubIdGetExample
    {
        public void main()
        {

            var apiInstance = new PlayersApi();
            var clubId = clubId_example;  // String | ID of the club to retrieve

            try
            {
                // Get a specific club by ID
                Club result = apiInstance.clubsClubIdGet(clubId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayersApi.clubsClubIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPlayersApi();
$clubId = clubId_example; // String | ID of the club to retrieve

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

my $api_instance = WWW::SwaggerClient::PlayersApi->new();
my $clubId = clubId_example; # String | ID of the club to retrieve

eval { 
    my $result = $api_instance->clubsClubIdGet(clubId => $clubId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlayersApi->clubsClubIdGet: $@\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.PlayersApi()
clubId = clubId_example # String | ID of the club to retrieve

try: 
    # Get a specific club by ID
    api_response = api_instance.clubs_club_id_get(clubId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayersApi->clubsClubIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
club_id*
String
ID of the club to retrieve
Required

Responses

Status: 200 - A club object

Status: 404 - Club not found


clubsClubIdMembersGet

Get all members of a club


/clubs/{club_id}/members

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/chemistry.software/biljart-api/1.0.0/clubs/{club_id}/members"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayersApi;

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

public class PlayersApiExample {

    public static void main(String[] args) {
        
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club to retrieve members from
        try {
            array[Player] result = apiInstance.clubsClubIdMembersGet(clubId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdMembersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayersApi;

public class PlayersApiExample {

    public static void main(String[] args) {
        PlayersApi apiInstance = new PlayersApi();
        String clubId = clubId_example; // String | ID of the club to retrieve members from
        try {
            array[Player] result = apiInstance.clubsClubIdMembersGet(clubId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsClubIdMembersGet");
            e.printStackTrace();
        }
    }
}
String *clubId = clubId_example; // ID of the club to retrieve members from

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

// Get all members of a club
[apiInstance clubsClubIdMembersGetWith:clubId
              completionHandler: ^(array[Player] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BiljartApi = require('biljart_api');

var api = new BiljartApi.PlayersApi()
var clubId = clubId_example; // {{String}} ID of the club to retrieve members from

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

namespace Example
{
    public class clubsClubIdMembersGetExample
    {
        public void main()
        {

            var apiInstance = new PlayersApi();
            var clubId = clubId_example;  // String | ID of the club to retrieve members from

            try
            {
                // Get all members of a club
                array[Player] result = apiInstance.clubsClubIdMembersGet(clubId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayersApi.clubsClubIdMembersGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPlayersApi();
$clubId = clubId_example; // String | ID of the club to retrieve members from

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

my $api_instance = WWW::SwaggerClient::PlayersApi->new();
my $clubId = clubId_example; # String | ID of the club to retrieve members from

eval { 
    my $result = $api_instance->clubsClubIdMembersGet(clubId => $clubId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlayersApi->clubsClubIdMembersGet: $@\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.PlayersApi()
clubId = clubId_example # String | ID of the club to retrieve members from

try: 
    # Get all members of a club
    api_response = api_instance.clubs_club_id_members_get(clubId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayersApi->clubsClubIdMembersGet: %s\n" % e)

Parameters

Path parameters
Name Description
club_id*
String
ID of the club to retrieve members from
Required

Responses

Status: 200 - A list of club members

Status: 404 - Club not found


clubsGet

Get all clubs


/clubs

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/chemistry.software/biljart-api/1.0.0/clubs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayersApi;

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

public class PlayersApiExample {

    public static void main(String[] args) {
        
        PlayersApi apiInstance = new PlayersApi();
        try {
            array[Club] result = apiInstance.clubsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayersApi;

public class PlayersApiExample {

    public static void main(String[] args) {
        PlayersApi apiInstance = new PlayersApi();
        try {
            array[Club] result = apiInstance.clubsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#clubsGet");
            e.printStackTrace();
        }
    }
}

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

// Get all clubs
[apiInstance clubsGetWithCompletionHandler: 
              ^(array[Club] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BiljartApi = require('biljart_api');

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

namespace Example
{
    public class clubsGetExample
    {
        public void main()
        {

            var apiInstance = new PlayersApi();

            try
            {
                // Get all clubs
                array[Club] result = apiInstance.clubsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayersApi.clubsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPlayersApi();

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

my $api_instance = WWW::SwaggerClient::PlayersApi->new();

eval { 
    my $result = $api_instance->clubsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlayersApi->clubsGet: $@\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.PlayersApi()

try: 
    # Get all clubs
    api_response = api_instance.clubs_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayersApi->clubsGet: %s\n" % e)

Parameters

Responses

Status: 200 - A list of clubs


gamesGameIdGet

Get a specific game by ID


/games/{game_id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/chemistry.software/biljart-api/1.0.0/games/{game_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlayersApi;

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

public class PlayersApiExample {

    public static void main(String[] args) {
        
        PlayersApi apiInstance = new PlayersApi();
        String gameId = gameId_example; // String | ID of the game to retrieve
        try {
            Game result = apiInstance.gamesGameIdGet(gameId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#gamesGameIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlayersApi;

public class PlayersApiExample {

    public static void main(String[] args) {
        PlayersApi apiInstance = new PlayersApi();
        String gameId = gameId_example; // String | ID of the game to retrieve
        try {
            Game result = apiInstance.gamesGameIdGet(gameId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlayersApi#gamesGameIdGet");
            e.printStackTrace();
        }
    }
}
String *gameId = gameId_example; // ID of the game to retrieve

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

// Get a specific game by ID
[apiInstance gamesGameIdGetWith:gameId
              completionHandler: ^(Game output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BiljartApi = require('biljart_api');

var api = new BiljartApi.PlayersApi()
var gameId = gameId_example; // {{String}} ID of the game to retrieve

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

namespace Example
{
    public class gamesGameIdGetExample
    {
        public void main()
        {

            var apiInstance = new PlayersApi();
            var gameId = gameId_example;  // String | ID of the game to retrieve

            try
            {
                // Get a specific game by ID
                Game result = apiInstance.gamesGameIdGet(gameId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlayersApi.gamesGameIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPlayersApi();
$gameId = gameId_example; // String | ID of the game to retrieve

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

my $api_instance = WWW::SwaggerClient::PlayersApi->new();
my $gameId = gameId_example; # String | ID of the game to retrieve

eval { 
    my $result = $api_instance->gamesGameIdGet(gameId => $gameId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlayersApi->gamesGameIdGet: $@\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.PlayersApi()
gameId = gameId_example # String | ID of the game to retrieve

try: 
    # Get a specific game by ID
    api_response = api_instance.games_game_id_get(gameId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlayersApi->gamesGameIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
game_id*
String
ID of the game to retrieve
Required

Responses

Status: 200 - A game object

Status: 404 - Game not found