API client for Euromedica
Go to file
2026-02-23 22:22:15 +02:00
.openapi-generator Add generated code 2026-02-23 21:32:04 +02:00
docs Add generated code 2026-02-23 21:32:04 +02:00
lib Add generated code 2026-02-23 21:32:04 +02:00
test Add generated code 2026-02-23 21:32:04 +02:00
.gitignore Add generated code 2026-02-23 21:32:04 +02:00
.openapi-generator-ignore Add generated code 2026-02-23 21:32:04 +02:00
.php-cs-fixer.dist.php Add generated code 2026-02-23 21:32:04 +02:00
.travis.yml Add generated code 2026-02-23 21:32:04 +02:00
composer.json Mark library compatible with PHP 8.2 2026-02-23 21:59:43 +02:00
git_push.sh Add generated code 2026-02-23 21:32:04 +02:00
phpunit.xml.dist Add generated code 2026-02-23 21:32:04 +02:00
README.md Minor updates to README.md 2026-02-23 22:22:15 +02:00

EuromedicaClient (php)

This is an auto-generated client for Euromedica web API

For more information, please visit http://europharmacy.gr/contact/.

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0-8.2.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://git.dev.precisionlab.gr/pse-pub/euromedica-client.git"
    }
  ],
  "require": {
    "europharmacy/euromedica-client": "dev-main"
  }
}

Then run composer install

Getting Started

Please follow the installation procedure and then run the following:

<?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

Authorization

Authentication schemes defined for the API:

basic

  • Type: HTTP basic authentication

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

development@europharmacy.gr

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: v1
    • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen