Amazon SQS driver for hooq.io
npm install hooq-provider-amazon-sqs --save
var awsProvider = require('hooq-provider-amazon-sqs');
// Creating a queue
awsProvider.CreateQueueIfNeeded(connectionModel, queueName, function(){
console.log("Created queue");
});
// Pushing to a queue
awsProvider.Push(connectionModel, messageObject, function(){
console.log("Done");
});
Callback contains the queue url
Callback contains the... something
var connectionModel = {
AWSId: 'ID',
AWSSecret: 'SECRET',
Region: 'us-east-1',
QueueUrl: '/364248950191/queue1420506635447'
};