WebService::Buxfer::Utils - WebService::Buxfer::Utils documentation


WebService-Buxfer documentation  | view source Contained in the WebService-Buxfer distribution.

Index


NAME

Top

WebService::Buxfer::Utils

DESCRIPTION

Top

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

ACCESSORS

Top

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

Top

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

Top

Nathaniel Heinrichs <nheinric@cpan.org>

COPYRIGHT AND LICENSE

Top


WebService-Buxfer documentation  | view source Contained in the WebService-Buxfer distribution.