API client for Euromedica
| README.md | ||
OpenAPIClient-php
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
For more information, please visit http://europharmacy.gr/contact/.
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https:////.git"
}
],
"require": {
"/": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php:
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basic
$config = Europharmacy\EuromedicaClient\Configuration::getDefaultConfiguration()
->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;
}
API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CustomersApi | apiCustomersGet | GET /api/Customers | Αναζήτηση πελατών |
| CustomersApi | apiCustomersIdGet | GET /api/Customers/{id} | Προβολή πελάτη βάσει Id |
| CustomersApi | apiCustomersPost | POST /api/Customers | Εισαγωγή ή επεξεργασία πελάτη |
| EshopApi | apiEshopOrderIdPost | POST /api/Eshop/{orderId} | Εισαγωγή / Τροποποίηση παραγγελίας |
| EshopApi | apiEshopStatusGet | GET /api/Eshop/Status | Κατάσταση παραγγελιών |
| MasterDataApi | apiMasterDataCategoriesGet | GET /api/MasterData/Categories | Κατηγορίες (Product.categId) |
| MasterDataApi | apiMasterDataMainCategoriesGet | GET /api/MasterData/MainCategories | Κύριες κατηγορίες (Product.mainCategId) |
| MasterDataApi | apiMasterDataOikoiGet | GET /api/MasterData/Oikoi | Οίκοι (Product.oikosId) |
| MasterDataApi | apiMasterDataOwnersGet | GET /api/MasterData/Owners | Εταιρία (Product.ownerId) |
| MasterDataApi | apiMasterDataPersonalCategoriesGet | GET /api/MasterData/PersonalCategories | Προσωπικές Κατηγορίες (Product.perCatId , Product.perCat2Id , Product.perCat3Id) |
| MasterDataApi | apiMasterDataSubCategoriesGet | GET /api/MasterData/SubCategories | Κατηγορίες (Product.subCategId) |
| MasterDataApi | apiMasterDataVatCaterogiesGet | GET /api/MasterData/VatCaterogies | Κατηφορίες ΦΠΑ |
| ProductsApi | apiProductsBarcodeGet | GET /api/Products/{barcode} | Αναζήτηση βάσει barcode |
| ProductsApi | apiProductsDataboxBarcodePost | POST /api/Products/Databox/{Barcode} | |
| ProductsApi | apiProductsGet | GET /api/Products | Αναζήτηση ειδών |
| WelcomeApi | apiWelcomeGet | GET /api/Welcome | |
| WelcomeApi | apiWelcomeHead | HEAD /api/Welcome | |
| WelcomeApi | apiWelcomeSecureGet | GET /api/Welcome/Secure |
Models
- Billing
- CategoryDto
- CategoryDtoListPagedResponse
- Coupon
- Coupons
- Customer
- CustomerDto
- CustomerPagedResponse
- EOrder
- EOrderPagedResponse
- EOrderStatus
- EOrderStatusPagedResponse
- Fee
- Fees
- Item
- Items
- MainCategoryDto
- MainCategoryDtoPagedResponse
- OikosDto
- OikosDtoPagedResponse
- OwnerDto
- OwnerDtoPagedResponse
- PersonalCategoryDto
- PersonalCategoryDtoPagedResponse
- ProblemDetails
- ProductDto
- ProductDtoPagedResponse
- Shipping
- SubCategoryDto
- SubCategoryDtoPagedResponse
- VatCategoryDto
- VatCategoryDtoPagedResponse
Authorization
Authentication schemes defined for the API:
basic
- Type: HTTP basic authentication
Tests
To run the tests, use:
composer install
vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
v1- Generator version:
7.12.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen