-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new contact filters for email and name
It should be possible to filter by email address or / and name as described in the API. References: - https://developers.lexoffice.io/docs/#contacts-endpoint-purpose
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,8 @@ $client = $api->contact(); | |
|
||
// filters | ||
$client->size = 100; | ||
$client->email = '[email protected]'; | ||
$client->name = 'John Doe'; | ||
$client->number = 123456; | ||
$client->customer = true; | ||
$client->vendor = false; | ||
|
@@ -279,4 +281,4 @@ $response = $client->getPage(0); | |
// can be possible null because the response body can be empty | ||
$json = \Sysix\LexOffice\Utils::getJsonFromResponse($response); // as object | ||
$json = \Sysix\LexOffice\Utils::getJsonFromResponse($response, true); // as associative array | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters