APISports::Football::HTTPClient - Class for making HTTP requests to api-football.com
NAME
APISports::Football::HTTPClient - Class for making HTTP requests to api-football.com
SYNOPSIS
use APISports::Football::HTTPClient;
my $request = APISports::Football::HTTPClient.new:
api_key => '12345',
base_url => 'https://v3.football.api-sports.io/';
my @clubs = $request.get: Endpoints::Clubs, params => name => 'manchester city';
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.
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/>.