wip
This commit is contained in:
@@ -11,7 +11,7 @@ class ApiTesterController extends Controller
|
||||
$curl = curl_init();
|
||||
|
||||
curl_setopt_array($curl, [
|
||||
CURLOPT_URL => 'http://10.3.158.102:9999/api/clientinfo/all',
|
||||
CURLOPT_URL => 'http://10.3.158.102:9999/api/clientcardinfo',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_ENCODING => '',
|
||||
CURLOPT_MAXREDIRS => 10,
|
||||
@@ -19,7 +19,12 @@ class ApiTesterController extends Controller
|
||||
CURLOPT_FOLLOWLOCATION => true,
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||
CURLOPT_POSTFIELDS => '{ "idSeria": "I-AH", "idNo": "152304", "clientType": "recipient", "cardMaskNumber": "993403******8088", "expDate": "02/34", "fromDate" : "01.01.2020", "toDate" : "09.05.2025" }',
|
||||
CURLOPT_POSTFIELDS => '{
|
||||
"idSeria": "I-AH",
|
||||
"idNo": "152304",
|
||||
"cardMaskNumber": "993403******8088",
|
||||
"expDate": "02/34"
|
||||
}',
|
||||
CURLOPT_HTTPHEADER => [
|
||||
'Authorization: Basic dGJ1c2VyOlFBWndzeDEyMw==',
|
||||
'Content-Type: application/json',
|
||||
|
||||
@@ -75,7 +75,7 @@ class DownloadCardBalance extends Action
|
||||
{
|
||||
$curl = curl_init();
|
||||
|
||||
curl_setopt_array($curl, array(
|
||||
curl_setopt_array($curl, [
|
||||
CURLOPT_URL => 'http://10.3.158.102:9999/api/clientcardinfo',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_ENCODING => '',
|
||||
@@ -90,11 +90,11 @@ class DownloadCardBalance extends Action
|
||||
"cardMaskNumber": "%s",
|
||||
"expDate": "%s"
|
||||
}', $passport_serie, $passport_id, $card_masked, $card_expire_date),
|
||||
CURLOPT_HTTPHEADER => array(
|
||||
CURLOPT_HTTPHEADER => [
|
||||
'Authorization: Basic dGJ1c2VyOlFBWndzeDEyMw==',
|
||||
'Content-Type: application/json'
|
||||
),
|
||||
));
|
||||
'Content-Type: application/json',
|
||||
],
|
||||
]);
|
||||
|
||||
$response = curl_exec($curl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user