Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

18 Commits

Repository files navigation

lwapi

LeaseWeb Cloud API library in Golang, you can find the full API documentatoin here

Build StatusGoDoccodecov

Install

go get github.com/OpenSourceZombie/lwapi

Simple Example:

package main
import (
"fmt""log""github.com/OpenSourceZombie/lwapi"
)
funcmain() {
lwclient:= lwapi.LW{
AuthToken: "****-****-****-****",
}
vServerslList, err:=lwclient.GetVirtualServersList()
iferr!=nil {
log.Println(err)
}
fork, vServer:=rangevServerslList.VirtualServers {
fmt.Printf("%d.\t%s\t%s\n", k, vServer.Reference, vServer.Ips[0].IP)
}
}

About

LeaseWeb API library in Golang

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages