Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typo #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ All of the API categories and methods described in the MailChimp API v2.0 Docume
* `section` The section of the API method to call (e.g. 'campaigns').
* `method` The method to call in the given section.
* `params` Parameters to pass to the API method.
* `callback` Callback function for returned data or errors with two parameters. The first one being an error object which is null when no error occured, the second one an object with all information retrieved as long as no error occured.
* `callback` Callback function for returned data or errors with two parameters. The first one being an error object which is null when no error occurred, the second one an object with all information retrieved as long as no error occurred.

Example:

Expand Down Expand Up @@ -106,7 +106,7 @@ _MailChimpAPI_ takes two arguments. The first argument is your API key, which yo
* `secure` Whether or not to use secure connections over HTTPS (true/false). Defaults to false.
* `userAgent` Custom User-Agent description to use in the request header.

The callback function for each API method gets two arguments. The first one is an error object which is null when no error occured, the second one an object with all information retrieved as long as no error occured.
The callback function for each API method gets two arguments. The first one is an error object which is null when no error occurred, the second one an object with all information retrieved as long as no error occurred.

Example:

Expand Down Expand Up @@ -144,7 +144,7 @@ _MailChimpExportAPI_ takes two arguments. The first argument is your API key, wh
* `secure` Whether or not to use secure connections over HTTPS (true/false). Defaults to false.
* `userAgent` Custom User-Agent description to use in the request header.

The callback function for each API method gets two arguments. The first one is an error object which is null when no error occured, the second one an object with all information retrieved as long as no error occured.
The callback function for each API method gets two arguments. The first one is an error object which is null when no error occurred, the second one an object with all information retrieved as long as no error occurred.

Example:

Expand Down Expand Up @@ -219,7 +219,7 @@ These fields are not needed if ownServer is false
* `secure` Credentials in the form {key:path to ssl key file, cert: path to ssl certificate file} . If present HTTPS support is enabled for the server. Defaults to false.

You can register the following events:
* `error` This event is emitted when an error occured and receives one argument that contains the error message.
* `error` This event is emitted when an error occurred and receives one argument that contains the error message.
* `authed` Emitted when the OAuth was completed successfully. Receives one argument which represents the API key in custom object with metadata that can be passed on to other API functionality.

Example:
Expand Down Expand Up @@ -271,7 +271,7 @@ _MailChimpPartnerAPI_ takes two arguments. The first argument is your app key, w
* `secure` Whether or not to use secure connections over HTTPS (true/false). Defaults to false.
* `userAgent` Custom User-Agent description to use in the request header.

The callback function for each API method gets two arguments. The first one is an error object which is null when no error occured, the second one an object with all information retrieved as long as no error occured.
The callback function for each API method gets two arguments. The first one is an error object which is null when no error occurred, the second one an object with all information retrieved as long as no error occurred.

Example:

Expand Down Expand Up @@ -307,7 +307,7 @@ All of the API categories and methods described in the Mandrill API Documentatio
* `category` The category of the API method to call (e.g. 'users').
* `method` The method to call in the given category.
* `params` Parameters to pass to the API method.
* `callback` Callback function for returned data or errors with two parameters. The first one being an error object which is null when no error occured, the second one an object with all information retrieved as long as no error occured.
* `callback` Callback function for returned data or errors with two parameters. The first one being an error object which is null when no error occurred, the second one an object with all information retrieved as long as no error occurred.

```javascript
var MandrillAPI = require('mailchimp').MandrillAPI;
Expand Down