kruegge82/shipstage-php-sdk

Wenn Sie die API verwenden möchten, wenden Sie sich bitte an den Support, um ein Authentifizierungstoken zu erhalten.

0.0.4 2025-02-04 08:48 UTC

This package is auto-updated.

Last update: 2025-04-04 09:13:20 UTC


README

Wenn Sie die API verwenden möchten, wenden Sie sich bitte an den Support, um ein Authentifizierungstoken zu erhalten.

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@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 Bearer authorization: TokenAuth
$config = kruegge82\shipstage\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new kruegge82\shipstage\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(),
    $config
);
$data = new \kruegge82\shipstage\Model\Data(); // \kruegge82\shipstage\Model\Data

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

API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi api2ViewsCreatePackage POST /api/v2.0/package/create/ Create Package
DefaultApi api2ViewsGetLabel GET /api/v2.0/package/{package_id}/label Get Label
DefaultApi api2ViewsGetPackage GET /api/v2.0/package/{package_id}/ Get Package

Models

Authorization

TokenAuth

  • Type: Bearer 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: 2.0
    • Generator version: 7.11.0
  • Build package: org.openapitools.codegen.languages.PhpNextgenClientCodegen