WWW::PAUSE::Simple - An API for PAUSE
This document describes version 0.03 of WWW::PAUSE::Simple (from Perl distribution WWW-PAUSE-Simple), released on 2015-02-19.
STATUS: Experimental.
This module provides several API functions for performing common tasks on PAUSE. It comes with a CLI script pause.
Delete files.
When a file is deleted, it is not immediately deleted but has scheduled_for_deletion status for 72 hours, then deleted. During that time, the file can be undeleted.
Arguments ('*' denotes required arguments):
all => bool
Apply to all files.
file => array[str]
File name.
password* => str
PAUSE password.
username* => str
PAUSE ID.
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (result) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
List files on your PAUSE account.
del => bool
Only list files which are scheduled for deletion.
detail => bool
Whether to return detailed records.
query => array[str]
Filter result by keywords/string.
Force reindexing.
Undelete files.
Upload a file to your PAUSE account.
file* => str
Path to file to upload.
subdir => str (default: "")
Subdirectory to put the file into.
CPAN::Uploader which also does uploading from CLI.
WWW::PAUSE::CleanUpHomeDir which can clean old releases from your PAUSE account (but no CLI). A similar subcommand will be added to pause (e.g. pause clean), which will provide an option to specify the number of old releases to keep.
pause
pause clean
Please visit the project's homepage at https://metacpan.org/release/WWW-PAUSE-Simple.
Source repository is at https://github.com/perlancar/perl-WWW-PAUSE-Simple.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=WWW-PAUSE-Simple
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::PAUSE::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::PAUSE::Simple
CPAN shell
perl -MCPAN -e shell install WWW::PAUSE::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.