在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:node-redmine开源软件地址:https://gitee.com/zanran/node-redmine开源软件介绍:node-redminenode-redmine is a nodejs library that supports 100% the Redmine's REST API's features. InstallationTo install node-redmine, simply: npm install node-redmine Usagevar Redmine = require('node-redmine');// protocol required in Hostname, supports both HTTP and HTTPSvar hostname = process.env.REDMINE_HOST || 'http://redmine.zanran.me';var config = { apiKey: process.env.REDMINE_APIKEY || 'bed1ba0544b681e530c2447341607f423c9c8781'};var redmine = new Redmine(hostname, config);/** * Dump issue */var dump_issue = function(issue) { console.log('Dumping issue:'); for (var item in issue) { console.log(' ' + item + ': ' + JSON.stringify(issue[item])); }};redmine.issues({limit: 2}, function(err, data) { if (err) throw err; for (var i in data.issues) { dump_issue(data.issues[i]); } console.log('total_count: ' + data.total_count);}); Supported features for Redmine REST API
Links
Notice
|
请发表评论