2013-07-08 37 views
7

我想從iTunes Connect收集每日銷售摘要並將它們存儲在我的數據庫中。此路徑的一個步驟是使用Apple's iTunes Connect Autoingestion java class下載報告數據。Apple Autoingestion類:用戶名和密碼「已棄用」,屬性文件?

當我從Windows XP命令行運行該工具時,出現一個奇怪的錯誤消息。

C:\iTunes sales reports>java -cp Autoingestion Autoingestion myuser 
"[email protected]" 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 

我很好奇如何解決錯誤消息,''用戶名和密碼參數已被棄用。請使用用戶憑據的屬性文件。'' 我在Apple的文檔「iTunes Connect Sales and Trends Guide: App Store v8」中看不到有關此消息的任何內容。

Autoingestion.class旁邊的目錄是一個文件autoingestion.properties。該文件包含兩行:

userID = <UserID> 
password = <Password> 

一個顯而易見的猜測是,Autoingestion類希望我把我的用戶ID和密碼,在該文件中。沒有跡象顯示需要引用的值。當我把我的用戶名和密碼的文件中(不帶引號),然後離開了表彰線的用戶ID和密碼,我收到以下錯誤信息:

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. 

所以,我不知道如何以解決此錯誤消息的方式提供用戶憑據。有人知道如何?有沒有像我這樣的java新手沒有聽說過的屬性文件可能有一個共同的慣例?

回答

2

「iTunes Connect銷售和趨勢指南」中介紹的說明適用於舊版Autoingestion工具。蘋果尚未更新文件。

請將錯誤記錄到bugreport.apple.com和Apple開發人員論壇。報告的人越多,Apple負責此文檔的工作人員就會越早更新它。

8

jemeshu是正確的,他們更新了Autoingest工具,並且該文檔反映了舊的用法。它仍然可以下載,但會給您提供棄用信息。新格式爲:

java Autoingestion autoingestion.properties 80000000 Sales Daily Summary 20130707 

需要提供屬性文件名稱來代替舊的用戶名和密碼。我相信它也必須以.properties結束。

更多信息:這些值在屬性文件中未加引號。

+0

注意:.properties文件是** NOT ** plist - 它只是一個純文本文件。不要引用這些值。 –

+0

如果顯示屬性文件應該包含的內容,這個答案會更好。有標籤,還是僅僅是值?一行上有多個值,或者每行有多個值?問題中的屬性文件示例是否正確? –

相關問題