NAME
WebService::Buxfer::Utils
DESCRIPTION
Utility methods included with and used by the WebService::Buxfer package.
ACCESSORS
max_transactions_per_submit
Maximum number of transactions to include in a single add_transaction
call.
Note: The Buxfer API documentation does not indicate a maximum number of transactions that can be submitted at once. I was able to sucessfully submit 1000 simple transactions in a single call, hence the default.
METHODS
inject_accountName(\%accounts, \@results)
See the inject_account_name option in the WebService::Buxfer doco.
make_transactions(\@items)
Given an array of transaction objects (hashrefs) stringifies each object into Buxfer's SMS format and groups them into batches based on the max_transactions_per_submit value.
Transaction objects that are already strings are left untouched.
Returns an array of strings suitable for submitting to the Buxfer API.
See the add_transactions
method in WebService::Buxfer for an example.
AUTHORS
Nathaniel Heinrichs <nheinric@cpan.org>
COPYRIGHT AND LICENSE
Copyright (c) 2009 Nathaniel Heinrichs.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.