doches / itc_ducksboard

Funnel sales reports from iTunes Connect to Ducksboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iTunes Connect -> Ducksboard

A couple of handy scripts for pushing iTunes Connect reports to Ducksboard.

process_reports.rb

Scans a directory containing daily sales reports downloaded with Apple's Auto-ingest tool, and creates two files for each located report, one containing the day's revenue in the requested currency (at today's exchange rate) and another containing the day's unit sales.

ruby process_reports.rb path/to/dir currency_code
  • path/to/dir is the directory containing gzipped iTunes reports
  • currency_code is the desired currency code for revenue (e.g. USD, GBP)

update_ducksboard_graph.rb

Scans a directory after processing with process_reports.rb and updates a Ducksboard graph.

ruby update_ducksboard_graph.rb path/to/dir ext url apikey
  • path/to/dir is the directory containing the output of process_reports.rb (same as above)
  • ext is one of units, for unit sales, or the currency code specified above, for revenue
  • url the endpoint URL for Ducksboard
  • apikey your api key for Ducksboard

About

Funnel sales reports from iTunes Connect to Ducksboard


Languages

Language:Ruby 100.0%