Creating a Custom OAuth Application
Creating a Custom OAuth Application
There are two authentication methods available for connecting to Mailchimp: You can use the APIKey or use OAuth.
OAuth can be used to enable other users to access their own data. It is also useful if you want to:
- control branding of the authentication dialog;
- control the redirect URI that the application redirects the user to after the user authenticates; or
- customize the permissions that you are requesting from the user.
To register a custom OAuth application in Mailchimp and obtain the OAuth client credentials, the OAuthClientId and OAuthClientSecret:
- Log into your Mailchimp account.
- Navigate to Account > Extras > API Keys > Register and Manage Your Apps.
- Enter the information you want to be displayed to users when they are prompted to grant permissions to your application. This information includes your app name, company, and website.
- If this is a Desktop application, specify a Redirect URI of http://127.0.0.1.
If this is a Web application, specify a Redirect URI where you would like users to be redirected after they grant permissions to your application.
After you have created and registered a custom OAuth app, users can connect to Mailchimp as described in "Connecting to Mailchimp".