Subversion Repositories SmartDukaan

Rev

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

Rev 27457 Rev 27458
Line 1141... Line 1141...
1141
		Response response = client.newCall(request1).execute();
1141
		Response response = client.newCall(request1).execute();
1142
 
1142
 
1143
		LOGGER.info("response" + response.body().string());
1143
		LOGGER.info("response" + response.body().string());
1144
	}
1144
	}
1145
 
1145
 
1146
	@RequestMapping(value = "/deletegeofence", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)
-
 
1147
	public void deleteGeofences(List<String> geofenceIds) throws IOException, ProfitMandiBusinessException {
1146
	public void deleteGeofences(List<String> geofenceIds) throws IOException, ProfitMandiBusinessException {
1148
		OkHttpClient client = new OkHttpClient();
1147
		OkHttpClient client = new OkHttpClient();
1149
 
1148
 
1150
		String authString = "Basic "
1149
		String authString = "Basic "
1151
				+ Base64.getEncoder().encodeToString(String.format("%s:%s", ACCOUNT_ID, SECRET_KEY).getBytes());
1150
				+ Base64.getEncoder().encodeToString(String.format("%s:%s", ACCOUNT_ID, SECRET_KEY).getBytes());