aliyun_mqs

0.0.2 • Public • Published

阿里云MQS nodejs SDK

install

npm install aliyun_mqs

demo

var MQSClient = require('aliyun_mqs');
 
var client = new MQSClient({
    accessKeyId: 'you accessKeyId',
    accessKeySecret: 'you accessKeySecret',
    url: 'http://{you}.aliyuncs.com'
});
 
//创建队列
client.queue.create('test', {}, function(err, url){
    if(!err){
        //发消息
        client.message.send('test', {
            msg: 'test'
        }, function(err, data){
            console.log(data);
        });
    }
});

Readme

Keywords

Package Sidebar

Install

npm i aliyun_mqs

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • vfasky