Skip to content

Commit f9e1158

Browse files
committed
contact endpoint change
1 parent f96cee6 commit f9e1158

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ $api->setCacheInterface($cacheInterface);
5252
### 🔚 Contact Endpoint
5353

5454
```php
55-
5655
// get a page
5756
/** @var \exbil\LexOffice\LexOfficeClient $api */
5857
$client = $api->contact();
@@ -62,14 +61,14 @@ $client->sortDirection = 'ASC';
6261
$client->sortProperty = 'name';
6362

6463
// get a page
65-
$response = $client->getPage(0);
64+
$response = $client->contact()->getPage(0);
6665

6766
//get all
68-
$response = $client->getAll();
67+
$response = $client->contact()->getAll();
6968

7069
// other methods
71-
$response = $client->get($entityId);
72-
$response = $client->create($data);
70+
$response = $client->contact()->get($entityId);
71+
$response = $client->contact()->create($data);
7372
```
7473

7574
### 🗺️ Country Endpoint

0 commit comments

Comments
 (0)