Net::Recurly - Recurly client library
version 0.001
use Net::Recurly; my $R = Net::Recurly->new( username => 'api-test@your-domain.com', password => 'your-password', subdomain => 'your-domain', ); my $subscription = $r->get_subscription('your-account-code');
Net::Recurly is a thin layer around the Recurly.com API. It currently only supports GET requests, although supporting the API more fully is planned.
The XML responses are returned as a hash, using XML::Simple.
The constructor takes 3 mandatory arguments:
This is the username you use to access the Recurly API.
This is the password you use to access the Recurly API.
This is the domain you have configured for Recurly.
Note: If you are using the Recurly test account, your domain should end in '-test'.
The Recurly API documentation: http://docs.recurly.com/
This module is a simple first draft, it is not complete, it does not have tests.
YMMV, IANAL, Patches Welcome.
Copyright 2011 Luke Closs.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Recurly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Recurly
CPAN shell
perl -MCPAN -e shell install Net::Recurly
For more information on module installation, please visit the detailed CPAN module installation guide.