**NOTE:**This is not official release from Softlayer, an IBM Company. Use this module at your own risk. Owner is not responsible for any kind of damage.
Please refer http://sldn.softlayer.com/reference/messagequeueapi for more details.
To use this library you need a Softlayer message queue credential details, Which contain Account ID, User name & API key.The client has the following features:
Queue
Creates a new queue
Pushes a message to a queue
Pops messages from a queue
Get details of a queue
Lists all queues
Deletes a message from a queue
Deletes a queue
Topic
Creates a new topic
Adds a subscription to a topic
Pushes a message to a topic
Lists all topics
Get details of a topic
Lists subscriptions on a topic
Deletes a subscription
Deletes a topic
Account
Authenticate and receive an auth token
Show Requests/Notifications made for the current account
Other
Ping the service
Installation
$ npm install softlayer-message-queue
Usages
Creates a new Client
var mq =require('softlayer-message-queue');
//Create a new client using accountID, UserName & API Key
var client =newmq.MessageClient(<accountID>,<UserName>,<API Key>);
//Set Datacenter to Get Endpoint. Please pass 'true' to get private endpoint url and 'false' to use public url.
After creating a client you have to call client.Authenticate() to authenticate the client, it will provide a API Token and this API token will be used in consecutive call.
Creates a new queue
var queue =newmq.Queue("testQueue1",100,5000,["testTags"]);