PHP code example of getresponse / oauth2-getresponse
1. Go to this page and download the library: Download getresponse/oauth2-getresponse library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
getresponse / oauth2-getresponse example snippets
$provider = new \Getresponse\Oauth\Provider\Getresponse([
'clientId' => 'CLIENT-ID',
'clientSecret' => 'CLIENT-SECRET'
]);
$provider = new \Getresponse\Oauth\Provider\Getresponse([
'clientId' => 'CLIENT-ID',
'clientSecret' => 'CLIENT-SECRET',
'domain' => 'https://custom-domain.getresponse360.com',
'apiEndpoint' => 'https://api3.getresponse360.com'
]);
bash
composer install
php vendor/bin/phpunit