Subversion Repositories SmartDukaan

Rev

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

Rev 13860 Rev 13878
Line 27... Line 27...
27
 
27
 
28
	}
28
	}
29
	int updateInventory(long stock,String supc) throws ClientProtocolException, IOException{
29
	int updateInventory(long stock,String supc) throws ClientProtocolException, IOException{
30
		HttpPost post = new HttpPost("http://seller.snapdeal.com/inventory/update");
30
		HttpPost post = new HttpPost("http://seller.snapdeal.com/inventory/update");
31
		List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
31
		List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
-
 
32
		System.out.println("Calling update inventory: Supc: "+supc+ " to be update stock: "+ stock);
32
		nameValuePairs.add(new BasicNameValuePair("changedField",
33
		nameValuePairs.add(new BasicNameValuePair("changedField",
33
				"inventory"));
34
				"inventory"));
34
		nameValuePairs.add(new BasicNameValuePair("changedValue",
35
		nameValuePairs.add(new BasicNameValuePair("changedValue",
35
				String.valueOf(stock)));
36
				String.valueOf(stock)));
36
		nameValuePairs.add(new BasicNameValuePair("supc",
37
		nameValuePairs.add(new BasicNameValuePair("supc",