WebService::ScormCloud::Service::Upload - ScormCloud API "upload" namespace
use WebService::ScormCloud; my $ScormCloud = WebService::ScormCloud->new( app_id => '12345678', secret_key => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', ); my $token = $ScormCloud->getUploadToken; my $remote_filename = $ScormCloud->uploadFile($file, $token); my $progress = $ScormCloud->getUploadProgress($token); my $uploaded_files = $ScormCloud->listFiles;
Get and return an upload token to be used with a file upload.
Given an upload token, get progress info for the corresponding upload.
Upload a file. Will generate an upload token is none is supplied.
Returns the generated destination path on the remote filesystem.
Return a list of files that have been uploaded using the given AppID.
Delete a file that was uploaded.
Note: This method only handles one file at a time even though the API service can accept multiple files for deletion in a single request.
<larryl at cpan.org>
Please report any bugs or feature requests to
bug-scormcloud at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-ScormCloud. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Patches more than welcome, especially via GitHub: https://github.com/larryl/ScormCloud
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2010 Larry Leszczynski.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.