Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaporylie/oauth2-zuora
https://github.com/zaporylie/oauth2-zuora
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zaporylie/oauth2-zuora
- Owner: zaporylie
- Created: 2019-03-01T12:02:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-25T15:11:41.000Z (over 5 years ago)
- Last Synced: 2024-10-12T01:43:38.974Z (2 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Zuora OAuth2 Client Provider
====
[![Build Status](https://travis-ci.org/zaporylie/oauth2-zuora.svg?branch=master)](https://travis-ci.org/zaporylie/oauth2-zuora)
[![Coverage Status](https://coveralls.io/repos/github/zaporylie/oauth2-zuora/badge.svg?branch=master)](https://coveralls.io/github/zaporylie/oauth2-zuora?branch=master)# Installation
```bash
composer require zaporylie/oauth2-zuora:^1.0
```# Usage
```php
$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.
}
```