zaporylie/oauth2-zuora

Zuora OAuth 2.0 Client Provider

1.0.0 2019-03-11 12:33 UTC

This package is auto-updated.

Last update: 2024-10-26 04:12:44 UTC


README

Build Status Coverage Status

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.
}