PHP code example of kruegge82 / goexpress
1. Go to this page and download the library: Download kruegge82/goexpress library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kruegge82 / goexpress example snippets
Configure HTTP basic authorization: basicAuth
$config = kruegge82\goexpress\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new kruegge82\goexpress\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
);
$label_request = new \kruegge82\goexpress\Model\LabelRequest(); // \kruegge82\goexpress\Model\LabelRequest
try {
$apiInstance->labelApiV1GenerateLabelForhwbPost($label_request);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->labelApiV1GenerateLabelForhwbPost: ', $e->getMessage(), PHP_EOL;
}