String code=request.getParameter("code"); StringBuilder param=new StringBuilder("grant_type=authorization_code"); TaobaoClient client=new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", appKey, appSecret); UserGetRequest req=new UserGetRequest(); req.setFields("user_id,uid,nick,sex,buyer_credit,seller_credit,location,created,last_visit,birthday,type,status,alipay_no,alipay_account,alipay_account,email,consumer_protection,alipay_bind"); try { UserGetResponse userResponse = client.execute(req , code); } catch (ApiException e) { e.printStackTrace(); }