Skip to content

SES Client

SaltwaterC edited this page Aug 11, 2011 · 8 revisions

Usage mode

var ses = require('aws2js').load('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.
  • If the error argument is null, then the response argument contains a JavaScript object containing the requested data.

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 end point. The client.setRegion() method is not supported for this client.

Clone this wiki locally