objective-c iTunes 连接 API
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1619172/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iTunes Connect API
提问by totocaster
Does iTunes Connect has an API? How do some applications download financial and sale reports to computer? Are there some C/Objective-C API wrappers?
iTunes Connect 有 API 吗?某些应用程序如何将财务和销售报告下载到计算机?是否有一些 C/Objective-C API 包装器?
回答by gavi
Update 11/02/2018
更新 11/02/2018
On November/18, Apple finally released the Appstore Connect REST API. Referencing the Apple description:
11 月/18 日,Apple 终于发布了Appstore Connect REST API。参考苹果的描述:
TestFlight. Manage beta builds of your app, testers, and groups.
Users and Access. Send invitations for users to join your team. Adjust their level of access or remove users.
Reporting. Download sales and financial reports.
测试飞行。管理您的应用程序、测试人员和组的 Beta 版本。
用户和访问。向用户发送加入您的团队的邀请。调整他们的访问级别或删除用户。
报告。下载销售和财务报告。
Update 10/03/2018
更新 10/03/2018
Good news on this one: on 2018 WWDC, Apple announced the Appstore Connect API- where you'll be able to access almost everything related to your Appstore Connect management. You can see two related talks hereand here.
关于这一点的好消息:在 2018 年 WWDC 上,Apple 宣布了Appstore Connect API- 您可以在其中访问与 Appstore Connect 管理相关的几乎所有内容。你可以在这里和这里看到两个相关的谈话。
The only curiousthing is that its release date was supposed to be late this summer- so it's probably delayed. Nonetheless we should be able to see a release soon.
唯一奇怪的是它的发布日期应该在今年夏天晚些时候- 所以它可能会延迟。尽管如此,我们应该能够很快看到发布。
Update 8/18/2016
2016 年 8 月 18 日更新
Official Reporter tool from Apple
来自 Apple 的官方记者工具
https://help.apple.com/itc/appsreporterguide/#/
https://help.apple.com/itc/appsreporterguide/#/
iTunes finally released an auto download tool as noted in the PDF
iTunes 终于发布了一个自动下载工具,如 PDF 中所述
http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf
http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf
Here is the class file
这是类文件
http://www.apple.com/itunesnews/docs/Autoingestion.class.zip
http://www.apple.com/itunesnews/docs/Autoingestion.class.zip
回答by nevan king
There's no API for iTunes connect, the only way you can access the information is through the web or with a program that scrapes the web pages. If you want to create something in Objective-C, download AppSales from github, it's an iPhone app which downloads financial reports from ITC (or maybe itts). You can download it and install it on your iPhone if you have an Apple developer account. You can look through their code and see how they scrape the daily and weekly reports (hint: it's ugly).
没有用于 iTunes 连接的 API,您访问信息的唯一方法是通过网络或使用抓取网页的程序。如果你想在 Objective-C 中创建一些东西,从 github 下载 AppSales,它是一个 iPhone 应用程序,可以从 ITC(或者 itts)下载财务报告。如果您有 Apple 开发者帐户,则可以下载它并将其安装在您的 iPhone 上。你可以查看他们的代码,看看他们是如何抓取每日和每周报告的(提示:这很丑陋)。
http://github.com/omz/AppSales-Mobile
http://github.com/omz/AppSales-Mobile
Note that if you try to create an iPhone app to do this, Apple will reject it. It breaks the rule about "No public API". Other people have tried this and been rejected.
请注意,如果您尝试创建 iPhone 应用程序来执行此操作,Apple 将拒绝它。它打破了“无公共 API”的规则。其他人已经尝试过这个并被拒绝了。
If you're just looking for software to do this on your computer, I'd highly recommend AppViz
如果您只是在寻找可以在计算机上执行此操作的软件,我强烈推荐 AppViz
http://www.ideaswarm.com/products/appviz/
http://www.ideaswarm.com/products/appviz/
Here's a nice post which compares these and more apps:
这是一篇很好的文章,比较了这些和更多的应用程序:
回答by KrauseFx
For everything non-sales related, you might want to check out the unoffical documentation of the iTunes Connect JSON API: https://github.com/fastlane/itc-api-docs
对于与销售无关的所有内容,您可能需要查看 iTunes Connect JSON API 的非官方文档:https: //github.com/fastlane/itc-api-docs
Update: There is now a Ruby implementation of both the iTunes Connect API and the Apple Developer API available: https://github.com/fastlane/fastlane/tree/master/spaceship
更新:现在提供了 iTunes Connect API 和 Apple Developer API 的 Ruby 实现:https: //github.com/fastlane/fastlane/tree/master/spaceship
回答by Sam
Following up on gavi's answer: if you download & decompile the Autoingestion class you can see the API that Apple use for sales downloads.
跟进 gavi 的回答:如果您下载并反编译 Autoingestion 类,您可以看到 Apple 用于销售下载的 API。
It consists of a POST to https://reportingitc.apple.com/autoingestion.tftwith the form values: USERNAME, PASSWORD, VNDNUMBER, TYPEOFREPORT, DATETYPE, REPORTTYPE, REPORTDATE. Refer to the PDFfor details of the parameters
它包含发送到https://reportingitc.apple.com/autoingestion.tft的 POST和表单值:USERNAME、PASSWORD、VNDNUMBER、TYPEOFREPORT、DATETYPE、REPORTTYPE、REPORTDATE。有关参数的详细信息,请参阅PDF
The response will contain the header 'ERRORMSG' if there's an error, and the header 'filename' if there's a body (presumably Apple developers don't know about Content-Disposition or 4xx/5xx status codes). The body of the response contains the file data.
如果有错误,响应将包含标题“ERRORMSG”,如果有正文,则包含标题“文件名”(大概 Apple 开发人员不知道 Content-Disposition 或 4xx/5xx 状态代码)。响应的正文包含文件数据。
回答by prairiedogg
Here is a small project that may be helpful to you in automating the download of piano reports from iTunes Connect. It's a python script to automate the login / download of daily sales files and I use it daily in conjunction with some other scripts to parse that data. Hook it up to a cron job with some error checking (the reports never seem to be generated at the same time) and you'll be good to go.
这是一个小项目,它可能对您从 iTunes Connect 自动下载钢琴报告有所帮助。这是一个 python 脚本,用于自动登录/下载每日销售文件,我每天都将它与其他一些脚本结合使用来解析该数据。将它连接到带有一些错误检查的 cron 作业(这些报告似乎永远不会同时生成),您就可以开始了。
回答by Finnbar
after looking everywhere I did not find a PHP version of the reports API so made my own.
在到处寻找之后,我没有找到报告 API 的 PHP 版本,所以我自己做了一个。
You can check it out on https://github.com/Finnb8r/itunes-connect-sales-api-php.
您可以在https://github.com/Finnb8r/itunes-connect-sales-api-php上查看。
I realize that this is not an Objective-C wrapper but this link comes out on top when generally looking for an API.
我意识到这不是一个 Objective-C 包装器,但是在通常寻找 API 时,这个链接会出现在最前面。
回答by sabadow
To can use the AutoIngestion Tool the vendorId is needed. To find it, with the last update on iTunes Connect, in the Sales and Trends section, pressing on the top right menu that shows "Top Content" can access to the Reports entry (direct link).
要使用 AutoIngestion 工具,需要 vendorId。要找到它,在iTunes Connect上的最新更新中,在 Sales and Trends 部分,按显示“Top Content”的右上角菜单可以访问报告条目(直接链接)。
There you can see the "Vendor" selector, pressing on it you can see the Details of the vendor with the following format:
在那里你可以看到“供应商”选择器,按下它你可以看到供应商的详细信息,格式如下:
VendorName - VendorId
Hope it helps.
希望能帮助到你。
回答by Adam Wright
No, no formal API (or if there is one, it's well hidden even from iPhone developer users of iTunes connect). However, the sales & financial reports are downloadable as tab delimited plaintext (gzip compressed), though to make the request you'll have to login (which is cookie based). One could probably wrap this process up with a little bit of screen scraping, and thus get access to the TSV files.
不,没有正式的 API(或者如果有,它甚至对 iTunes Connect 的 iPhone 开发者用户也是隐藏的)。但是,销售和财务报告可作为制表符分隔的纯文本(gzip 压缩)下载,但要发出请求,您必须登录(基于 cookie)。一个人可以用一点点屏幕抓取来结束这个过程,从而可以访问 TSV 文件。
回答by Ariel
There's no formal API but several open source and commercial products available that bring some/most/all info together (such as the ones mentioned in previous answers).
没有正式的 API,但有几个开源和商业产品可以将一些/大部分/所有信息整合在一起(例如前面的答案中提到的那些)。
Another such solution is www.appfigures.comwhich combines sales reports, app reviews, and hourly rank updates. Unlike the other apps appfigures can automatically import your reports and email you a nicely formatted report by email every day/week.
另一个这样的解决方案是www.appfigures.com,它结合了销售报告、应用评论和每小时排名更新。与其他应用程序不同,appfigures 可以每天/每周通过电子邮件自动导入您的报告并通过电子邮件向您发送格式良好的报告。
回答by user295760
Take a look at http://www.itunesapis.com. This is the missing iTunes and iTunes Connect API.
看看http://www.itunesapis.com。这是缺少的 iTunes 和 iTunes Connect API。

