Skip to content

Instantly share code, notes, and snippets.

@sweetmandm
Created February 24, 2013 01:14
Show Gist options
  • Save sweetmandm/5022155 to your computer and use it in GitHub Desktop.
Save sweetmandm/5022155 to your computer and use it in GitHub Desktop.
I wanted to experiment with downloading my sales & reports data from iTunesConnect, but didn't want to have to keep referring to the [reporting instructions](http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf). I made this little script to store most of the info I need, and I simply customize the last line to match whatever I…
#! /bin/sh
# itcingest.sh
# pulls data from iTunes Connect
set +x #quiet things down
# Note: the below iTCdir MUST include Autoingestion.class from Apple. If you don't
# have it, you can download it here: apple.com/itunesnews/docs/Autoingestion.class.zip
# (you also need Java installed. On OSX it'll prompt you to install it if you don't.)
iTCdir="<Enter the same path which contains Autoingestion.class>"
cd $iTCdir
un="<Enter your own username here.>"
vendorid="<Enter your own vendorid here.>"
echo "iTunesConnect pass:"
stty -echo #turn off visible text while we read the password
read pass
stty echo
echo "downloading..."
#Customize the following command to suit your needs. See below for format & arguments.
java Autoingestion $un $pass $vendorid Sales Daily Summary
open .
# java Autoingestion <username> <password> <vendorid> <report_type> <date_type> <report_subtype> <date_yyyymmdd>
# report_type: Sales or Newsstand
# date_type: Daily or Weekly
# report_subtype: Summary, Detailed or Opt-In
# Date (optional): YYYYMMDD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment