Go to file
2018-06-20 17:56:50 -06:00
3.0/connectwise Began work on webhooks/callback support. Added additional request types. TBD: refactor requests into a generic request type and instead pass whether it is a GET, POST, UPDATE, DELETE, etc request 2018-06-20 15:59:12 -06:00
LICENSE Initial commit 2018-06-20 08:39:46 -06:00
README.md Updated README.md 2018-06-20 17:56:50 -06:00

go-cw

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.

#Installation

go get github.com/StevenPolley/go-cw

#Usage

package main

import (
	"github.com/StevenPolley/go-cw/3.0/connectwise"
	"fmt"
)

const (
	cwSite		= "https://yourconnectwisesite.com/v4_6_release/apis/3.0"
	cwAPIKeyPrivate = "ASDLFK4ah89ad"
	cwAPIKey	= "ASLDFKJ2342kl"
	cwCompany	= "yourcompanyname"
)

func main() {
	cw := connectwise.NewSite(cwSite, cwAPIKey, cwAPIKeyPrivate, cwCompany)
	companyDataByID := connectwise.GetCompaniesByID(cw, 2) //Retrieves company ID 2 from CW and returns pointer to struct struct
	fmt.Println(*companyDataByID)
}