wpify / mawis-api-php-sdk
**Popis api pro synchronizaci** dat z Wordpress (*Mawis.eu*) na jednotlivé endpointy (*UR/MWP*) na které se budou odesílat data o **registrovaných a upravených uživatelích a provedených nákupech**. Adresy endpointů se nastavují v konfiguraci WordPress, viz administrační příručka.
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-11-05 14:51:48 UTC
README
Popis api pro synchronizaci dat z Wordpress (Mawis.eu) na jednotlivé endpointy (UR/MWP) na které se budou odesílat data o registrovaných a upravených uživatelích a provedených nákupech. Adresy endpointů se nastavují v konfiguraci WordPress, viz administrační příručka.
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://github.com/wpify/mawis-api-php-sdk.git"
}
],
"require": {
"wpify/mawis-api-php-sdk": "*@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');
$apiInstance = new MawisApiClient\Api\DefaultApi(
// 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()
);
$confirm = new \MawisApiClient\Model\Confirm(); // \MawisApiClient\Model\Confirm
try {
$apiInstance->confirmPost($confirm);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->confirmPost: ', $e->getMessage(), PHP_EOL;
}
API Endpoints
All URIs are relative to https://virtserver.swaggerhub.com/HSRO/WEBAPI/1.0
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | confirmPost | POST /confirm | Potvrzení registrace |
DefaultApi | purchasePost | POST /purchase | Odeslání objednávky |
DefaultApi | userIdPut | PUT /user/{id} | Editace uživatelem/Editace účtu správa vstupní bod |
DefaultApi | userPost | POST /user | Registrace uživatele |
Models
Authorization
All endpoints do not require authorization.
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:
1.0
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen