cpanelgo

module
v0.0.0-...-72cbd67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2018 License: MIT

README

Cpanel & WHM API for GOLANG

Contents

Installation Guide

To install this package, you can run this code

   go get https://github.com/DigivityBV/cpanelgo

Usage

For example, if you would like to get list accounts of your whm server,

Firstly auth the whm panel

   client, err := cp.New(username, host, password)
	if err != nil {
		panic(err)
	}

Then list accounts

   accounts, err := client.ListAccounts()
	if err != nil {
		panic(err)
	}

Cpanel API Usage

Visit CPANEL API To all modules and functions

   client, err := cp.New(username, host, password)
	if err != nil {
		panic(err)
	}
	message, err := client.Cpanel(module, function, username)
	if err != nil {
		panic(err)
	}
Feedback and contribution

This package is free and open source, feel free to fork and report some issue to this package. :)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL