1.1.2 • Published 1 year ago

hamstra-api v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

SwaggerClient-php

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiKey', 'Bearer');

$apiInstance = new Swagger\Client\Api\ConfigurationWizardApi(
    // 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
);
$language = "language_example"; // string | ISO 639-1 code for language. Currently supported: nl and fr

try {
    $result = $apiInstance->configurationWizardGet($language);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ConfigurationWizardApi->configurationWizardGet: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://refactor.api.hamstraonline.vmcluster.nl

ClassMethodHTTP requestDescription
ConfigurationWizardApiconfigurationWizardGetGET /api/configuration-wizard/getEmbedURLGet embedurl for customer based on APIkey authentication
OrderApiorderCreateOrderAsyncPOST /api/orderCreates the order
OrderApiorderOrderQuotationAsyncPUT /api/order/orderQuotationCreates an order for the given quotation
OrderApiorderSaveAsQuotationPUT /api/order/saveAsQuotationCreates a quotation for the given order
OrderApiorderSaveOrderAsyncPUT /api/order/saveOrderCreates or updates the order
OrderApiorderUpdateOrderAsyncPUT /api/orderUpdates the order
OrderApiorderValidateAsyncPOST /api/order/validateValidate the order
ProductApiproductGetAvailableProductsGET /api/productGet the available products for the authenticated user
ProductApiproductGetByIdGET /api/product/{productId}Get the details of a given product
ProductApiproductGetBySkuGET /api/product/sku/{sku}Get the product by product code
ProductApiproductGetConfigurationAsyncGET /api/product/{productId}/configurationGet the configuration of a given product
ProductApiproductGetConfigurationAsync_0POST /api/product/{productId}/configurationGet the configuration of a given product
ProductApiproductGetValidationMessagesAsyncGET /api/product/validationMessagesGet the product option validation messages
QuotationApiquotationDeleteQuotationDELETE /api/quotation/DeleteQuotation/{id}Delete a quotation
QuotationApiquotationGetQuotationLinesGET /api/quotation/getquotationlines/{id}Get the quotation lines by a given quotations
QuotationApiquotationGetQuotationsGET /api/quotation/getquotationsGet the quotations

Documentation For Models

Documentation For Authorization

apiKey

  • Type: API key
  • API key parameter name: apiKey
  • Location: HTTP header

Author

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago