New API

15 views
Skip to first unread message

Oliver Drobnik

unread,
Aug 24, 2011, 4:35:28 AM8/24/11
to MyAppSales
Hi,

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

unread,
Aug 24, 2011, 4:42:53 AM8/24/11
to myapp...@googlegroups.com
Ok Oliver I think this is an interesting way to simplify the current code.
Do not promise anything, but in the meantime I try to look at the Java class and, if you want, send me your specs.

Pasquale D'Orsi

Oliver Drobnik

unread,
Aug 24, 2011, 4:50:05 AM8/24/11
to myapp...@googlegroups.com
Hi Pasquale

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

Autoingestion.java

Pasquale D'Orsi

unread,
Aug 24, 2011, 4:56:34 AM8/24/11
to myapp...@googlegroups.com
Thanks Oliver,
I will try to write some code and I'll let you know...

regards,
Pasquale

> <Autoingestion.java>

Arno Willig

unread,
Aug 24, 2011, 12:26:48 PM8/24/11
to myapp...@googlegroups.com
Hi,

can this API be tested with curl/wget ?

cheers,
Arno


2011/8/24 Pasquale D'Orsi <pasqua...@gmail.com>:

--
Arno Willig <a...@thinkwiki.org>

Reply all
Reply to author
Forward
0 new messages