A golang API client for GetResponse V3
go get github.com/healthimation/go-getresponse/getresponseimport (
"log""time""context""github.com/healthimation/go-getresponse/getresponse"
)
funcmain() {
timeout:=5*time.Secondclient:=getresponse.NewClient("my get response api key", timeout)
campaignID:="123"err:=client.(context.Background(), "jsmith@example.com", "John Smith", nil, campaignID, nil, nil)
iferr!=nil {
log.Printf("Error creating contact in GR: %s", err.Error())
}
}