scigroup / api-client
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/scigroup/api-client
Requires
- php: >=7.0.0
- psr/http-message: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: dev-master
- phploc/phploc: ^4.0
- phpunit/phpunit: ~5.7.1
This package is not auto-updated.
Last update: 2025-12-07 11:23:25 UTC
README
Usage
- Get a client_id/client_secret pair with
ROLE_OAUTH_SERVERrole. - Initialize an object of the
Clientclass for making requests.
ROLE_OAUTH_SERVER gives access to the following methods
Client::eventSearch
ROLE_OAUTH_TRUSTED_SERVER gives access to the following methods
Client::requestPasswordResettingClient::resetPassword
Example
// Implement HTTPTransportInterface interface
$authenticator = new OAuthAuthenticator('https://base/path/to/auth/endpoint', 'client_id', 'client_secret', new FileTokenStorage(), $HTTPTransport);
$client = new Client('https://base/path', $authenticator, $HTTPTransport);