jambtc / q01-php-sdk
SDK PHP per interagire con le REST API tramite autenticazione Bearer Token.
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jambtc/q01-php-sdk
Requires
- php: >=8.0
- guzzlehttp/guzzle: ^7.4.5
- guzzlehttp/psr7: ^2.7
Requires (Dev)
- phpunit/phpunit: ^10.0
README
Q01 PHP SDK รจ una libreria per interagire con REST API protette da Bearer Token.
Installazione
Puoi installare questa libreria tramite Composer:
composer require jambtc/q01-php-sdk
How to use
// Inizializza AuthService con il base URL $authService = new AuthService('https://q01.example.com'); // imposto il token dall'user identity o dal bearer $authService->setToken(Yii::$app->user->identity->apiToken); // Autenticazione $authService->validateToken(); // Inizializza il controller $artsController = new ArtsController($authService); // Ottieni la Lista $arts = $artsController->getAllArts();