ittybittyapps / appstoreconnect-cli

An easy to use command-line tool for interacting with the Apple AppStore Connect API
MIT License
173 stars 17 forks source link

Implement DownloadSalesAndTrendsReportsCommand #194

Closed DechengMa closed 4 years ago

DechengMa commented 4 years ago

Closes #91

📝 Summary of Changes

Changes proposed in this pull request:

⚠️ Items of Note

The downloaded report suffix is .gz

🧐🗒 Reviewer Notes

💁 Example

USAGE: asc reports sales <options>

ARGUMENTS:
  <frequency>             Frequency of the report to download. ([daily, monthly, weekly, yearly]) 
  <report-date>           The report date to download. The date is specified in the YYYY-MM-DD format for all report frequencies except DAILY, which
                          does not require a specified date. 
  <report-type>           The report to download.  ([sales, pre_order, newsstand, subscription, subscription_event, subscriber]) 
  <report-sub-type>       The report sub type to download.  ([summary, detailed, opt_in]) 
  <vendor-number>         Your vendor number. 
  <output-filename>       The downloaded report file name. 

🔨 How To Test

swift run asc reports sales weekly 2020-05-24 sales summary 12345678 ./../report