我需要在 HTML 网页上显示销售和财务报告,报告数据应该来自 iTunesConnect。
有人可以描述我如何实现这一目标吗?
需要获取如下 iTunes 图像的数据。
您可以使用 Apple Reporter 技术,该技术为您提供 XML 和 CSV 格式的数据。
您需要遵循以下命令。
(1) Lion:Reporter bv$ java -jar Reporter.jar p=Reporter.properties m=Robot.XML Finance.getReport AppleID, US, Financial, 2016, 10
Successfully downloaded AppleID_0716_US.txt.gz
(2) Lion:Reporter bv$ java -jar Reporter.jar p=Reporter.properties m=Robot.XML Sales.getReport AppleID, US, Financial, 2016, 10
201
Invalid report type specified. Valid values include: Sales, Newsstand, Pre-order, Cloud, Event, Customer, Content, Station, Control, amEvent, amContent, amControl, amStreams, Subscription and SubscriptionEvent.
(3) Lion:Reporter bv$ java -jar Reporter.jar p=Reporter.properties m=Robot.XML Finance.getReport AppleID, US, Sales, 2016, 10
301
Invalid report type specified. Valid values include: Financial, Match, Radio, RadioSummary, AppleMusic, AppleMusicSummary, News, and BeatsRadio.
(4) java -jar Reporter.jar p=Reporter.properties m=Robot.XML Sales.getReport AppleID, Sales, Summary, Daily, 20162811
使用(1) Reporter.properties 和 (2) Reporter.jar 文件。确保仔细配置 Reporter.properties。如下所示。
UserId= your apple account email address
Password= your apple account password
Mode=Robot.xml
参考