getresponse / oauth2-getresponse
GetResponse OAuth 2.0 Client Provider for thephpleague/oauth2-client
Installs: 59
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 0
Open Issues: 0
pkg:composer/getresponse/oauth2-getresponse
Requires
- php: >=5.6
- league/oauth2-client: ^2.2
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2025-10-09 02:57:37 UTC
README
This package implements a GetResponse OAuth 2.0 provider for thephpleague/oauth2-client library.
Installation
Recommended way to install the package is by using composer:
composer require getresponse/oauth2-getresponse
Usage
Basic provider construction:
<?php $provider = new \Getresponse\Oauth\Provider\Getresponse([ 'clientId' => 'CLIENT-ID', 'clientSecret' => 'CLIENT-SECRET' ]);
It's also possible to set a custom domain and an API endpoint, which is useful when authorizing GetResponse 360 customers:
<?php $provider = new \Getresponse\Oauth\Provider\Getresponse([ 'clientId' => 'CLIENT-ID', 'clientSecret' => 'CLIENT-SECRET', 'domain' => 'https://custom-domain.getresponse360.com', 'apiEndpoint' => 'https://api3.getresponse360.com' ]);
Please refer to the oauth2-client documentation for a full OAuth 2.0 flow example.
Documentation
Running tests
To run unit tests, issue the following commands:
composer install php vendor/bin/phpunit