diff --git a/app/ApiClients/RipeApi.php b/app/ApiClients/RipeApi.php index 95a1eac6bd..7553ede752 100644 --- a/app/ApiClients/RipeApi.php +++ b/app/ApiClients/RipeApi.php @@ -69,7 +69,7 @@ class RipeApi extends BaseApi private function makeApiCall(string $uri, array $options): mixed { try { - $response_data = $this->getClient()->get($uri, $options)->json(); + $response_data = $this->getClient()->get($uri, $options['query'])->json(); if (isset($response_data['status']) && $response_data['status'] == 'ok') { return $response_data; } else { diff --git a/includes/html/pages/ripenccapi.inc.php b/includes/html/pages/ripenccapi.inc.php index 07af15eeb6..0a503a4bda 100644 --- a/includes/html/pages/ripenccapi.inc.php +++ b/includes/html/pages/ripenccapi.inc.php @@ -18,10 +18,10 @@ $no_refresh = true;
- +
- +

@@ -58,9 +58,9 @@ $no_refresh = true; $.each(data.output.data.records[0], function(row, value) { $('#ripe-output').append(value['key'] + ' = ' + value['value'] + '
'); }); - else if (data.output.data.anti_abuse_contacts.abuse_c) - $.each(data.output.data.anti_abuse_contacts.abuse_c, function(row, value) { - $('#ripe-output').append(value['description'] + ' = ' + value['email'] + '
'); + else if (data.output.data.abuse_contacts) + $.each(data.output.data.abuse_contacts, function(row, value) { + $('#ripe-output').append("email" + ' = ' + value + '
'); }); }, error: function(data) {