PHP code example of chadhutchins / oauth2-mailchimp

1. Go to this page and download the library: Download chadhutchins/oauth2-mailchimp 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/ */

    

chadhutchins / oauth2-mailchimp example snippets


$provider = new \Chadhutchins\OAuth2\Client\Provider\Mailchimp([
    'clientId'          => '{mailchimp-client-id}',
    'clientSecret'      => '{mailchimp-client-secret}',
    'redirectUri'       => 'https://example.com/callback-url',
]);