You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Steven Polley 947924bd6d Merge branch 'master' of 4 years ago
3.0/connectwise Merge branch 'master' of 4 years ago
cwautomate Add Clients.go 4 years ago
LICENSE Initial commit 5 years ago Fix 4 years ago


Go structs and methods for the ConnectWise REST API

Note: This is far from complete, I'm simply adding structs and methods as I have an actual requirement for them. If you add to this, please feel free to send a pull request.


go get


package main

import (


var cw *connectwise.ConnectwiseSite

func init() {
	publicKey := os.Getenv("gocwpublickey")
	privateKey := os.Getenv("gocwprivatekey")
	site := os.Getenv("gocwsite")
	company := os.Getenv("gocwcompany")

	cw = connectwise.NewSite(site, publicKey, privateKey, company)

func main() {

	co, err := cw.GetCompanyByID(2)
	if err != nil {
		log.Fatal("could not get company 2: %g", err)

	//Refer to the Connectwise API documentation to see what fields are available