Path: C:\
<?php
define('URL_HTTP_SiiMP', 'https://transwar.lannister.emitir.me/nfs/search?');
define('API_KEY_SiiMP', '75594207-b5d7-43bf-a7c2-571b3030308d');
require 'RequestAPI.php';
$api = new RequestAPI();
echo "Testing Search by NF (11998):\n";
$res1 = $api->getResponse('11998');
echo "Total records: " . $res1['total'] . "\n";
if ($res1['total'] > 0) {
echo "First record issuer: " . $res1['data'][0]['issuer']['name'] . "\n";
}
echo "\nTesting Search by Key (42260203364555000100550010002308291447031308):\n";
$res2 = $api->getResponse('42260203364555000100550010002308291447031308');
echo "Total records: " . $res2['total'] . "\n";
if ($res2['total'] > 0) {
echo "First record issuer: " . $res2['data'][0]['issuer']['name'] . "\n";
}