Subversion Repositories SmartDukaan

Rev

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

Rev 32701 Rev 32702
Line 1309... Line 1309...
1309
        User user = userRepository.selectById(id);
1309
        User user = userRepository.selectById(id);
1310
        AuthUser authUser = authRepository.selectByEmailOrMobile(user.getEmailId());
1310
        AuthUser authUser = authRepository.selectByEmailOrMobile(user.getEmailId());
1311
        String fromMobile = authUser.getMobileNumber();
1311
        String fromMobile = authUser.getMobileNumber();
1312
 
1312
 
1313
        com.spice.profitmandi.dao.entity.user.User fofoUser = userUserRepository.selectById(fofoId);
1313
        com.spice.profitmandi.dao.entity.user.User fofoUser = userUserRepository.selectById(fofoId);
1314
        String toMobile = fofoUser.getMobileNumber();
1314
        String toMobile = retailerService.getAllFofoRetailers().get(fofoId).getMobileNumber();
1315
 
1315
 
1316
        String url = String.format("https://ccs1.smartpingcc.io/v2/clickToCall/para?&user_id=71287091&token=InCfClzwFUtLUW610faI&from=%s&to=%s", fromMobile, toMobile);
1316
        String url = String.format("https://ccs1.smartpingcc.io/v2/clickToCall/para?&user_id=71287091&token=InCfClzwFUtLUW610faI&from=%s&to=%s", fromMobile, toMobile);
1317
        restClient.get(url, null, null);
1317
        restClient.get(url, null, null);
1318
 
1318
 
1319
        return responseSender.ok(true);
1319
        return responseSender.ok(true);