Package com.ebay.sdk.call

Examples of com.ebay.sdk.call.GeteBayDetailsCall


    this.FILE_PREFIX = "EBayDetails";
  }
 
  @Override
  protected String getLastUpdateTime() throws Exception {
    GeteBayDetailsCall api = new GeteBayDetailsCall(apiContext);
    //we only need 'UpdateTime' field
    api.setOutputSelector(new String[]{"UpdateTime"});
    api.setDetailName(this.getDetailNames());
   
    //call the API
    api.geteBayDetails();
   
    GeteBayDetailsResponseType resp = api.getReturnedeBayDetails();
    Date date = resp.getUpdateTime().getTime();
    SimpleDateFormat df = new SimpleDateFormat("yyyy_MM_dd_hh_mm_ss");
    String timeStr = df.format(date);
    return timeStr;
  }
View Full Code Here


  }

  @Override
  protected Object individualCall() throws Exception {
    //get eBay details for a given site
    GeteBayDetailsCall api = new GeteBayDetailsCall(apiContext);
    api.setDetailName(this.getDetailNames());
   
    //call the API
    api.geteBayDetails();
   
    return api.getResponseObject();
  }
View Full Code Here

  private GeteBayDetailsResponseType makeApiCall(DetailNameCodeType[] detailNames, SiteCodeType site) throws SdkException, Exception {
    SiteCodeType savedSite = _site;
    if(site != null) {
      _apiContext.setSite(site);
    }
    GeteBayDetailsCall api = new GeteBayDetailsCall(_apiContext);
    DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] {DetailLevelCodeType.RETURN_ALL};
    api.setDetailLevel(detailLevels);
    if(detailNames != null) {
      api.setDetailName(detailNames);
    }
    api.geteBayDetails();
    _apiContext.setSite(savedSite);
   
    return api.getReturnedeBayDetails();   
  }
View Full Code Here

TOP

Related Classes of com.ebay.sdk.call.GeteBayDetailsCall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.