我正在使用交易API从eBay帐户接收我出售的商品。这是我用于接收数据的代码:
ApiContext apiContext = new ApiContext();
ApiCredential credential = apiContext.getApiCredential();
credential.seteBayToken("token");
apiContext.setApiServerUrl("https://api.ebay.com/wsapi");
GetMyeBaySellingCall call = new GetMyeBaySellingCall(apiContext);
GetMyeBaySellingRequestType requestType = new GetMyeBaySellingRequestType();
ItemListCustomizationType ac = new ItemListCustomizationType();
ac.setInclude(new Boolean(true));
ac.setIncludeNotes(new Boolean(true));
ac.setDurationInDays(60);
requestType.setSoldList(ac);
call.getMyeBaySelling();
GetMyeBaySellingResponseType resp = call.getReturnedMyeBaySellingResponse();
问题是,在检查resp
的{{1}}时,我只看到邮政编码和国家/地区,但是我也想接收街道详细信息。有没有办法做到这一点?根据API文档,应将其包括在内。