APISports::Football - An interface to API-Football.
NAME
APISports::Football - An interface to API-Football.
SYNOPSIS
use APISports::Football:auth<zef:CIAvash>;
my $f = APISports::Football.new: :api_key<1234>;
my @competitions = $f.competitions: name => 'premier league', :current, type => LeagueType::League, :country<england>;
INSTALLATION
You need to have Raku and zef, then run:
zef install "APISports::Football:auth<zef:CIAvash>"
or if you have cloned the repo:
zef install .
TESTING
prove -ve 'raku -I.' --ext rakutest
or
prove6 -I. -v
ATTRIBUTES
METHODS
ERRORS
If a response contains errors, a
Failure
of typeX::APISports::Football::APIError
is returned.If HTTP errors occur,
Failure
of typeX::APISports::Football::HTTPError
is returned.
AUTHOR
Siavash Askari Nasr https://www.ciavash.name
COPYRIGHT
Copyright Ā© 2022 Siavash Askari Nasr
LICENSE
This file is part of APISports::Football.
APISports::Football is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
APISports::Football is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with APISports::Football. If not, see <http://www.gnu.org/licenses/>.