Paypal API トランザクションの検索呼び出しを Java で実装しようとしています。以下の作品:
PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(new File("sdk_config.properties"));
SetAccessPermissionsReq perm = new SetAccessPermissionsReq();
TransactionSearchRequestType transSearch = new TransactionSearchRequestType();
transSearch.setStartDate(startDate);
transSearch.setEndDate(endDate);
TransactionSearchReq request = new TransactionSearchReq();
request.setTransactionSearchRequest(transSearch);
TransactionSearchResponseType response = service.transactionSearch(request);
List ans = response.getPaymentTransactions();
ただし、トークンと tokenSecret をサービス オブジェクトにロードして、適切なトークンを持っているサード パーティの Paypal アカウントのトランザクション検索を返す方法が見つかりません。
のような単純なもの
service.setToken(token);
PayPalAPIInterfaceServiceService には setToken メソッドがないため、機能しません。
「サービス」オブジェクトを java.util.Properties ファイルで初期化することは可能ですが、この例はどこにも見つかりません。
何か案は?