Categorygithub.com/digivitybv/cpanelgo
module
0.0.0-20181209162109-72cbd678e11a
Repository: https://github.com/digivitybv/cpanelgo.git
Documentation: pkg.go.dev

# 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. :)

# Packages

No description provided by the author
No description provided by the author