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

webfaction-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webfaction-api

Node.js wrapper for Webfaction XML-RPC API

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Webfaction API

This is a Node.js wrapper for Webfaction's XML-RPC API. It's currently incomplete but functional for the parts of the API it supports (listed below). Use at your own risk. Be careful with destructive operations.

It needs tests, better error handling, and coverage for the other sections of the API (email, DNS, etc). Contributions welcome!

Basic Usage

var Webfaction = require('./lib/webfaction');

var webfaction = new Webfaction('username', 'password');

webfaction.login(function(result) {
  
  webfaction.listDomains(function(result) {
    console.log(result);
  });

  webfaction.createWebsite({
    website_name : 'example',
    ip: '123.45.67.89',
    https: false,
    subdomains: ['www.example.com'],
    site_apps: [ ['node', '/'] ]
  },
  function(result) {
    console.log(result);
  });

});

API

Supported API Calls

  • Domains
    • Create Domain
    • Delete Domain
    • List Domains
  • Applications
    • Create Application
    • Delete Application
    • List Applications
    • List Application Types
  • Websites
    • Create Website
    • Update Website
    • Delete Website
    • List Websites
  • Servers
    • List IPs
    • List Machines
  • Cron
    • Create Cron job
    • Delete Cron job

Keywords

FAQs

Package last updated on 03 Dec 2013

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