NAME
WWW::Cloutree - Perl interface to Cloutree CDN
SYNOPSIS
Use this module for uploading files to https://cloutr.ee/
use WWW::Cloutree;
# Create a WWW::Cloutree instance
my $cloutree = WWW::Cloutree->instance( { app_key => $opts{key}, app_secret => $opts{secret}, raw => 1 } );
# Upload file and say raw server response (JSON)
say $cloutree->upload_file({ file => $opts{file}, filename => $filename });
METHODS
upload_file
Upload file to CDN
parameters
filename - filename,
file - file handler,
instance
Create a WWW::Cloutree singleton instance.
my $cloutree = WWW::Cloutree->instance( { app_key => 'KEY', app_secret => 'SECRET' } );
parameters (* - mandatory)
*app_key - API key,
*app_secret - API secret,
raw - Option: return raw text from server (do not decode JSON),
url - URL of cloutree upload service (default https://cloutr.ee/upload)
ua - User Agent module (default LWP::UserAgent)
json - JSON module (default JSON)
AUTHOR
Alexander Babenko (foxcool@cpan.org)
SUPPORT
Github: https://github.com/Foxcool/Cloutree-Upload
Bugs & Issues: https://github.com/Foxcool/Cloutree-perl/issues