node-redmine
node-redmine copied to clipboard
Why not worked?
My host: redmine,company.com/redmine And uesd apiKey: '*********************************'
var Redmine = require('promised-redmine');
var config = require('./config.json').redmine;
var redmine = new Redmine(config);
// get issue
redmine.getIssues({project_id: 1})
.then(function(data) {
console.log("Issues:");
console.log(data);
},
function(err) {
console.log("Error: " + err.message);
return;
}
);
And, what i see in console?
STATUSCODE REJECTIONS 301
ERROR Server returns stats code: 301
......
look npm pakage redminer - this package is worked
Did try different variations of host? Try just company.com instead of company.com/redmine