Node interface to Amazon SQS
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
Cakefile
README.md
amzn-auth.txt
boto.output
package.json
sqs-api.pdf

README.md

node-amazon-sqs

Node interface to Amazon SQS, supports the following actions:

  • ReceiveMessages
  • DeleteMessage

Install

npm install -g amazon-sqs

Building

icake build

Using

SQS = require 'amazon-sqs'

conn = new SQS.Connection 
  accessKeyId : "your-access-key-id"
  secretAccessKey: "your-secret-access-key"

topic = conn.createTopic
  owner : "numeric-owner-id"
  topic : "topic-name"

topic.receiveMessage (err, data) ->
  console.log "done! Err=#{JSON.stringify err}; data=#{JSON.stringify data}"
topic.deleteMessage myReceiptHandle (err) ->
  console.log "done! Err=#{JSON.stringify err}"