/hubspot-sdk-go

Hubspot SDK for golang

Primary LanguageGo

Hubspot SDK Go

Install

go get github.com/chithien0909/hubspot-sdk-go

Unit Tests

go test

Usage

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)
}