cdma-numiscorner/allegro-sdk

https://developer.allegro.pl/about Documentation is generated from [this](https://developer.allegro.pl/swagger.yaml) OpenAPI 3.0 specification file.

1.0.2 2023-01-27 13:59 UTC

This package is auto-updated.

Last update: 2024-10-27 17:33:43 UTC


README

https://developer.allegro.pl/about

Documentation is generated from this OpenAPI 3.0 specification file.

For more information, please visit https://github.com/allegro/allegro-api/issues.

Installation & Usage

Requirements

PHP 7.2 and later.

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/cdma-numiscorner/allegro-sdk.git"
    }
  ],
  "require": {
    "cdma-numiscorner/allegro-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');



// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = OpenAPI\AllegroSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\AllegroSdk\Api\AdditionalServicesApi(
    // 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
);
$additional_services_group_request = new \OpenAPI\AllegroSdk\Model\AdditionalServicesGroupRequest(); // \OpenAPI\AllegroSdk\Model\AdditionalServicesGroupRequest | Additional service group body

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

API Endpoints

All URIs are relative to https://api.allegro.pl

Models

Authorization

bearer-token-for-application

  • Type: OAuth
  • Flow: application
  • Authorization URL: ``
  • Scopes: N/A

bearer-token-for-user

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://allegro.pl/auth/oauth/authorize
  • Scopes: N/A

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: latest
    • Package version: 1.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen