Skip to content

SES Client

SaltwaterC edited this page Jul 11, 2011 · 8 revisions

Usage mode

var ses = require('aws2js').ses;

// it is mandatory to set the AWS credentials
ses.setCredentials('accessKeyId', 'secretAccessKey'); 

// call something of the SES query API
ses.call('action', query, function (error, response) {
	if (error) {
		console.error(error);
		console.error(response);
	} else {
		console.log(response);
	}
});

ses.call reference

  • The 'action' parameter is the action required by the SES query API itself.
  • The query parameter is an object containing the query parameters of the API.
  • The callback arguments, error + response:
  • If there's an error, it is returned as the error argument of the callback. For more details follow: HTTP Errors, XML Parser.
  • The response argument contains a JavaScript object containing the details about the request. In case of error, the response argument contains the parsed XML of the error returned by the SES API.

Notice

The SES API doesn't have region support. Currently it is supported just for the us-east-1 region. It has just a single entry point. The client.setRegion() call is not supported for this client.

Clone this wiki locally