Skip to content

jtbonhomme/redget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redget

Simple utility that fetch data from a redmine project given a query id. It makes a redmine get request ... red-get ... got it ?

Use it a shell utility

Install

% npm install -g redget
% redget <config> | [options]

Options

  --help    -h            display this text
  --version -v            output version
  --host    -t <url>      redmine host url (shall end with /)
  --query   -q <query_id> redmine query id to be used (shall be visible by the specified user)
  --users   -u            get all users (shall be accessible by the specified user)
  --key     -k <apikey>   redmine user api key to be used

Config file

{
  "host":   "http://redmine.org",
  "user":   "foo",
  "passwd": "secret",
  "query":  1234
}

Examples

redget config.json (path shall be relative) redget -t http://redmine.org/projects/myproject/ -q 1234 -k 1A2E3F4D5C671A2E3F4D5C67" redget -t http://redmine.org/ -u

Note: do not forget the trailing '/' at the end of the host url (to be fixed later)

Use it as a javascript lib

Install

% npm install redget --save

Examples

(function(){
  'use strict';
  
  var redget   = require('redget');

  function report(issues) {
    console.log("report " + issues.total_count);
  }

  redget.init({
    host: "https://my_redmine_server/",
    query: 680,
    key: "de6efb5ca50e543f678de6efb5ca50e543f678de6efb5ca50e543f678",
    cb: report
  });
})();

About

Simple utility that fetch data from a redmine project given a query id

Resources

Stars

Watchers

Forks

Packages

No packages published