UserAgent
NAME
WebService::TMDB::Facade::UserAgent - A user agent facade
SYNOPSIS
use WebService::TMDB::Facade::UserAgent;
my $ua = WebService::TMDB::Facade::UserAgent.new;
my $movie_json = $ua.get: 'https://api.themoviedb.org/3/movie/550', :Authorization<Bearer 1234>;
DESCRIPTION
A user agent facade.
METHODS
ERRORS
HTTP::UserAgent
module is used with exception throwing enabled.
So exceptions will be thrown in case of non-existent resources, out of range values, etc.
See http://modules.perl6.org/dist/HTTP::UserAgent.
When an exception of type X::HTTP::Response
is caught, and the response received from themoviedb.org
contains an error message, an attribute named tmdb_status_message
or tmdb_errors
will be added
to the exception containing that error message.
COPYRIGHT AND LICENSE
Copyright Ā© 2020 Siavash Askari Nasr
This file is part of WebService::TMDB.
WebService::TMDB 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.
WebService::TMDB 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 WebService::TMDB. If not, see <http://www.gnu.org/licenses/>.