Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $hangarClient->setUserAgent("my-app/1.0.0 (contact@example.com)");
### User Agent
It is recommended to set a user agent that identifies your application, ideally including contact information.
If you don't set a user agent, the client sends its own user agent including the installed version,
e.g. `aternos/php-hangar-api/5.1.1`. A user agent set with `setUserAgent()` replaces it.
e.g. `aternos/php-hangar-api/6.0.0`. A user agent set with `setUserAgent()` replaces it.

### Authentication
Most endpoints are public. Some endpoints (e.g. the daily stats of projects and versions or editing pages)
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
invokerPackage: Aternos\HangarApi
artifactVersion: 5.1.1
artifactVersion: 6.0.0
generatorName: php-nextgen
outputDir: .
sourceFolder: src
Expand Down
4 changes: 2 additions & 2 deletions src/Client/HangarAPIClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function __construct(
}

/**
* Get the installed version of this library, e.g. "5.1.1" or "dev-master"
* Get the installed version of this library, e.g. "6.0.0" or "dev-master"
* Returns "unknown" if the version cannot be determined, e.g. if the library was not installed using composer.
*
* @return string
Expand All @@ -104,7 +104,7 @@ public static function getLibraryVersion(): string
}

/**
* Get the user agent that identifies this library, e.g. "aternos/php-hangar-api/5.1.1"
* Get the user agent that identifies this library, e.g. "aternos/php-hangar-api/6.0.0"
* It is used unless a different user agent is set with {@see setUserAgent()}.
*
* @return string
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Configuration
*
* @var string
*/
protected string $userAgent = 'OpenAPI-Generator/5.1.1/PHP';
protected string $userAgent = 'OpenAPI-Generator/6.0.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -466,7 +466,7 @@ public static function toDebugReport(): string
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.0' . PHP_EOL;
$report .= ' SDK Package Version: 5.1.1' . PHP_EOL;
$report .= ' SDK Package Version: 6.0.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
Loading