zaporylie / oauth2-zuora
Zuora OAuth 2.0 Client Provider
1.0.0
2019-03-11 12:33 UTC
Requires
- league/oauth2-client: ^2.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^6.0
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2024-10-26 04:12:44 UTC
README
Installation
composer require zaporylie/oauth2-zuora:^1.0
Usage
$oauth = new \zaporylie\OAuth2\Client\Provider\Zuora([ 'clientId' => 'id_obtained_from_zuora', 'clientSecret' => 'secret_obtained_from_zuora', // Skip `mode` for production. 'mode' => 'sandbox', ]); try { $token = $oauth->getAccessToken()->getToken(); } catch (IdentityProviderException $exception) { // Something went wrong on Zuora. Check message. }