| Line 312... |
Line 312... |
| 312 |
SnapdealInventoryItem inventory_item = null;
|
312 |
SnapdealInventoryItem inventory_item = null;
|
| 313 |
long created_orders = 0;
|
313 |
long created_orders = 0;
|
| 314 |
long pending_orders;
|
314 |
long pending_orders;
|
| 315 |
inventoryItemList = new ArrayList<Inventory>();
|
315 |
inventoryItemList = new ArrayList<Inventory>();
|
| 316 |
while(true){
|
316 |
while(true){
|
| - |
|
317 |
System.out.println("Fetching inventory page " +i);
|
| 317 |
time = System.currentTimeMillis();
|
318 |
time = System.currentTimeMillis();
|
| 318 |
get = new HttpGet("http://seller.snapdeal.com/inventory/search?gridType=normal&_search=false&nd="+time+"&rows="+30+"&page="+i+"&sidx=&sord=asc");
|
319 |
get = new HttpGet("http://seller.snapdeal.com/inventory/search?gridType=normal&_search=false&nd="+time+"&rows="+30+"&page="+i+"&sidx=&sord=asc");
|
| 319 |
try {
|
320 |
try {
|
| 320 |
response = client.execute(get);
|
321 |
response = client.execute(get);
|
| 321 |
} catch (ClientProtocolException e) {
|
322 |
} catch (ClientProtocolException e) {
|
| Line 342... |
Line 343... |
| 342 |
System.out.println("Product Name " + inventory.getProductName());
|
343 |
System.out.println("Product Name " + inventory.getProductName());
|
| 343 |
System.out.println("Quantity " + inventory.getAvailableInventory());
|
344 |
System.out.println("Quantity " + inventory.getAvailableInventory());
|
| 344 |
System.out.println("Pending " + inventory.getPendingAvailableInventory());
|
345 |
System.out.println("Pending " + inventory.getPendingAvailableInventory());
|
| 345 |
System.out.println("Status " + inventory.isPendingUpdate());
|
346 |
System.out.println("Status " + inventory.isPendingUpdate());
|
| 346 |
*/
|
347 |
*/
|
| - |
|
348 |
System.out.println("Parsing page " + i);
|
| 347 |
pending_orders=0;
|
349 |
pending_orders=0;
|
| 348 |
try{
|
350 |
try{
|
| 349 |
inventory_item = inventoryClient.getSnapdealInventoryForItem(Long.parseLong(inventory.getSellerSku()));
|
351 |
inventory_item = inventoryClient.getSnapdealInventoryForItem(Long.parseLong(inventory.getSellerSku()));
|
| 350 |
}
|
352 |
}
|
| 351 |
catch(NumberFormatException nfe)
|
353 |
catch(NumberFormatException nfe)
|