call-conduit
v0.1.4
Published
Call Conduit programatically
Downloads
10
Readme
call-conduit
Call the phabricator conduit api with Node.js.
Install
npm install call-conduit
Use
// Initialize call conduit according to ~/.arcrc
var callConduit = require('call-conduit')();
callConduit('differential.query', {ids: ['2129']}).then(function(data){
console.log(data);
});
If you don't want to use the contents of ~/.arcrc, you can manually pass in a host object when constructing callConduit, like so:
var myHost: {
'user': 'mycert',
'cert': '...',
'api' 'http://myphabricator.inter.net/api/'
}
};
var callConduit = require('call-conduit')(myHost);