use Ogo;
use OGo::Account;
my $Account = new OGo::Account( login => 'martin',
password => 'secret',
firstname => 'Martin',
name => 'Werthmoeller'
);
$Account->create();
my $Account = new OGo::Account();
$Account->fetch('martin');
print "Id: ",$Account->id,"\n";
Creates a new OGo::Acount object and returns it. The when called with a hashref \%AccountData it should have the following keys.
login => 'login' password => 'password' (plaintext, will be crypted when stored) firstname => 'firstname' name => 'name'
getByNumber('$skyNumber')Returns the account document with the number $skyNumber.
fetch([$login])Fetches the account of the login $login or the account data of the current login. Returns the account object of this login name.
login()Returns the login name of this account object;
id()Returns the id of this account object;