Marcus Ramberg > WebService-PutIo-0.3 > WebService::PutIo::Files

Download:
WebService-PutIo-0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

WebService::PutIo::Files - File Operations for put.io

SYNOPSIS ^

    use WebService::PutIo::Files;
        my $files=WebService::PutIo::Files->new(api_key=>'..',api_secret=>'..');
        my $res=$files->list;
        foreach my $file (@{$res->results}) {
           print "Got ". Data::Dumper($file);
        }

DESCRIPTION ^

File related methods for the put.io web service

METHODS ^

list

Returns the list of items in a folder.

id = STRING or INTEGER
parent_id = STRING or INTEGER
offset = INTEGER (Default:0)
limit = INTEGER (Default: 20)
type = STRING (See Item class for available types)
orderby = STRING (Default: createdat_desc)

Orderby parameters:

id_asc
id_desc
type_asc
type_desc
name_asc
name_desc
extension_asc
extension_desc
createdat_asc

item= createdat_desc (Default)

create_dir

Creates and returns a new folder.

Parameters:

name
parent_id

info

Returns detailed information about an item.

Parameters:

id

rename

Renames and returns an item

Parameters:

id
name

move

Moves an item from a folder to another, and returns it.

Parameters:

id
parent_id

delete

Deletes an item

Parameters:

id

search

Returns list of found items

Parameters:

query

dirmap

Returns a flat list of directory list. Parent_id is the id of a folder the item is in.

COPYRIGHT AND LICENSE ^

Copyright (C) 2010, Marcus Ramberg.

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.

syntax highlighting: