zaporylie/oauth2-zuora

Zuora OAuth 2.0 客户端提供商

1.0.0 2019-03-11 12:33 UTC

This package is auto-updated.

Last update: 2024-08-26 03:46:12 UTC


README

Build Status Coverage Status

安装

composer require zaporylie/oauth2-zuora:^1.0

用法

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