| Line 70... |
Line 70... |
| 70 |
// private String ourInventory;
|
70 |
// private String ourInventory;
|
| 71 |
// private String subsidyDiff;
|
71 |
// private String subsidyDiff;
|
| 72 |
|
72 |
|
| 73 |
public String index() throws ClientProtocolException, IOException, JSONException{
|
73 |
public String index() throws ClientProtocolException, IOException, JSONException{
|
| 74 |
DefaultHttpClient client = new DefaultHttpClient();
|
74 |
DefaultHttpClient client = new DefaultHttpClient();
|
| 75 |
HttpGet request = new HttpGet("http://www.snapdeal.com/acors/json/gvbps?supc="+supc+"&catId=91");
|
75 |
HttpGet request = new HttpGet("http://www.snapdeal.com/acors/json/gvbps?supc="+supc+"&catId=175"+"&sort=sellingPrice");
|
| 76 |
org.apache.http.HttpResponse response = client.execute(request);
|
76 |
org.apache.http.HttpResponse response = client.execute(request);
|
| 77 |
|
77 |
|
| 78 |
// Get the response
|
78 |
// Get the response
|
| 79 |
BufferedReader rd = new BufferedReader
|
79 |
BufferedReader rd = new BufferedReader
|
| 80 |
(new InputStreamReader(response.getEntity().getContent()));
|
80 |
(new InputStreamReader(response.getEntity().getContent()));
|