Skip to content

Commit d32f259

Browse files
authored
Merge pull request #63 from rensieeee/feature/api-update
[FEATURE][DRRS-47] - Updated postcode api url with new url to keep co…
2 parents d8b5cb9 + 00a2e35 commit d32f259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Helper/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class Data extends AbstractHelper
2222
{
2323
const API_TIMEOUT = 3;
24-
const API_URL = 'https://api.postcode.nl';
24+
const API_URL = 'https://api.postcode.eu';
2525

2626
const EXCEPTION_NOT_AUTHORIZED = 'PostcodeNl_Controller_Plugin_HttpBasicAuthentication_NotAuthorizedException';
2727
const EXCEPTION_PASSWORD_NOT_CORRECT =
@@ -141,7 +141,7 @@ public function lookupAddress(string $postcode, string $houseNumber, string $hou
141141
$urlEncPostcode = rawurlencode($postcode);
142142
$urlEncHousenumber = rawurlencode($houseNumber);
143143
$urlEncHousenumberAdd = rawurlencode($houseNumberAddition);
144-
$url = "{$this->getServiceUrl()}/rest/addresses/{$urlEncPostcode}/{$urlEncHousenumber}/{$urlEncHousenumberAdd}";
144+
$url = "{$this->getServiceUrl()}/nl/v1/addresses/postcode/{$urlEncPostcode}/{$urlEncHousenumber}/{$urlEncHousenumberAdd}";
145145

146146
$jsonData = $this->callApiUrlGet($url);
147147

0 commit comments

Comments
 (0)