Re: [Openledger-developer] API Design Idea
Brought to you by:
klavs
From: Tony F. <to...@sy...> - 2005-03-03 18:58:55
|
On Thu, 2005-03-03 at 01:20, Tony Fraser wrote: > Well I went ahead and created a possible API design that uses > LWP::UserAgent and HTML::Form anyway. It has taken the biggest part of a > day to get where I am now but it is working. I have code for creating, > posting and editing GL entries. The implementation consists of 2 helper > classes that will be reused by other types of transactions and 1 > transaction class for a total of 3 classes. > > I'll post the full code on the web tomorrow Well tomorrow's here now. I didn't want to check this into CVS yet. I'd like to get some comments on it first. I tar'd everything up and put the tarball on the project webspace. You can download it from: http://openledger.sf.net/SL-Api.tar.gz Once you've downloaded and untar'd it make sure you have LWP::UserAgent and HTML::Form installed from CPAN and have a look in test.pl. You'll need to change the constructor arguments and probably the account numbers in the add_(debit|credit) method calls. -- Tony Fraser to...@sy... Sybaspace Internet Solutions System Administrator phone: (250) 246-5368 fax: (250) 246-5398 |