Pootle::Agent
LWP::Curl wrapper to deal with various types of exceptions transparently
_authorization
@RETURNS HTTP Basic authorization header content, eg. 'Basic QWxhZGRpbjpPcGVuU2VzYW1l'
request
Make requests and deal with logging and error handling
@RETURNS List of 0 - HTTP::Response
1 - HASHRef of response JSON payload
@THROWS Pootle::Exception::HTTP::MethodNotAllowed endpoint doesn't support the given method
@THROWS Pootle::Exception::HTTP::NotFound endpoint not found?
_getContent
@RETURNS HASHRef, Content's JSON payload decoded to Perl's internal UTF-8 representation
baseUrl
@RETURNS String, the full url of the Pootle server we are interfacing with, eg. https://translate.koha-community.org
credentials
@RETURNS String, username:password
ua
@RETURNS L<LWP::UserAgent>