The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Business::LiveDrive - use the livedrive.com reseller API

SYNOPSIS

  use Business::LiveDrive;

  my $ld = Business::LiveDrive->new( apiKey => 'My-Reseller-Key');

  my $users = $ld->getusers();

  my $u = $ld->adduser( email => 'bob@example.com',
                        password => 'abc123',
                        ... );

DESCRIPTION

Perl interface to the livedrive.com reseller API.

You can use this interface to create, retrieve and update your users on your livedrive.com reseller account.

To use this you need to have registered a reseller account with livedrive.com from which you need the API Key from the reseller management system.

See the documentation on the livedrive.com website for more information.

addbackup

    $livedrive->addbackup('123456');

Upgrades a user account to include Backup. The account is specified by passing the account user ID.

Returns details for the upgraded account.

addbackupwithlimit

    $livedrive->addbackupwithlimit( userID => '123456', 
        capacity => 'OneTeraByte');

Upgrades a user account to include Backup with a limit as specified

Parameters: UserID : the user account ID capacity : one of HalfTeraByte, OneTeraByte, OneAndAHalfTeraBytes or TwoTeraBytes

Returns a hashref with the new details for the account

adduser

Creates a new user

Parameters: email password confirmPassword subDomain capacity : Unlimited or HalfTeraByte or OneTeraByte or OneAndAHalfTeraBytes or TwoTeraBytes isSharing : true (1) or false (0) hasWebApps : true (1) or false (0) firstName lastName cardVerificationValue productType : Backup or Briefcase or BackupAndBriefCase

Note that capacity can only be set to Unlimited for Backup accounts. Briefcase and BackupAndBriefCase accounts cannot be unlimited.

Returns a hashref with details for the new account.

getuser

    $livedrive->getuser('123456');

Returns a hashref with details of the specified user account.

getusers

    $livedrive->getusers($page_number);

Returns a paged list of user records. Returns first page unless $page_number (int) is specified in which case that page is returned.

updateuser

Updates user details.

upgradeuser

Adds briefcase to the user or upgrades a user to a briefcase of a given size.

Parameters: userID : The ID of the customer account capacity : HalfTeraByte or OneTeraByte or OneAndAHalfTeraBytes or TwoTeraBytes cardVerificationValue : the CV2 of the card used to register the reseller account

SEE ALSO

http://www.livedrive.com/ for the API documentation

AUTHOR

Jason Clifford, <jason@ukfsn.org>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Jason Clifford

This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 or later.