go get github.com/chithien0909/hubspot-sdk-go
go test
package main
import (
"fmt"
"github.com/chithien0909/hubspot-sdk-go/hubspot"
)
func main() {
client := hubspot.NewClient(hubspot.NewClientConfig("https://api.hubapi.com", "api-key"))
r, err := client.Deals().Get("dealId")
if err != nil {
fmt.Errorf("%v", err)
}
fmt.Println(r.Id)
}