you might have heard that Apple now provides a small java program AutoIngestion.java to download specific daily and weekly reports.
Since it is not obfuscated it can be decompiled and it turns out that it is a simple POST operation to an URL on the reportingitc domain.
I'm thinking we could use this method instead of the current AJAX way and pack it into a well documented service class. Going direct is orders of magnitude faster than the current way. The only drawback is that you have no list of available reports but instead you would have to try and download a date and see if this works.
Also you need your vendor ID but this could be scraped from ITC.
Anybody up for that? I can provide the specs.
Oliver Drobnik
oli...@drobnik.com
Pasquale D'Orsi
I've attached the decompiled file.
Specs are:
- you instantiate the downloading service with userid, password and vendor id
-
- perform the call asynchronously
- have a delegate that is informed when a new report was downloaded giving the uncompressed report text
- have a delegate method that reports HTTP as well as report API errors via NSError
- to automatic rate limiting to not check more than once every 15 minutes
- have a way to force a check even when it is less than 15 minutes, i.e. when the push notification comes that new reports are available
- set the agent string to one that Java 1.6 would use to hide the fact that it is MyAppSales/1.x
A client for this downloading service would try all dates for daily reports from the one after the latest available to the current date. On success it would increment that date, if it fails it would stop checking.
Oliver Drobnik
oli...@drobnik.com
regards,
Pasquale
> <Autoingestion.java>
can this API be tested with curl/wget ?
cheers,
Arno
2011/8/24 Pasquale D'Orsi <pasqua...@gmail.com>:
--
Arno Willig <a...@thinkwiki.org>