WWW::Xunlei - Perl API For Official Xunlei Remote API.
version 0.2
use WWW::Xunlei; my $client = WWW::Xunlei->new("username", "password"); # use the first downloader; my $downloader = $client->get_downloaders()->[0]; # create a remote task; $downloader->create_task("http://www.cpan.org/src/5.0/perl-5.22.0.tar.gz");
WWW::Xunlei is a Perl Wrapper of Xunlei Remote Downloader API. Official Site of Xunlei Remote
WWW::Xunlei
create a Xunlei client. Load or save Cookies to a plain text file with cookie_file option. The default session expire time is 7 days.
cookie_file
Bind a new downloader with a activation code. The new downloader's name can be defined with the optional argument $name.
$name
List all the downloaders binding with your account. Return a list of WWW::Xunlei::Downloader object.
WWW::Xunlei::Downloader
Get the downloader of which the name is $name. Return a WWW::Xunlei::Downloader object.
Zhu Sheng Li <zshengli@cpan.org>
This software is Copyright (c) 2015 by Zhu Sheng Li.
This is free software, licensed under:
The MIT (X11) License
To install WWW::Xunlei, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Xunlei
CPAN shell
perl -MCPAN -e shell install WWW::Xunlei
For more information on module installation, please visit the detailed CPAN module installation guide.