0.1.4 • Published 10 years ago

call-conduit v0.1.4

Weekly downloads
6
License
-
Repository
github
Last release
10 years ago

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);
0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago