Skip to content

SNS Client

SaltwaterC edited this page Jan 20, 2012 · 1 revision

Client loader

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

Available low level method

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

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

Available helpers

Usage mode

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

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