NAME
WWW::Tunecore - Control your Tunecore account in Perl
VERSION
Version 0.01
SYNOPSIS
WWW::Tunecore provides methods that allow you to programatically perform various functions in your Tunecore account, such as withdraw funds and download your monthly sales reports.
use WWW::Tunecore;
my $foo = WWW::Tunecore->new();
...
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
withdraw_funds
Withdraw all funds to paypal using the email address you used to log in.
download_sales
Downloads the most recent sales report.
use WWW::Tunecore
my $tc = new WWW::Tunecore( $account, $password );
my $sales = $tunecore->download_sales or die $tunecore->error;
print $sales;
The sales are returned in CSV format, so you can save them to disk or run them through a CSV parser. The first line is field headers.
The file returned is whatever TuneCore provides, unprocessed.
debug
Comment out the "return" to print debugging messages while working on the module. If you're subclassing this module, you can print debugging messages by calling $self->debug( "message"). Override this method and comment out the return:
sub debug {
# return; # Un-comment when done testing.
my $message = shift;
print $message."\n";
}
AUTHOR
Grant Grueninger, <grantg at cpan.org>
BUGS
Please report any bugs or feature requests to bug-www-tunecore at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Tunecore. 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 WWW::Tunecore
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2009 Grant Grueninger.
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.