wip
This commit is contained in:
@@ -6,9 +6,13 @@ class ApiTesterController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
|
||||
$curl = curl_init();
|
||||
|
||||
$passport_serie = 'I-AH';
|
||||
$passport_number = '152304';
|
||||
$card_number_masked = '993403******8088';
|
||||
$card_expire_date = '02/34';
|
||||
|
||||
curl_setopt_array($curl, [
|
||||
CURLOPT_URL => 'http://10.3.158.102:9999/api/clientinfo/all',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
@@ -18,7 +22,7 @@ class ApiTesterController extends Controller
|
||||
CURLOPT_FOLLOWLOCATION => true,
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||
CURLOPT_POSTFIELDS => '{ "idSeria": "I-AS", "idNo": "314567", "clientType": "recipient", "cardMaskNumber": "993403******3258", "expDate": "07/49", "fromDate" : "01.01.2020", "toDate" : "09.05.2025" }',
|
||||
CURLOPT_POSTFIELDS => sprintf('{ "idSeria": "%s", "idNo": "%s", "clientType": "recipient", "cardMaskNumber": "%s", "expDate": "%s", "fromDate" : "01.01.2020", "toDate" : "09.05.2025" }', $passport_serie, $passport_number, $card_number_masked, $card_expire_date),
|
||||
CURLOPT_HTTPHEADER => [
|
||||
'Authorization: Basic dGJ1c2VyOlFBWndzeDEyMw==',
|
||||
'Content-Type: application/json',
|
||||
|
||||
Reference in New Issue
Block a user