| Line 64... |
Line 64... |
| 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 |
HttpPost post = new HttpPost("http://seller.snapdeal.com/pricing/update");
|
67 |
HttpPost post = new HttpPost("http://seller.snapdeal.com/pricing/update");
|
| 68 |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
|
68 |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
|
| 69 |
nameValuePairs.add(new BasicNameValuePair("sellingPrice",
|
69 |
nameValuePairs.add(new BasicNameValuePair("changedField",
|
| - |
|
70 |
"sellingPrice"));
|
| - |
|
71 |
nameValuePairs.add(new BasicNameValuePair("changedValue",
|
| 70 |
String.valueOf(price.intValue())));
|
72 |
String.valueOf(price.intValue())));
|
| 71 |
nameValuePairs.add(new BasicNameValuePair("id",
|
73 |
nameValuePairs.add(new BasicNameValuePair("id",
|
| 72 |
supc));
|
74 |
supc));
|
| 73 |
nameValuePairs.add(new BasicNameValuePair("oper","edit"));
|
75 |
nameValuePairs.add(new BasicNameValuePair("oper","edit"));
|
| 74 |
post.setEntity(new UrlEncodedFormEntity(nameValuePairs,"utf-8"));
|
76 |
post.setEntity(new UrlEncodedFormEntity(nameValuePairs,"utf-8"));
|