Skip to content

Commit

Permalink
Fixed namespace issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dovereem committed Sep 22, 2022
1 parent 2deafe1 commit 67b2e8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Because this is Open Data provided by the government an API key is not needed.
## Usage:

```
$rdwApiClient = new \DOvereem\RdwApiClient\RdwApiClient();
$rdwApiClient = new \DOvereem\RDW\RDWOpenDataApiClient\RDWOpenDataApiClient;
$vehicleData = $rdwApiClient->getLicensedVehicleDataByLicensePlateNumber("AA-BB-CC");
```

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use GuzzleHttp\Psr7\Response;
use JsonException;

class RdwApiClient
class RDWOpenDataApiClient
{
protected function createGuzzleClient(): Client
{
Expand Down Expand Up @@ -59,7 +59,7 @@ public function getLicensedVehicleDataByLicensePlateNumber(string $licensePlateN
$licensePlateNumber = $this->normalizeLicensePlateNumber($licensePlateNumber);

$response = $this->createGuzzleClient()->get(
RdwApiEndpoints::LICENCED_VEHICLES,
RDWOpenDataApiEndpoints::LICENCED_VEHICLES,
[
'query' => $this->createQuery('kenteken', $licensePlateNumber)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace DOvereem\RDW\RDWOpenDataApiClient;

class RdwApiEndpoints
class RDWOpenDataApiEndpoints
{
const LICENCED_VEHICLES = "https://opendata.rdw.nl/resource/m9d7-ebf2.json";
const LICENCED_VEHICLES_AXLES = "https://opendata.rdw.nl/resource/3huj-srit.json";
Expand Down

0 comments on commit 67b2e8f

Please sign in to comment.