Subversion Repositories SmartDukaan

Rev

Rev 13856 | Rev 13858 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13856 Rev 13857
Line 62... Line 62...
62
		updatePriceOnSnapdeal.start();	
62
		updatePriceOnSnapdeal.start();	
63
 
63
 
64
	}
64
	}
65
	int updatePricing(Float price,String supc,Item item,Long timestamp) throws ClientProtocolException, IOException{
65
	int updatePricing(Float price,String supc,Item item,Long timestamp) throws ClientProtocolException, IOException{
66
		logger.info("Calling Update Snapdeal Price Constructor --" + " Price :" +price + " Supc :"+supc +" Item ID:" +item.getId());
66
		logger.info("Calling Update Snapdeal Price Constructor --" + " Price :" +price + " Supc :"+supc +" Item ID:" +item.getId());
-
 
67
		long priceVal = (long)price.floatValue();
67
		HttpPost post = new HttpPost("http://seller.snapdeal.com/pricing/update?changedField=sellingPrice&changedValue="+price+"&supc="+supc);
68
		HttpPost post = new HttpPost("http://seller.snapdeal.com/pricing/update?changedField=sellingPrice&changedValue="+priceVal+"&supc=SDL917449142");
68
		/*List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
69
		/*List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
69
		nameValuePairs.add(new BasicNameValuePair("changedField",
70
		nameValuePairs.add(new BasicNameValuePair("changedField",
70
                "sellingPrice"));
71
                "sellingPrice"));
71
		nameValuePairs.add(new BasicNameValuePair("changedValue",
72
		nameValuePairs.add(new BasicNameValuePair("changedValue",
72
				String.valueOf(price.intValue())));
73
				String.valueOf(price.intValue())));