
WebService::Buxfer::Utils

Utility methods included with and used by the WebService::Buxfer package.

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.

See the inject_account_name option in the WebService::Buxfer doco.
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.

Nathaniel Heinrichs <nheinric@cpan.org>

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.