plesk/api-node-client

Name: api-node-client

Owner: Plesk

Description: Plesk XML-RPC API Client for Node.js

Created: 2016-06-23 16:29:37.0

Updated: 2017-01-24 15:40:54.0

Pushed: 2017-03-08 16:02:27.0

Homepage:

Size: 5

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Plesk XML-RPC API Client for Node.js

Installation
install --save plesk-api-client
Usage

Basic usage:

t pleskApi = require('plesk-api-client');

est =
cket>
erver>
<get_protos/>
server>
cket>`;

t client = new pleskApi.Client(host);
nt.setCredentials(login, password);
nt.request(request, (response) => {
...

Usage with promise:


nt.request(request)
hen((response) => {
console.log(response);

atch((error) => {
console.log(error);
;

Usage with self-signed certificates on 8443 port:

ess.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

nt.request(...

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.