openbravo与淘宝对接文档一
package tb.lws.test;import com.taobao.api.ApiException;import com.taobao.api.DefaultTaobaoClient;import com.taobao.api.request.UserSellerGetRequest;import com.taobao.api.response.UserSellerGetResponse;public class HttpCallTest { public static void main(String[] args) throws ApiException {String appKey = "1021604294";String appSecret = "sandbox5ac97e191c11cabb19bb16329";String serverUrl = "http://gw.api.tbsandbox.com/router/rest";// 创建客户端DefaultTaobaoClient client = new DefaultTaobaoClient(serverUrl, appKey,appSecret, "json");UserSellerGetRequest req = new UserSellerGetRequest();// 设置想要获取的信息req.setFields("nick,email,sex");// 传入sessionkeyUserSellerGetResponse resp = client.execute(req,"61028154880c443f37688d9104a20d34de8f683742c79782054555330");System.out.println(resp.getBody()); }}
?
?