NAME

Net::Xero - Interface to Xero accounting

VERSION

Version 0.40

SYNOPSIS

Quick summary of what the module does.

For a private application you will receive the access_token/secret when you submit your X509 to xero. You can ignore login/auth in this instance as follows: use Net::Xero;

my $foo = Net::Xero->new( access_token => 'YY', access_secret => 'XX', );

EXPORT

A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.

FUNCTIONS

login

This sets up the initial OAuth handshake and returns the login URL. This URL has to be clicked by the user and the the user then has to accept the application in xero.

Xero then redirects back to the callback URL defined with $self->callback_url. If the user already accepted the application the redirect may happen without the user actually clicking anywhere.

auth

The auth method changes the initial request token into access token that we need for subsequent access to the API. This method only has to be called once after login.

set_cert

get_inv_by_ref

get_invoices

create_invoice

create_payment

create_contact

approve_credit_note

status_invoice

get

post

put

INTERNAL API

_talk

_talk handles the access to the restricted resources. You should normally not need to access this directly.

_template

AUTHOR

Lenz Gschwendtner, <norbu09 at cpan.org>

BUGS

Please report any bugs or feature requests to bug-net-xero at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Xero. 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 Net::Xero

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2010 Lenz Gschwendtner.

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.