Fix example usage since change to using pointer receivers instead of passing ConnectwiseSite pointer to each function

This commit is contained in:
Steven Polley 2018-06-22 23:47:25 -06:00
parent 5de7832341
commit bcca1e872e
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ const (
func main() {
cw := connectwise.NewSite(cwSite, cwAPIKey, cwAPIKeyPrivate, cwCompany)
companyDataByID := connectwise.GetCompanyByID(cw, 2) //Retrieves company ID 2 from CW and returns type pointer to a slice of Company's
fmt.Println(*companyDataByID)
companyDataByID := cw.GetCompanyByID(2) //Retrieves company ID 2 from CW and returns type pointer a Company
fmt.Println(*companyDataByID.Name)
}
```