Fix example usage since change to using pointer receivers instead of passing ConnectwiseSite pointer to each function
This commit is contained in:
parent
5de7832341
commit
bcca1e872e
@ -26,7 +26,7 @@ const (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cw := connectwise.NewSite(cwSite, cwAPIKey, cwAPIKeyPrivate, cwCompany)
|
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
|
companyDataByID := cw.GetCompanyByID(2) //Retrieves company ID 2 from CW and returns type pointer a Company
|
||||||
fmt.Println(*companyDataByID)
|
fmt.Println(*companyDataByID.Name)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user