Package com.ebay.sdk.call

Examples of com.ebay.sdk.call.GetCategoriesCall


    this.FILE_PREFIX = "AllCategories";
  }
 
  @Override
  protected String getLastUpdateTime() throws Exception{
    GetCategoriesCall api = new GetCategoriesCall(apiContext);
    GetCategoriesRequestType req = new GetCategoriesRequestType();
    //we only need 'UpdateTime' field
    req.setOutputSelector(new String[]{"UpdateTime"});
    api.execute(req);
    GetCategoriesResponseType resp = (GetCategoriesResponseType) api.execute(req);
    Date date = resp.getUpdateTime().getTime();
    SimpleDateFormat df = new SimpleDateFormat("yyyy_MM_dd_hh_mm_ss");
    String time = df.format(date);
    return time;
  }
View Full Code Here


  }
 
  @Override
  protected Object individualCall() throws Exception{
    //get all categories for this site
    GetCategoriesCall apiCall = new GetCategoriesCall(apiContext);
    apiCall.setViewAllNodes(true);
    // Set detail level.
    DetailLevelCodeType[] detailLevels = new DetailLevelCodeType[] {DetailLevelCodeType.RETURN_ALL};
    apiCall.setDetailLevel(detailLevels);
    apiCall.setCategorySiteID(apiContext.getSite());
    //execute call
    apiCall.getCategories();
    return apiCall.getResponse();
  }
View Full Code Here

TOP

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

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.