Subversion Repositories SmartDukaan

Rev

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

Rev 10230 Rev 10231
Line 155... Line 155...
155
	 public void run()
155
	 public void run()
156
	 {
156
	 {
157
		 try {
157
		 try {
158
			 this.handleLogin();
158
			 this.handleLogin();
159
			 this.updatePricing(this.price,this.supc,this.item,timestamp);
159
			 this.updatePricing(this.price,this.supc,this.item,timestamp);
-
 
160
			 HttpGet get = new HttpGet("http://seller.snapdeal.com/pricing/search?searchType=SUPC&searchValue="+this.supc+"&gridType=normal&_search=false&nd="+System.currentTimeMillis()+"&rows=30&page=1&sidx=&sord=asc");
-
 
161
			 HttpResponse response = client.execute(get);
-
 
162
			 BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
-
 
163
			 String line = "";
-
 
164
			 while ((line = rd.readLine()) != null) {
-
 
165
				 logger.info(line);
-
 
166
			 }
160
			 GmailUtils mailer = new GmailUtils();
167
			 GmailUtils mailer = new GmailUtils();
161
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
168
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
162
			 "Item ID       : " +this.item.getId() +"\n"+
169
			 "Item ID       : " +this.item.getId() +"\n"+
163
			 "SUPC          : " +this.supc +"\n"+
170
			 "SUPC          : " +this.supc +"\n"+
164
			 "Updated Price : " +this.price;
171
			 "Updated Price : " +this.price;