Apple Autoingestion class: username and password are out of date, properties file?

I want to collect daily sales summaries from iTunes Connect and store them in my database. A step along the way is to use Java iTunes Connect Autoingestion java class to load report data.

When I run the tool from the Windows XP command prompt, a curious error message appears.

C:\iTunes sales reports>java -cp Autoingestion Autoingestion myuser " myP@ssw0rd " 80000000 Sales Daily Summary 20130707 The username and password parameters have been deprecated. Please use the properties file for user credentials. S_D_80000000_20130707.txt.gz File Downloaded Successfully 

I am wondering how to resolve the error message, '' Username and password options are outdated. Use the properties file for user credentials. '' I see nothing about this message in the Apple documentation, iTunes Connect Sales and Trends Guide: App Store v8. ''

In the directory next to Autoingestion.class is the autoingestion.properties file. This file contains two lines:

 userID = <UserID> password = <Password> 

The obvious hunch is that the Autoingestion class wants me to enter my user ID and password into this file. There is no indication that values ​​should be indicated or not. When I put my user ID and password in a file (without quotes), and then leave the user ID and password from the commend line, I get the following error message:

 C:\iTunes sales reports\Autoingestion>java -cp . Autoingestion 80000000 Daily Summary 20130707 The username and password parameters have been deprecated. Please use the properties file for user credentials. Please enter all the required parameters. For help, please download the latest User Guide from the Sales and Trends module in iTunes Connect. 

So, I do not know how to provide user credentials so that this message is resolved. Does anyone know how to do this? Perhaps there is a well-known convention on property files that newcomers like me have not heard?

+7
java api itunesconnect
source share
2 answers

jemeshu is correct, they updated the Autoingest tool and the document reflects old usage. It still works for download, but gives an obsolete message. New format:

 java Autoingestion autoingestion.properties 80000000 Sales Daily Summary 20130707 

The name of the properties file should be provided instead of the old username and password. I believe this should also end in .properties .

Additional information: values ​​work without quotes in the properties file.

+8
source share

The instructions in the iTunes Connect Sales and Trends Guide are for the older version of the auto-update tool. Apple has not updated the document yet.

Please report bugs on bugreport.apple.com and the Apple Developer Forum. The more people report this, the sooner the Apple staff responsible for this documentation will update it.

+2
source share

All Articles