|
1 | | -# Dropbox Provider for OAuth 2.0 Client |
| 1 | +# Payping Provider for OAuth 2.0 Client |
2 | 2 |
|
3 | | -[](https://github.com/stevenmaguire/oauth2-dropbox/releases) |
4 | | -[](LICENSE.md) |
5 | | -[](https://travis-ci.org/stevenmaguire/oauth2-dropbox) |
6 | | -[](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-dropbox/code-structure) |
7 | | -[](https://scrutinizer-ci.com/g/stevenmaguire/oauth2-dropbox) |
8 | | -[](https://packagist.org/packages/stevenmaguire/oauth2-dropbox) |
9 | | - |
10 | | -This package provides Dropbox OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client). |
| 3 | +This package provides Payping OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client). |
11 | 4 |
|
12 | 5 | ## Installation |
13 | 6 |
|
14 | 7 | To install, use composer: |
15 | 8 |
|
16 | 9 | ``` |
17 | | -composer require stevenmaguire/oauth2-dropbox |
18 | | -``` |
19 | | - |
20 | | -**Note:** Due API deprecation, we dropped support to Dropbox API v1. If you need use v1, please use `^2.0.0` version constraint: |
21 | | - |
22 | | -``` |
23 | | -composer require "stevenmaguire/oauth2-dropbox:^2.0.0" |
| 10 | +composer require flotfeali/oauth2-payping-client |
24 | 11 | ``` |
25 | | - |
26 | 12 | ## Usage |
27 | 13 |
|
28 | | -Usage is the same as The League's OAuth client, using `\Stevenmaguire\OAuth2\Client\Provider\Dropbox` as the provider. |
| 14 | +Usage is the same as The League's OAuth client, using `\Stevenmaguire\OAuth2\Client\Provider\PayPing` as the provider. |
29 | 15 |
|
30 | 16 | ### Authorization Code Flow |
31 | 17 |
|
32 | 18 | ```php |
33 | | -$provider = new Stevenmaguire\OAuth2\Client\Provider\Dropbox([ |
| 19 | +$provider = new PayPing\OAuth2\Client\Provider\PayPing([ |
34 | 20 | 'clientId' => '{dropbox-client-id}', |
35 | 21 | 'clientSecret' => '{dropbox-client-secret}', |
36 | 22 | 'redirectUri' => 'https://example.com/callback-url' |
@@ -76,27 +62,3 @@ if (!isset($_GET['code'])) { |
76 | 62 | echo $token->getToken(); |
77 | 63 | } |
78 | 64 | ``` |
79 | | - |
80 | | -## Refreshing a Token |
81 | | -Dropbox's OAuth implementation does not use refresh tokens. Access tokens are valid until a user revokes access manually, or until an app deauthorizes itself. |
82 | | - |
83 | | -## Testing |
84 | | - |
85 | | -``` bash |
86 | | -$ ./vendor/bin/phpunit |
87 | | -``` |
88 | | - |
89 | | -## Contributing |
90 | | - |
91 | | -Please see [CONTRIBUTING](https://github.com/stevenmaguire/oauth2-dropbox/blob/master/CONTRIBUTING.md) for details. |
92 | | - |
93 | | - |
94 | | -## Credits |
95 | | - |
96 | | -- [Steven Maguire](https://github.com/stevenmaguire) |
97 | | -- [All Contributors](https://github.com/stevenmaguire/oauth2-dropbox/contributors) |
98 | | - |
99 | | - |
100 | | -## License |
101 | | - |
102 | | -The MIT License (MIT). Please see [License File](https://github.com/stevenmaguire/oauth2-dropbox/blob/master/LICENSE) for more information. |
0 commit comments