<?php
$headers = [
"Accept: application/json",
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
];
$code = 'AF';
$url = "https://w...content-available-to-author-only...l.int/notices/v1/red?&nationality={$code}&resultPerPage=160";
} else {
echo 'Response: ' . $response;
}
?>
PD9waHAKCiRoZWFkZXJzID0gWwogICAgIkFjY2VwdDogYXBwbGljYXRpb24vanNvbiIsCiAgICAiVXNlci1BZ2VudDogTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEyNy4wLjAuMCBTYWZhcmkvNTM3LjM2IgpdOwoKJGNvZGUgPSAnQUYnOwokdXJsID0gImh0dHBzOi8vdy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ubC5pbnQvbm90aWNlcy92MS9yZWQ/Jm5hdGlvbmFsaXR5PXskY29kZX0mcmVzdWx0UGVyUGFnZT0xNjAiOwoKJGNoID0gY3VybF9pbml0KCk7CgpjdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfVVJMLCAkdXJsKTsKY3VybF9zZXRvcHQoJGNoLCBDVVJMT1BUX1JFVFVSTlRSQU5TRkVSLCB0cnVlKTsKY3VybF9zZXRvcHQoJGNoLCBDVVJMT1BUX0hUVFBIRUFERVIsICRoZWFkZXJzKTsKCiRyZXNwb25zZSA9IGN1cmxfZXhlYygkY2gpOwoKaWYoY3VybF9lcnJubygkY2gpKSB7CiAgICBlY2hvICdFcnJvcjogJyAuIGN1cmxfZXJyb3IoJGNoKTsKfSBlbHNlIHsKICAgIGVjaG8gJ1Jlc3BvbnNlOiAnIC4gJHJlc3BvbnNlOwp9CgpjdXJsX2Nsb3NlKCRjaCk7Cgo/Pg==