| Line 470... |
Line 470... |
| 470 |
@RequestMapping(value = "/mobileappsettings", method = RequestMethod.POST)
|
470 |
@RequestMapping(value = "/mobileappsettings", method = RequestMethod.POST)
|
| 471 |
public ResponseEntity<?> mobileAppSettings(HttpServletRequest request, @RequestParam(name = "t") int timestamp,
|
471 |
public ResponseEntity<?> mobileAppSettings(HttpServletRequest request, @RequestParam(name = "t") int timestamp,
|
| 472 |
@RequestParam(name = "imeinumber") String imeinumber)
|
472 |
@RequestParam(name = "imeinumber") String imeinumber)
|
| 473 |
throws ProfitMandiBusinessException, ClientProtocolException, IOException {
|
473 |
throws ProfitMandiBusinessException, ClientProtocolException, IOException {
|
| 474 |
|
474 |
|
| 475 |
final String uri = "http://api.profittill.com/mobileappsettings?t=" + timestamp + "&imeinumber=" + imeinumber;
|
475 |
final String uri = "http://192.168.158.89/mobileappsettings?t=" + timestamp + "&imeinumber=" + imeinumber;
|
| 476 |
final String BASIC_AUTH = "Basic " + Base64.getEncoder().encodeToString("dtr:dtr18Feb2015".getBytes());
|
476 |
final String BASIC_AUTH = "Basic " + Base64.getEncoder().encodeToString("dtr:dtr18Feb2015".getBytes());
|
| 477 |
Map<String, String> headers = new HashMap<>();
|
477 |
Map<String, String> headers = new HashMap<>();
|
| 478 |
Map<String, String> params = new HashMap<>();
|
478 |
Map<String, String> params = new HashMap<>();
|
| 479 |
headers.put("Authorization", BASIC_AUTH);
|
479 |
headers.put("Authorization", BASIC_AUTH);
|
| 480 |
return responseSender.ok(restClient.post(uri, params, headers));
|
480 |
return responseSender.ok(restClient.post(uri, params, headers));
|