|
|
@@ -58,8 +58,9 @@ public class InsertServiceImpl implements InsertService {
|
|
|
|
|
|
@Override
|
|
|
public void getAllDate(){
|
|
|
- TaobaoClient client = new DefaultTaobaoClient(serverUrl, appKey, appSecret);
|
|
|
+ TaobaoClient client = new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest=31921866", "31921866", "7121c52d4c9970ba08bf09e2f525acd0");
|
|
|
|
|
|
+// ((DefaultTaobaoClient) client).getRequestUrl("http://auth.open.taobao.com/?appkey=31921866")
|
|
|
// 查询卖家已卖出的交易数据
|
|
|
TradesSoldGetRequest req = new TradesSoldGetRequest();
|
|
|
// OpenTradesSoldGetRequest req = new OpenTradesSoldGetRequest();
|
|
|
@@ -84,16 +85,7 @@ public class InsertServiceImpl implements InsertService {
|
|
|
|
|
|
try {
|
|
|
|
|
|
- try {
|
|
|
- Response response = HttpUtil.sendGetRequest2("http://container.open.taobao.com/container?appkey=31921866",
|
|
|
- null, true,"2c1ea08986cd796fe050007f01002ea6");
|
|
|
- System.out.print(response.getResponseText());
|
|
|
- } catch (Exception e) {
|
|
|
- logger.info(this.getClass() + "response");
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
TradesSoldGetResponse rsp = client.execute(req, sessionKey);
|
|
|
-
|
|
|
System.out.println(rsp.getBody());
|
|
|
List<String> insertSqlsList = new ArrayList<String>();
|
|
|
//这里解析返回的数据
|