我想從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新手沒有聽說過的屬性文件可能有一個共同的慣例?
注意:.properties文件是** NOT ** plist - 它只是一個純文本文件。不要引用這些值。 –
如果顯示屬性文件應該包含的內容,這個答案會更好。有標籤,還是僅僅是值?一行上有多個值,或者每行有多個值?問題中的屬性文件示例是否正確? –