NAME

VendorAPI::2Checkout::Client - an OO interface to the 2Checkout.com Vendor API

VERSION

Version 0.1502

SYNOPSIS

    use VendorAPI::2Checkout::Client;

    my $tco = VendorAPI::2Checkout::Client->new($username, $password, $format);
    $response = $tco->list_sales();

    $response = $tco->detail_sale(sale_id => 1234554323);

    $response = $tco->list_coupons();

    $response = $tco->detail_coupon(coupon_code => 'COUPON42');

    $response = $tco->list_payments();

    $response = $tco->list_products();

    $response = $tco->list_options();

    ...

DESCRIPTION

This module is an OO interface to the 2Checkout.com Vendor API.

This modules uses Params::Validate which likes to die() when the parameters do not pass validation, so wrap your code in evals, etc.

Presently implements list_sales(), detail_sale(), list_coupons(), and detail_coupon(), list_payments(), list_options(), list_products().

Return data is in XML or JSON.

Please refer to 2Checkout's Back Office Admin API Documentation for input parameters and expexted return values.

CONSTRUCTORS AND METHODS

$c = VendorAPI::2Checkout::Client->new($username, $password, $format, VAPI_MOOSE) =item $c = VendorAPI::2Checkout::Client->new($username, $password, $format, VAPI_NO_MOOSE) =item $c = VendorAPI::2Checkout::Client->new($username, $password, $format) # no moose

Contructs a new VendorAPI::2Checkout::Client object to comminuncate with the 2Checkout Back Office Admin API. You must pass your Vendor API username and password or the constructor will return undef;

AUTHOR

Len Jaffe, <lenjaffe at jaffesystems.com>

GITHUB

The source code is available at Github

BUGS

Please report any bugs or feature requests to bug-vendorapi-2checkout-client at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=VendorAPI-2Checkout-Client. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc VendorAPI::2Checkout::Client

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 Len Jaffe.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 121:

You forgot a '=back' before '=head1'