所以我试图使用ofx4j连接到美国运通,我使用ofx主页上提供的数据,每当我试图访问该服务时都会收到503个错误。我不知道我到底做错了什么。
我得到的机构数据是这样的:

BaseFinancialInstitutionData amex = new BaseFinancialInstitutionData();
amex.setId( "424" );
amex.setFinancialInstitutionId( "3010" );
amex.setName( "American Express Card" );
amex.setBrokerId( null );
amex.setOrganization( "AMEX" );
amex.setOFXURL( new URL( "https://online.americanexpress.com/myca/ofxdl/desktop/desktopDownload.do?request_type=nl_ofxdownload" ) );

然后我像在示例中那样打开连接:
CreditCardAccountDetails ccDetails = new CreditCardAccountDetails();
ccDetails.setAccountNumber( "<my_card_number>" );
CreditCardAccount ccAccount = fi.loadCreditCardAccount( ccDetails, "<my_username>", "<my_password>" );

AccountStatement statement = ccAccount.readStatement( startDate, endDate );
TransactionList transactions = statement.getTransactionList();
List<Transaction> ledger = transactions.getTransactions();

但一旦我试图访问任何数据,我就会得到503错误。草率地说,施瓦布的工作就像一个魔咒,所以我假设机构数据有问题?
有没有人能让美国运通和ofx4j合作?
谢谢!

最佳答案

尝试使用此机构数据:

fid: 3101
org: AMEX
ofx: https://online.americanexpress.com/myca/ofxdl/desktop/desktopDownload.do?request_type=nl_ofxdownload

07-24 20:45