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
Size: 5
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
install --save plesk-api-client
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(...