# Europharmacy\EuromedicaClient\CustomersApi All URIs are relative to http://localhost, except if the operation defines another base path. | Method | HTTP request | Description | | ------------- | ------------- | ------------- | | [**apiCustomersGet()**](CustomersApi.md#apiCustomersGet) | **GET** /api/Customers | Αναζήτηση πελατών | | [**apiCustomersIdGet()**](CustomersApi.md#apiCustomersIdGet) | **GET** /api/Customers/{id} | Προβολή πελάτη βάσει Id | | [**apiCustomersPost()**](CustomersApi.md#apiCustomersPost) | **POST** /api/Customers | Εισαγωγή ή επεξεργασία πελάτη | ## `apiCustomersGet()` ```php apiCustomersGet($search_by_name, $search_by_phone, $search_by_amka, $search_by_afm, $page, $size): \Europharmacy\EuromedicaClient\Model\CustomerPagedResponse ``` Αναζήτηση πελατών ### Example ```php setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); $apiInstance = new Europharmacy\EuromedicaClient\Api\CustomersApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $search_by_name = ''; // string | $search_by_phone = ''; // string | $search_by_amka = ''; // string | $search_by_afm = ''; // string | $page = 1; // int | $size = 1000; // int | try { $result = $apiInstance->apiCustomersGet($search_by_name, $search_by_phone, $search_by_amka, $search_by_afm, $page, $size); print_r($result); } catch (Exception $e) { echo 'Exception when calling CustomersApi->apiCustomersGet: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **search_by_name** | **string**| | [optional] [default to ''] | | **search_by_phone** | **string**| | [optional] [default to ''] | | **search_by_amka** | **string**| | [optional] [default to ''] | | **search_by_afm** | **string**| | [optional] [default to ''] | | **page** | **int**| | [optional] [default to 1] | | **size** | **int**| | [optional] [default to 1000] | ### Return type [**\Europharmacy\EuromedicaClient\Model\CustomerPagedResponse**](../Model/CustomerPagedResponse.md) ### Authorization [basic](../../README.md#basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: `application/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) ## `apiCustomersIdGet()` ```php apiCustomersIdGet($id): \Europharmacy\EuromedicaClient\Model\CustomerPagedResponse ``` Προβολή πελάτη βάσει Id ### Example ```php setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); $apiInstance = new Europharmacy\EuromedicaClient\Api\CustomersApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = 56; // int | try { $result = $apiInstance->apiCustomersIdGet($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling CustomersApi->apiCustomersIdGet: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **id** | **int**| | | ### Return type [**\Europharmacy\EuromedicaClient\Model\CustomerPagedResponse**](../Model/CustomerPagedResponse.md) ### Authorization [basic](../../README.md#basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: `application/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) ## `apiCustomersPost()` ```php apiCustomersPost($customer_dto): \Europharmacy\EuromedicaClient\Model\CustomerPagedResponse ``` Εισαγωγή ή επεξεργασία πελάτη ### Example ```php setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); $apiInstance = new Europharmacy\EuromedicaClient\Api\CustomersApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $customer_dto = new \Europharmacy\EuromedicaClient\Model\CustomerDto(); // \Europharmacy\EuromedicaClient\Model\CustomerDto | try { $result = $apiInstance->apiCustomersPost($customer_dto); print_r($result); } catch (Exception $e) { echo 'Exception when calling CustomersApi->apiCustomersPost: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **customer_dto** | [**\Europharmacy\EuromedicaClient\Model\CustomerDto**](../Model/CustomerDto.md)| | [optional] | ### Return type [**\Europharmacy\EuromedicaClient\Model\CustomerPagedResponse**](../Model/CustomerPagedResponse.md) ### Authorization [basic](../../README.md#basic) ### HTTP request headers - **Content-Type**: `application/json-patch+json`, `application/json`, `application/*+json` - **Accept**: `application/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md)