feat: Add User-Agent header to Allegro API requests

- Implemented buildUserAgent() method in AllegroApiClient, AllegroOAuthClient, and AllegroTrackingService to include User-Agent header in all HTTP requests to Allegro API.
- Updated .env.example to include APP_VERSION and ALLEGRO_USER_AGENT_URL for configuration.
- Created public /info page to provide application details required by Allegro, including app name, version, description, and contact information.
- Added minimalist layout for public pages to ensure a professional appearance.
- Ensured all changes comply with Allegro's API requirements for User-Agent header.
This commit is contained in:
2026-04-08 20:59:55 +02:00
parent 0f7742f10d
commit c5b2885b44
21 changed files with 827 additions and 22 deletions

View File

@@ -2164,8 +2164,8 @@
},
"show.php": {
"type": "-",
"size": 52009,
"lmtime": 1775559290158,
"size": 53047,
"lmtime": 1775665227986,
"modified": false
}
},
@@ -2360,8 +2360,8 @@
"routes": {
"web.php": {
"type": "-",
"size": 28970,
"lmtime": 1775589926446,
"size": 29085,
"lmtime": 1775665188561,
"modified": false
}
},
@@ -3238,15 +3238,15 @@
},
"ShipmentController.php": {
"type": "-",
"size": 20200,
"lmtime": 1774285889068,
"modified": true
"size": 22456,
"lmtime": 1775665182684,
"modified": false
},
"ShipmentPackageRepository.php": {
"type": "-",
"size": 8836,
"lmtime": 1774296780272,
"modified": true
"size": 9053,
"lmtime": 1775665162030,
"modified": false
},
"ShipmentPresetController.php": {
"type": "-",