Created
February 14, 2012 07:32
-
-
Save ninjinkun/1824516 to your computer and use it in GitHub Desktop.
Itunes Connect Report Downloader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!perl | |
use common::sense; | |
use HTTP::Request::Common; | |
use LWP::UserAgent; | |
use URI; | |
use Compress::Zlib; | |
use Perl6::Say; | |
my $uri = URI->new("https://reportingitc.apple.com/autoingestion.tft"); | |
my $req = POST($uri, { | |
USERNAME => "", | |
PASSWORD => "", | |
VNDNUMBER => "", ## ITC Vender ID | |
TYPEOFREPORT => "Sales", | |
DATETYPE => "Weekly", ## Daily or Weekly | |
REPORTTYPE => "Summary", ## Summary | |
REPORTDATE => "", ## YYYYMMDD | |
}); | |
my $ua = LWP::UserAgent->new; | |
my $res = $ua->request($req); | |
say Compress::Zlib::memGunzip($res->content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment