amazon-sqs

0.0.3 • Public • Published

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}"

Readme

Keywords

none

Package Sidebar

Install

npm i amazon-sqs

Weekly Downloads

1

Version

0.0.3

License

none

Last publish

Collaborators

  • maxtaco