trac-jsonrpc-client
nodejs client for the Trac JSON RPC api.
introduction
Provide simple client to interact with a Trac server via JSONRPC. XmlRpcPlugin must be enabled on server.
Install
> npm install trac-jsonrpc-client
synopsis
Simple low-level call using callRpc
:
var jsonrpc = ; var client = ; cli;
Using proxy client :
var jsonrpc = ; var cli = 'http://trac-host/trac/env/rpc'; cli;
If authentification is required you need to specify a username
and password
:
var jsonrpc = ; var cli = 'http://trac-host/trac/env/login/rpc' auth:username:'tracuser'password:'hehehe' ;