Skip to content

SQS Client

SaltwaterC edited this page Jan 20, 2012 · 3 revisions

Client loader

aws.load('sqs', [accessKeyId], [secretAccessKey])

Available low level method

sqs.request(action, [query], callback)

The 'action' argument is the action required by the SQS query API itself.

Available helpers

Usage mode

// init the client
var sqs = require('aws2js').load('sqs', accessKeyId, secretAccessKey);

// call something of the SQS query API
sqs.request('action', {foo: 'bar'}, function (error, response) {
	if (error) {
		console.error(error);
	} else {
		console.log(response);
	}
});
Clone this wiki locally