Package com.ebay.sdk.call

Examples of com.ebay.sdk.call.GetCategoriesCall.execute()


  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


    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

TOP
Copyright © 2018 www.massapi.com. 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.