Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

plesk-api-client

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plesk-api-client

Plesk XML-RPC API Client

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Plesk XML-RPC API Client for Node.js

Installation

npm install --save plesk-api-client

Usage

Basic usage:

const pleskApi = require('plesk-api-client');
...
request =
`<packet>
  <server>
    <get_protos/>
  </server>
</packet>`;
...
const client = new pleskApi.Client(host);
client.setCredentials(login, password);
client.request(request, (response) => {
    ...
});

Usage with promise:

...
client.request(request)
  .then((response) => {
    console.log(response);
  })
  .catch((error) => {
    console.log(error);
  });

Usage with self-signed certificates on 8443 port:

process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
...
client.request(...

FAQs

Package last updated on 24 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc