Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor text and example changes

  • Loading branch information...
commit 49bc28a1007605b84d42ab5021c6087dcba56be8 1 parent 5287ea6
@gomfunkel authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -15,7 +15,7 @@ Further information on the MailChimp API and its features is available at [http:
## Attention: API changes in 0.9.0
-Version 0.9.0 of _node-mailchimp_ changed the API so that most of your existing applications developed with earlier versions will most probably break. The reason for the changes is being more compliant to node.js code conventions regarding error handling. Please make sure that your applications are refactored to use the new API when updating.
+Version 0.9.0 of _node-mailchimp_ changed the API so that your existing applications developed with earlier versions will most probably break. The reason for the changes is being more compliant to node.js code conventions regarding error handling. Please make sure that your applications are refactored to use the new API when updating.
The two important changes are:
@@ -134,7 +134,7 @@ var MailChimpWebhook = require('mailchimp').MailChimpWebhook;
var webhook = new MailChimpWebhook();
webhook.on('error', function (message) {
- console.log('Error: '+message);
+ console.log(error.message);
});
webhook.on('subscribe', function (data, meta) {
@@ -211,7 +211,7 @@ var oauth = new MailChimpOAuth(options);
console.log(oauth.getAuthorizeUri()); // The MailChimp login URI the user needs to be sent to
oauth.on('error', function (message) {
- console.log('Error: '+message);
+ console.log(error.message);
});
oauth.on('authed', function (apiKey) {
Please sign in to comment.
Something went wrong with that request. Please try again.