mailchimp / OAuth2-sample-apps

Archived: Sample apps to work with MailChimp's Oauth2 service.
https://developer.mailchimp.com/documentation/mailchimp/guides/how-to-use-oauth2/
38 stars 21 forks source link

Oauth #3

Closed Bitling closed 9 years ago

Bitling commented 9 years ago

Hello Friends I am trying connect my local app using oauth authentication. But When I click it is neither redicting to mailchimp authentication site nor showing any errors or exceptions.

I have followed below steps:

  1. I have created a sample app for it. mentioned
  2. public function __construct() {
    //basically, your redirect_url
    $base =  '192.168.3.57';   //your host
    $path = '/Oauth/complete.php'; //the path on your host

    $client_id = '376179255358';   //client_id from creating app in MC (see README)
    $client_secret = '5d2afe4af54d32bb0bd4229ece4db86b'; //client_secret from creating app in MC  (see README)

    $config = array('client_id'=>$client_id, 'client_secret'=>$client_secret,
                    'authorize_uri'=>'https://login.mailchimp.com/oauth2/authorize',
                    'access_token_uri'=>'https://login.mailchimp.com/oauth2/token',
                    'redirect_uri'=>'http://'.$base.$path,
                    'cookie_support'=>false, 'file_upload'=>false,
                    'token_as_header'=>true,
                    'base_uri'=>'https://login.mailchimp.com/oauth2/'
                    );

    parent::__construct($config);
}

but not working Step 1: Your application begins the authorization process by redirecting the user to the authorize_uri

    - this is a GET request
    - response_type=code, your client_id, and the *urlencoded* redirect_uri are included

authorize_uri = https://login.mailchimp.com/oauth2/authorize?response_type=code&client_id=635959587059&redirect_uri=http%3A%2F%2F192.168.1.8%2Foauth%2Fcomplete.php

toomuchpete commented 9 years ago

Hi @Bitling -- this is not an appropriate venue for MailChimp support. Please reach out through another channel.