Skip to content

TimDurward/xml-rpc-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny XML-RPC Client

How to use

const { XMLRPCClient } = require('@timdurward/xml-rpc-client'); // Build XML-RPC client with options. const opts = { hostname: 'production.vpn.com', transport_protocol: 'https', port: 943, path: '/RPC2', basic_auth: { user: 'admin', password: 'password' } }; const xmlrpc = new XMLRPCClient(opts); // Pass in an xml-rpc payload to request method // Follow spec https://github.com/TimDurward/xml-rpc-client/blob/master/spec/index.js // Also see official xml-rpc spec for more info http://xmlrpc.com/spec.md const getSummary = { methodCall: [ { methodName: 'GetVPNSummary' }, { params: [] } ] }; xmlrpc.request(getSummary).then(data => console.log(data))

About

Tiny NodeJS XML-RPC Client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published