Subversion Repositories SmartDukaan

Rev

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

Rev 10316 Rev 10317
Line 67... Line 67...
67
		 HttpPost httppost = new HttpPost("https://api.flipkart.net/sellers/skus/"+fksku+"/listings");
67
		 HttpPost httppost = new HttpPost("https://api.flipkart.net/sellers/skus/"+fksku+"/listings");
68
		 StringBuffer jsonRequest = new StringBuffer();
68
		 StringBuffer jsonRequest = new StringBuffer();
69
		 JSONObject outer = new JSONObject();
69
		 JSONObject outer = new JSONObject();
70
    	 JSONObject inner = new JSONObject();
70
    	 JSONObject inner = new JSONObject();
71
    	 outer.put("skuId",fksku);
71
    	 outer.put("skuId",fksku);
72
    	 inner.put("selling_price", price);
72
    	 inner.put("selling_price", new Double(price).intValue());
73
    	 outer.put("attributeValues", inner);
73
    	 outer.put("attributeValues", inner);
74
		 /*jsonRequest.append("{\"skuId\":"+"\""+fksku+
74
		 /*jsonRequest.append("{\"skuId\":"+"\""+fksku+
75
				 "\","+"\"attributeValues\""+":"+
75
				 "\","+"\"attributeValues\""+":"+
76
				 "{\"selling_price\""+":"+"\""+price+
76
				 "{\"selling_price\""+":"+"\""+price+
77
		 "\"}");*/
77
		 "\"}");*/