Subversion Repositories SmartDukaan

Rev

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

Rev 20180 Rev 20185
Line 358... Line 358...
358
    public final static String METHOD_GET = "GET";
358
    public final static String METHOD_GET = "GET";
359
    
359
    
360
    
360
    
361
    public String callRestApi(String apiUrl,String method,Map<String, String> paramsMap, Map<String, String> requestProperty){
361
    public String callRestApi(String apiUrl,String method,Map<String, String> paramsMap, Map<String, String> requestProperty){
362
    	StringBuffer response = new StringBuffer();
362
    	StringBuffer response = new StringBuffer();
363
    	StringBuffer urlParameters= new StringBuffer("?");
363
    	StringBuffer urlParameters= new StringBuffer("");
364
    	try{
364
    	try{
365
 
365
 
366
			if (paramsMap != null) {
366
			if (paramsMap != null) {
367
				for (Entry<String, String> entry : paramsMap.entrySet()) {
367
				for (Entry<String, String> entry : paramsMap.entrySet()) {
368
					urlParameters.append(entry.getKey() + "=" + entry.getValue() + "&");
368
					urlParameters.append(entry.getKey() + "=" + entry.getValue() + "&");