Giter Club home page Giter Club logo

www-xunlei's Introduction

NAME

WWW::Xunlei - Perl API For Official Xunlei Remote API.

VERSION

version 0.2

SYNOPSIS

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");

DESCRIPTION

WWW::Xunlei is a Perl Wrapper of Xunlei Remote Downloader API. Official Site of Xunlei Remote

METHODS

new( $username, $password, [cookie_file=>'/path/to/cookie'])

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.

bind($key, [$name])

Bind a new downloader with a activation code. The new downloader's name can be defined with the optional argument $name.

get_downloaders

List all the downloaders binding with your account. Return a list of WWW::Xunlei::Downloader object.

get_downloader($name)

Get the downloader of which the name is $name. Return a WWW::Xunlei::Downloader object.

AUTHOR

Zhu Sheng Li <[email protected]>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Zhu Sheng Li.

This is free software, licensed under:

The MIT (X11) License

www-xunlei's People

Contributors

digglife avatar

Watchers

 avatar

www-xunlei's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.