-
Notifications
You must be signed in to change notification settings - Fork 32
SNS Client
SaltwaterC edited this page Jan 20, 2012
·
1 revision
aws.load('sns', [accessKeyId], [secretAccessKey])
sns.request(action, [query], callback)
The 'action' argument is the action required by the SNS query API itself.
- sns.setCredentials(accessKeyId, secretAccessKey)
- sns.setRegion(region)
- sns.setMaxSockets(numberOfSockets)
- sns.getEndPoint()
- sns.getApiVersion()
- sns.setApiVersion(apiVersion)
// 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);
}
});